import ESM_COMPAT_Module from "node:module";
import { fileURLToPath as ESM_COMPAT_fileURLToPath } from 'node:url';
import { dirname as ESM_COMPAT_dirname } from 'node:path';
const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
const __dirname = ESM_COMPAT_dirname(__filename);
const require = ESM_COMPAT_Module.createRequire(import.meta.url);
var GT = Object.create;
var Cs = Object.defineProperty;
var XT = Object.getOwnPropertyDescriptor;
var YT = Object.getOwnPropertyNames;
var KT = Object.getPrototypeOf, QT = Object.prototype.hasOwnProperty;
var s = (e, t) => Cs(e, "name", { value: t, configurable: !0 }), H = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
"u" ? new Proxy(e, {
  get: (t, r) => (typeof require < "u" ? require : t)[r]
}) : e)(function(e) {
  if (typeof require < "u") return require.apply(this, arguments);
  throw Error('Dynamic require of "' + e + '" is not supported');
});
var ut = (e, t) => () => (e && (t = e(e = 0)), t);
var B = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), di = (e, t) => {
  for (var r in t)
    Cs(e, r, { get: t[r], enumerable: !0 });
}, Ra = (e, t, r, i) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let n of YT(t))
      !QT.call(e, n) && n !== r && Cs(e, n, { get: () => t[n], enumerable: !(i = XT(t, n)) || i.enumerable });
  return e;
}, Mg = (e, t, r) => (Ra(e, t, "default"), r && Ra(r, t, "default")), pe = (e, t, r) => (r = e != null ? GT(KT(e)) : {}, Ra(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  t || !e || !e.__esModule ? Cs(r, "default", { value: e, enumerable: !0 }) : r,
  e
)), Na = (e) => Ra(Cs({}, "__esModule", { value: !0 }), e);

// ../node_modules/@storybook/global/dist/index.js
var La = B((tX, qg) => {
  "use strict";
  var vl = Object.defineProperty, ZT = Object.getOwnPropertyDescriptor, e6 = Object.getOwnPropertyNames, t6 = Object.prototype.hasOwnProperty,
  r6 = /* @__PURE__ */ s((e, t) => {
    for (var r in t)
      vl(e, r, { get: t[r], enumerable: !0 });
  }, "__export"), i6 = /* @__PURE__ */ s((e, t, r, i) => {
    if (t && typeof t == "object" || typeof t == "function")
      for (let n of e6(t))
        !t6.call(e, n) && n !== r && vl(e, n, { get: /* @__PURE__ */ s(() => t[n], "get"), enumerable: !(i = ZT(t, n)) || i.enumerable });
    return e;
  }, "__copyProps"), n6 = /* @__PURE__ */ s((e) => i6(vl({}, "__esModule", { value: !0 }), e), "__toCommonJS"), jg = {};
  r6(jg, {
    global: /* @__PURE__ */ s(() => s6, "global")
  });
  qg.exports = n6(jg);
  var s6 = (() => {
    let e;
    return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ?
    e = self : e = {}, e;
  })();
});

// ../node_modules/picocolors/picocolors.js
var Cr = B((iX, Cl) => {
  var $g = process.argv || [], Ma = process.env, a6 = !("NO_COLOR" in Ma || $g.includes("--no-color")) && ("FORCE_COLOR" in Ma || $g.includes(
  "--color") || process.platform === "win32" || H != null && H("tty").isatty(1) && Ma.TERM !== "dumb" || "CI" in Ma), u6 = /* @__PURE__ */ s(
  (e, t, r = e) => (i) => {
    let n = "" + i, a = n.indexOf(t, e.length);
    return ~a ? e + o6(n, t, r, a) + t : e + n + t;
  }, "formatter"), o6 = /* @__PURE__ */ s((e, t, r, i) => {
    let n = "", a = 0;
    do
      n += e.substring(a, i) + r, a = i + t.length, i = e.indexOf(t, a);
    while (~i);
    return n + e.substring(a);
  }, "replaceClose"), Vg = /* @__PURE__ */ s((e = a6) => {
    let t = e ? u6 : () => String;
    return {
      isColorSupported: e,
      reset: t("\x1B[0m", "\x1B[0m"),
      bold: t("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
      dim: t("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
      italic: t("\x1B[3m", "\x1B[23m"),
      underline: t("\x1B[4m", "\x1B[24m"),
      inverse: t("\x1B[7m", "\x1B[27m"),
      hidden: t("\x1B[8m", "\x1B[28m"),
      strikethrough: t("\x1B[9m", "\x1B[29m"),
      black: t("\x1B[30m", "\x1B[39m"),
      red: t("\x1B[31m", "\x1B[39m"),
      green: t("\x1B[32m", "\x1B[39m"),
      yellow: t("\x1B[33m", "\x1B[39m"),
      blue: t("\x1B[34m", "\x1B[39m"),
      magenta: t("\x1B[35m", "\x1B[39m"),
      cyan: t("\x1B[36m", "\x1B[39m"),
      white: t("\x1B[37m", "\x1B[39m"),
      gray: t("\x1B[90m", "\x1B[39m"),
      bgBlack: t("\x1B[40m", "\x1B[49m"),
      bgRed: t("\x1B[41m", "\x1B[49m"),
      bgGreen: t("\x1B[42m", "\x1B[49m"),
      bgYellow: t("\x1B[43m", "\x1B[49m"),
      bgBlue: t("\x1B[44m", "\x1B[49m"),
      bgMagenta: t("\x1B[45m", "\x1B[49m"),
      bgCyan: t("\x1B[46m", "\x1B[49m"),
      bgWhite: t("\x1B[47m", "\x1B[49m"),
      blackBright: t("\x1B[90m", "\x1B[39m"),
      redBright: t("\x1B[91m", "\x1B[39m"),
      greenBright: t("\x1B[92m", "\x1B[39m"),
      yellowBright: t("\x1B[93m", "\x1B[39m"),
      blueBright: t("\x1B[94m", "\x1B[39m"),
      magentaBright: t("\x1B[95m", "\x1B[39m"),
      cyanBright: t("\x1B[96m", "\x1B[39m"),
      whiteBright: t("\x1B[97m", "\x1B[39m"),
      bgBlackBright: t("\x1B[100m", "\x1B[49m"),
      bgRedBright: t("\x1B[101m", "\x1B[49m"),
      bgGreenBright: t("\x1B[102m", "\x1B[49m"),
      bgYellowBright: t("\x1B[103m", "\x1B[49m"),
      bgBlueBright: t("\x1B[104m", "\x1B[49m"),
      bgMagentaBright: t("\x1B[105m", "\x1B[49m"),
      bgCyanBright: t("\x1B[106m", "\x1B[49m"),
      bgWhiteBright: t("\x1B[107m", "\x1B[49m")
    };
  }, "createColors");
  Cl.exports = Vg();
  Cl.exports.createColors = Vg;
});

// ../node_modules/slash/index.js
function rt(e) {
  return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
}
var Fs = ut(() => {
  s(rt, "slash");
});

// ../node_modules/ts-dedent/dist/index.js
var wr = B((Ss) => {
  "use strict";
  Object.defineProperty(Ss, "__esModule", { value: !0 });
  Ss.dedent = void 0;
  function Wg(e) {
    for (var t = [], r = 1; r < arguments.length; r++)
      t[r - 1] = arguments[r];
    var i = Array.from(typeof e == "string" ? [e] : e);
    i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, "");
    var n = i.reduce(function(o, l) {
      var c = l.match(/\n([\t ]+|(?!\s).)/g);
      return c ? o.concat(c.map(function(h) {
        var p, d;
        return (d = (p = h.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && d !== void 0 ? d : 0;
      })) : o;
    }, []);
    if (n.length) {
      var a = new RegExp(`
[	 ]{` + Math.min.apply(Math, n) + "}", "g");
      i = i.map(function(o) {
        return o.replace(a, `
`);
      });
    }
    i[0] = i[0].replace(/^\r?\n/, "");
    var u = i[0];
    return t.forEach(function(o, l) {
      var c = u.match(/(?:^|\n)( *)$/), h = c ? c[1] : "", p = o;
      typeof o == "string" && o.includes(`
`) && (p = String(o).split(`
`).map(function(d, m) {
        return m === 0 ? d : "" + h + d;
      }).join(`
`)), u += p + i[l + 1];
    }), u;
  }
  s(Wg, "dedent");
  Ss.dedent = Wg;
  Ss.default = Wg;
});

// ../node_modules/tsconfig-paths/lib/filesystem.js
var $a = B((Ut) => {
  "use strict";
  Object.defineProperty(Ut, "__esModule", { value: !0 });
  Ut.removeExtension = Ut.fileExistsAsync = Ut.readJsonFromDiskAsync = Ut.readJsonFromDiskSync = Ut.fileExistsSync = void 0;
  var _s = H("fs");
  function b6(e) {
    if (!_s.existsSync(e))
      return !1;
    try {
      var t = _s.statSync(e);
      return t.isFile();
    } catch {
      return !1;
    }
  }
  s(b6, "fileExistsSync");
  Ut.fileExistsSync = b6;
  function v6(e) {
    if (_s.existsSync(e))
      return H(e);
  }
  s(v6, "readJsonFromDiskSync");
  Ut.readJsonFromDiskSync = v6;
  function C6(e, t) {
    _s.readFile(e, "utf8", function(r, i) {
      if (r || !i)
        return t();
      var n = JSON.parse(i);
      return t(void 0, n);
    });
  }
  s(C6, "readJsonFromDiskAsync");
  Ut.readJsonFromDiskAsync = C6;
  function w6(e, t) {
    _s.stat(e, function(r, i) {
      if (r)
        return t(void 0, !1);
      t(void 0, i ? i.isFile() : !1);
    });
  }
  s(w6, "fileExistsAsync");
  Ut.fileExistsAsync = w6;
  function A6(e) {
    return e.substring(0, e.lastIndexOf(".")) || e;
  }
  s(A6, "removeExtension");
  Ut.removeExtension = A6;
});

// ../node_modules/tsconfig-paths/lib/mapping-entry.js
var kl = B((Va) => {
  "use strict";
  Object.defineProperty(Va, "__esModule", { value: !0 });
  Va.getAbsoluteMappingEntries = void 0;
  var F6 = H("path");
  function S6(e, t, r) {
    for (var i = _6(Object.keys(t)), n = [], a = 0, u = i; a < u.length; a++) {
      var o = u[a];
      n.push({
        pattern: o,
        paths: t[o].map(function(l) {
          return F6.resolve(e, l);
        })
      });
    }
    return !t["*"] && r && n.push({
      pattern: "*",
      paths: ["".concat(e.replace(/\/$/, ""), "/*")]
    }), n;
  }
  s(S6, "getAbsoluteMappingEntries");
  Va.getAbsoluteMappingEntries = S6;
  function _6(e) {
    return e.concat().sort(function(t, r) {
      return Jg(r) - Jg(t);
    });
  }
  s(_6, "sortByLongestPrefix");
  function Jg(e) {
    var t = e.indexOf("*");
    return e.substr(0, t).length;
  }
  s(Jg, "getPrefixLength");
});

// ../node_modules/tsconfig-paths/lib/try-path.js
var Tl = B((mi) => {
  "use strict";
  Object.defineProperty(mi, "__esModule", { value: !0 });
  mi.exhaustiveTypeException = mi.getStrippedPath = mi.getPathsToTry = void 0;
  var Gg = H("path"), k6 = H("path"), T6 = $a();
  function B6(e, t, r) {
    if (!(!t || !r || r[0] === ".")) {
      for (var i = [], n = 0, a = t; n < a.length; n++) {
        var u = a[n], o = u.pattern === r ? "" : I6(u.pattern, r);
        if (o !== void 0)
          for (var l = /* @__PURE__ */ s(function(d) {
            var m = d.replace("*", o);
            i.push({ type: "file", path: m }), i.push.apply(i, e.map(function(D) {
              return { type: "extension", path: m + D };
            })), i.push({
              type: "package",
              path: Gg.join(m, "/package.json")
            });
            var g = Gg.join(m, "/index");
            i.push.apply(i, e.map(function(D) {
              return { type: "index", path: g + D };
            }));
          }, "_loop_1"), c = 0, h = u.paths; c < h.length; c++) {
            var p = h[c];
            l(p);
          }
      }
      return i.length === 0 ? void 0 : i;
    }
  }
  s(B6, "getPathsToTry");
  mi.getPathsToTry = B6;
  function P6(e) {
    return e.type === "index" ? (0, k6.dirname)(e.path) : e.type === "file" ? e.path : e.type === "extension" ? (0, T6.removeExtension)(e.path) :
    e.type === "package" ? e.path : Xg(e.type);
  }
  s(P6, "getStrippedPath");
  mi.getStrippedPath = P6;
  function Xg(e) {
    throw new Error("Unknown type ".concat(e));
  }
  s(Xg, "exhaustiveTypeException");
  mi.exhaustiveTypeException = Xg;
  function I6(e, t) {
    if (!(t.length < e.length)) {
      if (e === "*")
        return t;
      var r = e.indexOf("*");
      if (r !== -1) {
        var i = e.substring(0, r), n = e.substring(r + 1);
        if (t.substr(0, r) === i && t.substr(t.length - n.length) === n)
          return t.substr(r, t.length - n.length);
      }
    }
  }
  s(I6, "matchStar");
});

// ../node_modules/tsconfig-paths/lib/match-path-sync.js
var Il = B((xn) => {
  "use strict";
  Object.defineProperty(xn, "__esModule", { value: !0 });
  xn.matchFromAbsolutePaths = xn.createMatchPath = void 0;
  var Yg = H("path"), Bl = $a(), O6 = kl(), Pl = Tl();
  function R6(e, t, r, i) {
    r === void 0 && (r = ["main"]), i === void 0 && (i = !0);
    var n = O6.getAbsoluteMappingEntries(e, t, i);
    return function(a, u, o, l) {
      return Kg(n, a, u, o, l, r);
    };
  }
  s(R6, "createMatchPath");
  xn.createMatchPath = R6;
  function Kg(e, t, r, i, n, a) {
    r === void 0 && (r = Bl.readJsonFromDiskSync), i === void 0 && (i = Bl.fileExistsSync), n === void 0 && (n = Object.keys(H.extensions)),
    a === void 0 && (a = ["main"]);
    var u = Pl.getPathsToTry(n, e, t);
    if (u)
      return L6(u, r, i, a);
  }
  s(Kg, "matchFromAbsolutePaths");
  xn.matchFromAbsolutePaths = Kg;
  function N6(e, t, r, i) {
    for (var n = 0; n < t.length; n++) {
      var a = t[n], u = typeof a == "string" ? e[a] : a.reduce(function(l, c) {
        return l[c];
      }, e);
      if (u && typeof u == "string") {
        var o = Yg.join(Yg.dirname(r), u);
        if (i(o))
          return o;
      }
    }
  }
  s(N6, "findFirstExistingMainFieldMappedFile");
  function L6(e, t, r, i) {
    t === void 0 && (t = Bl.readJsonFromDiskSync), i === void 0 && (i = ["main"]);
    for (var n = 0, a = e; n < a.length; n++) {
      var u = a[n];
      if (u.type === "file" || u.type === "extension" || u.type === "index") {
        if (r(u.path))
          return Pl.getStrippedPath(u);
      } else if (u.type === "package") {
        var o = t(u.path);
        if (o) {
          var l = N6(o, i, u.path, r);
          if (l)
            return l;
        }
      } else
        Pl.exhaustiveTypeException(u.type);
    }
  }
  s(L6, "findFirstExistingPath");
});

// ../node_modules/tsconfig-paths/lib/match-path-async.js
var r0 = B((En) => {
  "use strict";
  Object.defineProperty(En, "__esModule", { value: !0 });
  En.matchFromAbsolutePathsAsync = En.createMatchPathAsync = void 0;
  var Qg = H("path"), Ol = Tl(), M6 = kl(), Zg = $a();
  function j6(e, t, r, i) {
    r === void 0 && (r = ["main"]), i === void 0 && (i = !0);
    var n = M6.getAbsoluteMappingEntries(e, t, i);
    return function(a, u, o, l, c) {
      return e0(n, a, u, o, l, c, r);
    };
  }
  s(j6, "createMatchPathAsync");
  En.createMatchPathAsync = j6;
  function e0(e, t, r, i, n, a, u) {
    r === void 0 && (r = Zg.readJsonFromDiskAsync), i === void 0 && (i = Zg.fileExistsAsync), n === void 0 && (n = Object.keys(H.extensions)),
    u === void 0 && (u = ["main"]);
    var o = Ol.getPathsToTry(n, e, t);
    if (!o)
      return a();
    Ua(o, r, i, a, 0, u);
  }
  s(e0, "matchFromAbsolutePathsAsync");
  En.matchFromAbsolutePathsAsync = e0;
  function t0(e, t, r, i, n, a) {
    if (a === void 0 && (a = 0), a >= t.length)
      return n(void 0, void 0);
    var u = /* @__PURE__ */ s(function() {
      return t0(e, t, r, i, n, a + 1);
    }, "tryNext"), o = t[a], l = typeof o == "string" ? e[o] : o.reduce(function(h, p) {
      return h[p];
    }, e);
    if (typeof l != "string")
      return u();
    var c = Qg.join(Qg.dirname(r), l);
    i(c, function(h, p) {
      return h ? n(h) : p ? n(void 0, c) : u();
    });
  }
  s(t0, "findFirstExistingMainFieldMappedFile");
  function Ua(e, t, r, i, n, a) {
    n === void 0 && (n = 0), a === void 0 && (a = ["main"]);
    var u = e[n];
    u.type === "file" || u.type === "extension" || u.type === "index" ? r(u.path, function(o, l) {
      return o ? i(o) : l ? i(void 0, Ol.getStrippedPath(u)) : n === e.length - 1 ? i() : Ua(e, t, r, i, n + 1, a);
    }) : u.type === "package" ? t(u.path, function(o, l) {
      return o ? i(o) : l ? t0(l, a, u.path, r, function(c, h) {
        return c ? i(c) : h ? i(void 0, h) : Ua(e, t, r, i, n + 1, a);
      }) : Ua(e, t, r, i, n + 1, a);
    }) : Ol.exhaustiveTypeException(u.type);
  }
  s(Ua, "findFirstExistingPath");
});

// ../node_modules/json5/lib/unicode.js
var i0 = B((tY, za) => {
  za.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
  za.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
  za.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
});

// ../node_modules/json5/lib/util.js
var Nl = B((rY, n0) => {
  var Rl = i0();
  n0.exports = {
    isSpaceSeparator(e) {
      return typeof e == "string" && Rl.Space_Separator.test(e);
    },
    isIdStartChar(e) {
      return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e === "$" || e === "_" || Rl.ID_Start.test(e));
    },
    isIdContinueChar(e) {
      return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e >= "0" && e <= "9" || e === "$" || e === "_" || e ===
      "\u200C" || e === "\u200D" || Rl.ID_Continue.test(e));
    },
    isDigit(e) {
      return typeof e == "string" && /[0-9]/.test(e);
    },
    isHexDigit(e) {
      return typeof e == "string" && /[0-9A-Fa-f]/.test(e);
    }
  };
});

// ../node_modules/json5/lib/parse.js
var l0 = B((iY, o0) => {
  var ot = Nl(), Ml, yt, Wr, Wa, gi, lr, lt, $l, Ts;
  o0.exports = /* @__PURE__ */ s(function(t, r) {
    Ml = String(t), yt = "start", Wr = [], Wa = 0, gi = 1, lr = 0, lt = void 0, $l = void 0, Ts = void 0;
    do
      lt = q6(), U6[yt]();
    while (lt.type !== "eof");
    return typeof r == "function" ? jl({ "": Ts }, "", r) : Ts;
  }, "parse");
  function jl(e, t, r) {
    let i = e[t];
    if (i != null && typeof i == "object")
      if (Array.isArray(i))
        for (let n = 0; n < i.length; n++) {
          let a = String(n), u = jl(i, a, r);
          u === void 0 ? delete i[a] : Object.defineProperty(i, a, {
            value: u,
            writable: !0,
            enumerable: !0,
            configurable: !0
          });
        }
      else
        for (let n in i) {
          let a = jl(i, n, r);
          a === void 0 ? delete i[n] : Object.defineProperty(i, n, {
            value: a,
            writable: !0,
            enumerable: !0,
            configurable: !0
          });
        }
    return r.call(e, t, i);
  }
  s(jl, "internalize");
  var Ee, me, ks, Hr, Ce;
  function q6() {
    for (Ee = "default", me = "", ks = !1, Hr = 1; ; ) {
      Ce = Jr();
      let e = a0[Ee]();
      if (e)
        return e;
    }
  }
  s(q6, "lex");
  function Jr() {
    if (Ml[Wa])
      return String.fromCodePoint(Ml.codePointAt(Wa));
  }
  s(Jr, "peek");
  function Y() {
    let e = Jr();
    return e === `
` ? (gi++, lr = 0) : e ? lr += e.length : lr++, e && (Wa += e.length), e;
  }
  s(Y, "read");
  var a0 = {
    default() {
      switch (Ce) {
        case "	":
        case "\v":
        case "\f":
        case " ":
        case "\xA0":
        case "\uFEFF":
        case `
`:
        case "\r":
        case "\u2028":
        case "\u2029":
          Y();
          return;
        case "/":
          Y(), Ee = "comment";
          return;
        case void 0:
          return Y(), Me("eof");
      }
      if (ot.isSpaceSeparator(Ce)) {
        Y();
        return;
      }
      return a0[yt]();
    },
    comment() {
      switch (Ce) {
        case "*":
          Y(), Ee = "multiLineComment";
          return;
        case "/":
          Y(), Ee = "singleLineComment";
          return;
      }
      throw je(Y());
    },
    multiLineComment() {
      switch (Ce) {
        case "*":
          Y(), Ee = "multiLineCommentAsterisk";
          return;
        case void 0:
          throw je(Y());
      }
      Y();
    },
    multiLineCommentAsterisk() {
      switch (Ce) {
        case "*":
          Y();
          return;
        case "/":
          Y(), Ee = "default";
          return;
        case void 0:
          throw je(Y());
      }
      Y(), Ee = "multiLineComment";
    },
    singleLineComment() {
      switch (Ce) {
        case `
`:
        case "\r":
        case "\u2028":
        case "\u2029":
          Y(), Ee = "default";
          return;
        case void 0:
          return Y(), Me("eof");
      }
      Y();
    },
    value() {
      switch (Ce) {
        case "{":
        case "[":
          return Me("punctuator", Y());
        case "n":
          return Y(), Hi("ull"), Me("null", null);
        case "t":
          return Y(), Hi("rue"), Me("boolean", !0);
        case "f":
          return Y(), Hi("alse"), Me("boolean", !1);
        case "-":
        case "+":
          Y() === "-" && (Hr = -1), Ee = "sign";
          return;
        case ".":
          me = Y(), Ee = "decimalPointLeading";
          return;
        case "0":
          me = Y(), Ee = "zero";
          return;
        case "1":
        case "2":
        case "3":
        case "4":
        case "5":
        case "6":
        case "7":
        case "8":
        case "9":
          me = Y(), Ee = "decimalInteger";
          return;
        case "I":
          return Y(), Hi("nfinity"), Me("numeric", 1 / 0);
        case "N":
          return Y(), Hi("aN"), Me("numeric", NaN);
        case '"':
        case "'":
          ks = Y() === '"', me = "", Ee = "string";
          return;
      }
      throw je(Y());
    },
    identifierNameStartEscape() {
      if (Ce !== "u")
        throw je(Y());
      Y();
      let e = ql();
      switch (e) {
        case "$":
        case "_":
          break;
        default:
          if (!ot.isIdStartChar(e))
            throw s0();
          break;
      }
      me += e, Ee = "identifierName";
    },
    identifierName() {
      switch (Ce) {
        case "$":
        case "_":
        case "\u200C":
        case "\u200D":
          me += Y();
          return;
        case "\\":
          Y(), Ee = "identifierNameEscape";
          return;
      }
      if (ot.isIdContinueChar(Ce)) {
        me += Y();
        return;
      }
      return Me("identifier", me);
    },
    identifierNameEscape() {
      if (Ce !== "u")
        throw je(Y());
      Y();
      let e = ql();
      switch (e) {
        case "$":
        case "_":
        case "\u200C":
        case "\u200D":
          break;
        default:
          if (!ot.isIdContinueChar(e))
            throw s0();
          break;
      }
      me += e, Ee = "identifierName";
    },
    sign() {
      switch (Ce) {
        case ".":
          me = Y(), Ee = "decimalPointLeading";
          return;
        case "0":
          me = Y(), Ee = "zero";
          return;
        case "1":
        case "2":
        case "3":
        case "4":
        case "5":
        case "6":
        case "7":
        case "8":
        case "9":
          me = Y(), Ee = "decimalInteger";
          return;
        case "I":
          return Y(), Hi("nfinity"), Me("numeric", Hr * (1 / 0));
        case "N":
          return Y(), Hi("aN"), Me("numeric", NaN);
      }
      throw je(Y());
    },
    zero() {
      switch (Ce) {
        case ".":
          me += Y(), Ee = "decimalPoint";
          return;
        case "e":
        case "E":
          me += Y(), Ee = "decimalExponent";
          return;
        case "x":
        case "X":
          me += Y(), Ee = "hexadecimal";
          return;
      }
      return Me("numeric", Hr * 0);
    },
    decimalInteger() {
      switch (Ce) {
        case ".":
          me += Y(), Ee = "decimalPoint";
          return;
        case "e":
        case "E":
          me += Y(), Ee = "decimalExponent";
          return;
      }
      if (ot.isDigit(Ce)) {
        me += Y();
        return;
      }
      return Me("numeric", Hr * Number(me));
    },
    decimalPointLeading() {
      if (ot.isDigit(Ce)) {
        me += Y(), Ee = "decimalFraction";
        return;
      }
      throw je(Y());
    },
    decimalPoint() {
      switch (Ce) {
        case "e":
        case "E":
          me += Y(), Ee = "decimalExponent";
          return;
      }
      if (ot.isDigit(Ce)) {
        me += Y(), Ee = "decimalFraction";
        return;
      }
      return Me("numeric", Hr * Number(me));
    },
    decimalFraction() {
      switch (Ce) {
        case "e":
        case "E":
          me += Y(), Ee = "decimalExponent";
          return;
      }
      if (ot.isDigit(Ce)) {
        me += Y();
        return;
      }
      return Me("numeric", Hr * Number(me));
    },
    decimalExponent() {
      switch (Ce) {
        case "+":
        case "-":
          me += Y(), Ee = "decimalExponentSign";
          return;
      }
      if (ot.isDigit(Ce)) {
        me += Y(), Ee = "decimalExponentInteger";
        return;
      }
      throw je(Y());
    },
    decimalExponentSign() {
      if (ot.isDigit(Ce)) {
        me += Y(), Ee = "decimalExponentInteger";
        return;
      }
      throw je(Y());
    },
    decimalExponentInteger() {
      if (ot.isDigit(Ce)) {
        me += Y();
        return;
      }
      return Me("numeric", Hr * Number(me));
    },
    hexadecimal() {
      if (ot.isHexDigit(Ce)) {
        me += Y(), Ee = "hexadecimalInteger";
        return;
      }
      throw je(Y());
    },
    hexadecimalInteger() {
      if (ot.isHexDigit(Ce)) {
        me += Y();
        return;
      }
      return Me("numeric", Hr * Number(me));
    },
    string() {
      switch (Ce) {
        case "\\":
          Y(), me += $6();
          return;
        case '"':
          if (ks)
            return Y(), Me("string", me);
          me += Y();
          return;
        case "'":
          if (!ks)
            return Y(), Me("string", me);
          me += Y();
          return;
        case `
`:
        case "\r":
          throw je(Y());
        case "\u2028":
        case "\u2029":
          z6(Ce);
          break;
        case void 0:
          throw je(Y());
      }
      me += Y();
    },
    start() {
      switch (Ce) {
        case "{":
        case "[":
          return Me("punctuator", Y());
      }
      Ee = "value";
    },
    beforePropertyName() {
      switch (Ce) {
        case "$":
        case "_":
          me = Y(), Ee = "identifierName";
          return;
        case "\\":
          Y(), Ee = "identifierNameStartEscape";
          return;
        case "}":
          return Me("punctuator", Y());
        case '"':
        case "'":
          ks = Y() === '"', Ee = "string";
          return;
      }
      if (ot.isIdStartChar(Ce)) {
        me += Y(), Ee = "identifierName";
        return;
      }
      throw je(Y());
    },
    afterPropertyName() {
      if (Ce === ":")
        return Me("punctuator", Y());
      throw je(Y());
    },
    beforePropertyValue() {
      Ee = "value";
    },
    afterPropertyValue() {
      switch (Ce) {
        case ",":
        case "}":
          return Me("punctuator", Y());
      }
      throw je(Y());
    },
    beforeArrayValue() {
      if (Ce === "]")
        return Me("punctuator", Y());
      Ee = "value";
    },
    afterArrayValue() {
      switch (Ce) {
        case ",":
        case "]":
          return Me("punctuator", Y());
      }
      throw je(Y());
    },
    end() {
      throw je(Y());
    }
  };
  function Me(e, t) {
    return {
      type: e,
      value: t,
      line: gi,
      column: lr
    };
  }
  s(Me, "newToken");
  function Hi(e) {
    for (let t of e) {
      if (Jr() !== t)
        throw je(Y());
      Y();
    }
  }
  s(Hi, "literal");
  function $6() {
    switch (Jr()) {
      case "b":
        return Y(), "\b";
      case "f":
        return Y(), "\f";
      case "n":
        return Y(), `
`;
      case "r":
        return Y(), "\r";
      case "t":
        return Y(), "	";
      case "v":
        return Y(), "\v";
      case "0":
        if (Y(), ot.isDigit(Jr()))
          throw je(Y());
        return "\0";
      case "x":
        return Y(), V6();
      case "u":
        return Y(), ql();
      case `
`:
      case "\u2028":
      case "\u2029":
        return Y(), "";
      case "\r":
        return Y(), Jr() === `
` && Y(), "";
      case "1":
      case "2":
      case "3":
      case "4":
      case "5":
      case "6":
      case "7":
      case "8":
      case "9":
        throw je(Y());
      case void 0:
        throw je(Y());
    }
    return Y();
  }
  s($6, "escape");
  function V6() {
    let e = "", t = Jr();
    if (!ot.isHexDigit(t) || (e += Y(), t = Jr(), !ot.isHexDigit(t)))
      throw je(Y());
    return e += Y(), String.fromCodePoint(parseInt(e, 16));
  }
  s(V6, "hexEscape");
  function ql() {
    let e = "", t = 4;
    for (; t-- > 0; ) {
      let r = Jr();
      if (!ot.isHexDigit(r))
        throw je(Y());
      e += Y();
    }
    return String.fromCodePoint(parseInt(e, 16));
  }
  s(ql, "unicodeEscape");
  var U6 = {
    start() {
      if (lt.type === "eof")
        throw Wi();
      Ll();
    },
    beforePropertyName() {
      switch (lt.type) {
        case "identifier":
        case "string":
          $l = lt.value, yt = "afterPropertyName";
          return;
        case "punctuator":
          Ha();
          return;
        case "eof":
          throw Wi();
      }
    },
    afterPropertyName() {
      if (lt.type === "eof")
        throw Wi();
      yt = "beforePropertyValue";
    },
    beforePropertyValue() {
      if (lt.type === "eof")
        throw Wi();
      Ll();
    },
    beforeArrayValue() {
      if (lt.type === "eof")
        throw Wi();
      if (lt.type === "punctuator" && lt.value === "]") {
        Ha();
        return;
      }
      Ll();
    },
    afterPropertyValue() {
      if (lt.type === "eof")
        throw Wi();
      switch (lt.value) {
        case ",":
          yt = "beforePropertyName";
          return;
        case "}":
          Ha();
      }
    },
    afterArrayValue() {
      if (lt.type === "eof")
        throw Wi();
      switch (lt.value) {
        case ",":
          yt = "beforeArrayValue";
          return;
        case "]":
          Ha();
      }
    },
    end() {
    }
  };
  function Ll() {
    let e;
    switch (lt.type) {
      case "punctuator":
        switch (lt.value) {
          case "{":
            e = {};
            break;
          case "[":
            e = [];
            break;
        }
        break;
      case "null":
      case "boolean":
      case "numeric":
      case "string":
        e = lt.value;
        break;
    }
    if (Ts === void 0)
      Ts = e;
    else {
      let t = Wr[Wr.length - 1];
      Array.isArray(t) ? t.push(e) : Object.defineProperty(t, $l, {
        value: e,
        writable: !0,
        enumerable: !0,
        configurable: !0
      });
    }
    if (e !== null && typeof e == "object")
      Wr.push(e), Array.isArray(e) ? yt = "beforeArrayValue" : yt = "beforePropertyName";
    else {
      let t = Wr[Wr.length - 1];
      t == null ? yt = "end" : Array.isArray(t) ? yt = "afterArrayValue" : yt = "afterPropertyValue";
    }
  }
  s(Ll, "push");
  function Ha() {
    Wr.pop();
    let e = Wr[Wr.length - 1];
    e == null ? yt = "end" : Array.isArray(e) ? yt = "afterArrayValue" : yt = "afterPropertyValue";
  }
  s(Ha, "pop");
  function je(e) {
    return Ja(e === void 0 ? `JSON5: invalid end of input at ${gi}:${lr}` : `JSON5: invalid character '${u0(e)}' at ${gi}:${lr}`);
  }
  s(je, "invalidChar");
  function Wi() {
    return Ja(`JSON5: invalid end of input at ${gi}:${lr}`);
  }
  s(Wi, "invalidEOF");
  function s0() {
    return lr -= 5, Ja(`JSON5: invalid identifier character at ${gi}:${lr}`);
  }
  s(s0, "invalidIdentifier");
  function z6(e) {
    console.warn(`JSON5: '${u0(e)}' in strings is not valid ECMAScript; consider escaping`);
  }
  s(z6, "separatorChar");
  function u0(e) {
    let t = {
      "'": "\\'",
      '"': '\\"',
      "\\": "\\\\",
      "\b": "\\b",
      "\f": "\\f",
      "\n": "\\n",
      "\r": "\\r",
      "	": "\\t",
      "\v": "\\v",
      "\0": "\\0",
      "\u2028": "\\u2028",
      "\u2029": "\\u2029"
    };
    if (t[e])
      return t[e];
    if (e < " ") {
      let r = e.charCodeAt(0).toString(16);
      return "\\x" + ("00" + r).substring(r.length);
    }
    return e;
  }
  s(u0, "formatChar");
  function Ja(e) {
    let t = new SyntaxError(e);
    return t.lineNumber = gi, t.columnNumber = lr, t;
  }
  s(Ja, "syntaxError");
});

// ../node_modules/json5/lib/stringify.js
var h0 = B((sY, c0) => {
  var Vl = Nl();
  c0.exports = /* @__PURE__ */ s(function(t, r, i) {
    let n = [], a = "", u, o, l = "", c;
    if (r != null && typeof r == "object" && !Array.isArray(r) && (i = r.space, c = r.quote, r = r.replacer), typeof r == "function")
      o = r;
    else if (Array.isArray(r)) {
      u = [];
      for (let D of r) {
        let v;
        typeof D == "string" ? v = D : (typeof D == "number" || D instanceof String || D instanceof Number) && (v = String(D)), v !== void 0 &&
        u.indexOf(v) < 0 && u.push(v);
      }
    }
    return i instanceof Number ? i = Number(i) : i instanceof String && (i = String(i)), typeof i == "number" ? i > 0 && (i = Math.min(10, Math.
    floor(i)), l = "          ".substr(0, i)) : typeof i == "string" && (l = i.substr(0, 10)), h("", { "": t });
    function h(D, v) {
      let y = v[D];
      switch (y != null && (typeof y.toJSON5 == "function" ? y = y.toJSON5(D) : typeof y.toJSON == "function" && (y = y.toJSON(D))), o && (y =
      o.call(v, D, y)), y instanceof Number ? y = Number(y) : y instanceof String ? y = String(y) : y instanceof Boolean && (y = y.valueOf()),
      y) {
        case null:
          return "null";
        case !0:
          return "true";
        case !1:
          return "false";
      }
      if (typeof y == "string")
        return p(y, !1);
      if (typeof y == "number")
        return String(y);
      if (typeof y == "object")
        return Array.isArray(y) ? g(y) : d(y);
    }
    s(h, "serializeProperty");
    function p(D) {
      let v = {
        "'": 0.1,
        '"': 0.2
      }, y = {
        "'": "\\'",
        '"': '\\"',
        "\\": "\\\\",
        "\b": "\\b",
        "\f": "\\f",
        "\n": "\\n",
        "\r": "\\r",
        "	": "\\t",
        "\v": "\\v",
        "\0": "\\0",
        "\u2028": "\\u2028",
        "\u2029": "\\u2029"
      }, C = "";
      for (let T = 0; T < D.length; T++) {
        let j = D[T];
        switch (j) {
          case "'":
          case '"':
            v[j]++, C += j;
            continue;
          case "\0":
            if (Vl.isDigit(D[T + 1])) {
              C += "\\x00";
              continue;
            }
        }
        if (y[j]) {
          C += y[j];
          continue;
        }
        if (j < " ") {
          let w = j.charCodeAt(0).toString(16);
          C += "\\x" + ("00" + w).substring(w.length);
          continue;
        }
        C += j;
      }
      let S = c || Object.keys(v).reduce((T, j) => v[T] < v[j] ? T : j);
      return C = C.replace(new RegExp(S, "g"), y[S]), S + C + S;
    }
    s(p, "quoteString");
    function d(D) {
      if (n.indexOf(D) >= 0)
        throw TypeError("Converting circular structure to JSON5");
      n.push(D);
      let v = a;
      a = a + l;
      let y = u || Object.keys(D), C = [];
      for (let T of y) {
        let j = h(T, D);
        if (j !== void 0) {
          let w = m(T) + ":";
          l !== "" && (w += " "), w += j, C.push(w);
        }
      }
      let S;
      if (C.length === 0)
        S = "{}";
      else {
        let T;
        if (l === "")
          T = C.join(","), S = "{" + T + "}";
        else {
          let j = `,
` + a;
          T = C.join(j), S = `{
` + a + T + `,
` + v + "}";
        }
      }
      return n.pop(), a = v, S;
    }
    s(d, "serializeObject");
    function m(D) {
      if (D.length === 0)
        return p(D, !0);
      let v = String.fromCodePoint(D.codePointAt(0));
      if (!Vl.isIdStartChar(v))
        return p(D, !0);
      for (let y = v.length; y < D.length; y++)
        if (!Vl.isIdContinueChar(String.fromCodePoint(D.codePointAt(y))))
          return p(D, !0);
      return D;
    }
    s(m, "serializeKey");
    function g(D) {
      if (n.indexOf(D) >= 0)
        throw TypeError("Converting circular structure to JSON5");
      n.push(D);
      let v = a;
      a = a + l;
      let y = [];
      for (let S = 0; S < D.length; S++) {
        let T = h(String(S), D);
        y.push(T !== void 0 ? T : "null");
      }
      let C;
      if (y.length === 0)
        C = "[]";
      else if (l === "")
        C = "[" + y.join(",") + "]";
      else {
        let S = `,
` + a, T = y.join(S);
        C = `[
` + a + T + `,
` + v + "]";
      }
      return n.pop(), a = v, C;
    }
    s(g, "serializeArray");
  }, "stringify");
});

// ../node_modules/json5/lib/index.js
var f0 = B((uY, p0) => {
  var H6 = l0(), W6 = h0(), J6 = {
    parse: H6,
    stringify: W6
  };
  p0.exports = J6;
});

// ../node_modules/strip-bom/index.js
var m0 = B((oY, d0) => {
  "use strict";
  d0.exports = (e) => {
    if (typeof e != "string")
      throw new TypeError("Expected a string, got " + typeof e);
    return e.charCodeAt(0) === 65279 ? e.slice(1) : e;
  };
});

// ../node_modules/tsconfig-paths/lib/tsconfig-loader.js
var y0 = B((Ar) => {
  "use strict";
  var Ji = Ar && Ar.__assign || function() {
    return Ji = Object.assign || function(e) {
      for (var t, r = 1, i = arguments.length; r < i; r++) {
        t = arguments[r];
        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
      }
      return e;
    }, Ji.apply(this, arguments);
  };
  Object.defineProperty(Ar, "__esModule", { value: !0 });
  Ar.loadTsconfig = Ar.walkForTsConfig = Ar.tsConfigLoader = void 0;
  var cr = H("path"), Bs = H("fs"), G6 = f0(), X6 = m0();
  function Y6(e) {
    var t = e.getEnv, r = e.cwd, i = e.loadSync, n = i === void 0 ? K6 : i, a = t("TS_NODE_PROJECT"), u = t("TS_NODE_BASEURL"), o = n(r, a, u);
    return o;
  }
  s(Y6, "tsConfigLoader");
  Ar.tsConfigLoader = Y6;
  function K6(e, t, r) {
    var i = Q6(e, t);
    if (!i)
      return {
        tsConfigPath: void 0,
        baseUrl: void 0,
        paths: void 0
      };
    var n = zl(i);
    return {
      tsConfigPath: i,
      baseUrl: r || n && n.compilerOptions && n.compilerOptions.baseUrl,
      paths: n && n.compilerOptions && n.compilerOptions.paths
    };
  }
  s(K6, "loadSyncDefault");
  function Q6(e, t) {
    if (t) {
      var r = Bs.lstatSync(t).isDirectory() ? cr.resolve(t, "./tsconfig.json") : cr.resolve(e, t);
      return r;
    }
    if (Bs.statSync(e).isFile())
      return cr.resolve(e);
    var i = Ul(e);
    return i ? cr.resolve(i) : void 0;
  }
  s(Q6, "resolveConfigPath");
  function Ul(e, t) {
    t === void 0 && (t = Bs.readdirSync);
    for (var r = t(e), i = ["tsconfig.json", "jsconfig.json"], n = 0, a = i; n < a.length; n++) {
      var u = a[n];
      if (r.indexOf(u) !== -1)
        return cr.join(e, u);
    }
    var o = cr.dirname(e);
    if (e !== o)
      return Ul(o, t);
  }
  s(Ul, "walkForTsConfig");
  Ar.walkForTsConfig = Ul;
  function zl(e, t, r) {
    if (t === void 0 && (t = Bs.existsSync), r === void 0 && (r = /* @__PURE__ */ s(function(l) {
      return Bs.readFileSync(l, "utf8");
    }, "readFileSync")), !!t(e)) {
      var i = r(e), n = X6(i), a;
      try {
        a = G6.parse(n);
      } catch (l) {
        throw new Error("".concat(e, " is malformed ").concat(l.message));
      }
      var u = a.extends;
      if (u) {
        var o = void 0;
        return Array.isArray(u) ? o = u.reduce(function(l, c) {
          return D0(l, g0(e, c, t, r));
        }, {}) : o = g0(e, u, t, r), D0(o, a);
      }
      return a;
    }
  }
  s(zl, "loadTsconfig");
  Ar.loadTsconfig = zl;
  function g0(e, t, r, i) {
    var n;
    typeof t == "string" && t.indexOf(".json") === -1 && (t += ".json");
    var a = cr.dirname(e), u = cr.join(a, t);
    t.indexOf("/") !== -1 && t.indexOf(".") !== -1 && !r(u) && (u = cr.join(a, "node_modules", t));
    var o = zl(u, r, i) || {};
    if (!((n = o.compilerOptions) === null || n === void 0) && n.baseUrl) {
      var l = cr.dirname(t);
      o.compilerOptions.baseUrl = cr.join(l, o.compilerOptions.baseUrl);
    }
    return o;
  }
  s(g0, "loadTsconfigFromExtends");
  function D0(e, t) {
    return e = e || {}, t = t || {}, Ji(Ji(Ji({}, e), t), { compilerOptions: Ji(Ji({}, e.compilerOptions), t.compilerOptions) });
  }
  s(D0, "mergeTsconfigs");
});

// ../node_modules/tsconfig-paths/lib/config-loader.js
var Hl = B((bn) => {
  "use strict";
  Object.defineProperty(bn, "__esModule", { value: !0 });
  bn.configLoader = bn.loadConfig = void 0;
  var Z6 = y0(), Ga = H("path");
  function eB(e) {
    return e === void 0 && (e = process.cwd()), x0({ cwd: e });
  }
  s(eB, "loadConfig");
  bn.loadConfig = eB;
  function x0(e) {
    var t = e.cwd, r = e.explicitParams, i = e.tsConfigLoader, n = i === void 0 ? Z6.tsConfigLoader : i;
    if (r) {
      var a = Ga.isAbsolute(r.baseUrl) ? r.baseUrl : Ga.join(t, r.baseUrl);
      return {
        resultType: "success",
        configFileAbsolutePath: "",
        baseUrl: r.baseUrl,
        absoluteBaseUrl: a,
        paths: r.paths,
        mainFields: r.mainFields,
        addMatchAll: r.addMatchAll
      };
    }
    var u = n({
      cwd: t,
      getEnv: /* @__PURE__ */ s(function(o) {
        return process.env[o];
      }, "getEnv")
    });
    return u.tsConfigPath ? {
      resultType: "success",
      configFileAbsolutePath: u.tsConfigPath,
      baseUrl: u.baseUrl,
      absoluteBaseUrl: Ga.resolve(Ga.dirname(u.tsConfigPath), u.baseUrl || ""),
      paths: u.paths || {},
      addMatchAll: u.baseUrl !== void 0
    } : {
      resultType: "failed",
      message: "Couldn't find tsconfig.json"
    };
  }
  s(x0, "configLoader");
  bn.configLoader = x0;
});

// ../node_modules/minimist/index.js
var C0 = B((fY, v0) => {
  "use strict";
  function tB(e, t) {
    var r = e;
    t.slice(0, -1).forEach(function(n) {
      r = r[n] || {};
    });
    var i = t[t.length - 1];
    return i in r;
  }
  s(tB, "hasKey");
  function E0(e) {
    return typeof e == "number" || /^0x[0-9a-f]+$/i.test(e) ? !0 : /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e);
  }
  s(E0, "isNumber");
  function b0(e, t) {
    return t === "constructor" && typeof e[t] == "function" || t === "__proto__";
  }
  s(b0, "isConstructorOrProto");
  v0.exports = function(e, t) {
    t || (t = {});
    var r = {
      bools: {},
      strings: {},
      unknownFn: null
    };
    typeof t.unknown == "function" && (r.unknownFn = t.unknown), typeof t.boolean == "boolean" && t.boolean ? r.allBools = !0 : [].concat(t.
    boolean).filter(Boolean).forEach(function(T) {
      r.bools[T] = !0;
    });
    var i = {};
    function n(T) {
      return i[T].some(function(j) {
        return r.bools[j];
      });
    }
    s(n, "aliasIsBoolean"), Object.keys(t.alias || {}).forEach(function(T) {
      i[T] = [].concat(t.alias[T]), i[T].forEach(function(j) {
        i[j] = [T].concat(i[T].filter(function(w) {
          return j !== w;
        }));
      });
    }), [].concat(t.string).filter(Boolean).forEach(function(T) {
      r.strings[T] = !0, i[T] && [].concat(i[T]).forEach(function(j) {
        r.strings[j] = !0;
      });
    });
    var a = t.default || {}, u = { _: [] };
    function o(T, j) {
      return r.allBools && /^--[^=]+$/.test(j) || r.strings[T] || r.bools[T] || i[T];
    }
    s(o, "argDefined");
    function l(T, j, w) {
      for (var A = T, P = 0; P < j.length - 1; P++) {
        var k = j[P];
        if (b0(A, k))
          return;
        A[k] === void 0 && (A[k] = {}), (A[k] === Object.prototype || A[k] === Number.prototype || A[k] === String.prototype) && (A[k] = {}),
        A[k] === Array.prototype && (A[k] = []), A = A[k];
      }
      var $ = j[j.length - 1];
      b0(A, $) || ((A === Object.prototype || A === Number.prototype || A === String.prototype) && (A = {}), A === Array.prototype && (A = []),
      A[$] === void 0 || r.bools[$] || typeof A[$] == "boolean" ? A[$] = w : Array.isArray(A[$]) ? A[$].push(w) : A[$] = [A[$], w]);
    }
    s(l, "setKey");
    function c(T, j, w) {
      if (!(w && r.unknownFn && !o(T, w) && r.unknownFn(w) === !1)) {
        var A = !r.strings[T] && E0(j) ? Number(j) : j;
        l(u, T.split("."), A), (i[T] || []).forEach(function(P) {
          l(u, P.split("."), A);
        });
      }
    }
    s(c, "setArg"), Object.keys(r.bools).forEach(function(T) {
      c(T, a[T] === void 0 ? !1 : a[T]);
    });
    var h = [];
    e.indexOf("--") !== -1 && (h = e.slice(e.indexOf("--") + 1), e = e.slice(0, e.indexOf("--")));
    for (var p = 0; p < e.length; p++) {
      var d = e[p], m, g;
      if (/^--.+=/.test(d)) {
        var D = d.match(/^--([^=]+)=([\s\S]*)$/);
        m = D[1];
        var v = D[2];
        r.bools[m] && (v = v !== "false"), c(m, v, d);
      } else if (/^--no-.+/.test(d))
        m = d.match(/^--no-(.+)/)[1], c(m, !1, d);
      else if (/^--.+/.test(d))
        m = d.match(/^--(.+)/)[1], g = e[p + 1], g !== void 0 && !/^(-|--)[^-]/.test(g) && !r.bools[m] && !r.allBools && (!i[m] || !n(m)) ? (c(
        m, g, d), p += 1) : /^(true|false)$/.test(g) ? (c(m, g === "true", d), p += 1) : c(m, r.strings[m] ? "" : !0, d);
      else if (/^-[^-]+/.test(d)) {
        for (var y = d.slice(1, -1).split(""), C = !1, S = 0; S < y.length; S++) {
          if (g = d.slice(S + 2), g === "-") {
            c(y[S], g, d);
            continue;
          }
          if (/[A-Za-z]/.test(y[S]) && g[0] === "=") {
            c(y[S], g.slice(1), d), C = !0;
            break;
          }
          if (/[A-Za-z]/.test(y[S]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(g)) {
            c(y[S], g, d), C = !0;
            break;
          }
          if (y[S + 1] && y[S + 1].match(/\W/)) {
            c(y[S], d.slice(S + 2), d), C = !0;
            break;
          } else
            c(y[S], r.strings[y[S]] ? "" : !0, d);
        }
        m = d.slice(-1)[0], !C && m !== "-" && (e[p + 1] && !/^(-|--)[^-]/.test(e[p + 1]) && !r.bools[m] && (!i[m] || !n(m)) ? (c(m, e[p + 1],
        d), p += 1) : e[p + 1] && /^(true|false)$/.test(e[p + 1]) ? (c(m, e[p + 1] === "true", d), p += 1) : c(m, r.strings[m] ? "" : !0, d));
      } else if ((!r.unknownFn || r.unknownFn(d) !== !1) && u._.push(r.strings._ || !E0(d) ? d : Number(d)), t.stopEarly) {
        u._.push.apply(u._, e.slice(p + 1));
        break;
      }
    }
    return Object.keys(a).forEach(function(T) {
      tB(u, T.split(".")) || (l(u, T.split("."), a[T]), (i[T] || []).forEach(function(j) {
        l(u, j.split("."), a[T]);
      }));
    }), t["--"] ? u["--"] = h.slice() : h.forEach(function(T) {
      u._.push(T);
    }), u;
  };
});

// ../node_modules/tsconfig-paths/lib/register.js
var w0 = B((vn) => {
  "use strict";
  var rB = vn && vn.__spreadArray || function(e, t, r) {
    if (r || arguments.length === 2) for (var i = 0, n = t.length, a; i < n; i++)
      (a || !(i in t)) && (a || (a = Array.prototype.slice.call(t, 0, i)), a[i] = t[i]);
    return e.concat(a || Array.prototype.slice.call(t));
  };
  Object.defineProperty(vn, "__esModule", { value: !0 });
  vn.register = void 0;
  var iB = Il(), nB = Hl(), sB = /* @__PURE__ */ s(function() {
  }, "noOp");
  function aB(e) {
    e = e || [
      "assert",
      "buffer",
      "child_process",
      "cluster",
      "crypto",
      "dgram",
      "dns",
      "domain",
      "events",
      "fs",
      "http",
      "https",
      "net",
      "os",
      "path",
      "punycode",
      "querystring",
      "readline",
      "stream",
      "string_decoder",
      "tls",
      "tty",
      "url",
      "util",
      "v8",
      "vm",
      "zlib"
    ];
    for (var t = {}, r = 0, i = e; r < i.length; r++) {
      var n = i[r];
      t[n] = !0;
    }
    return t;
  }
  s(aB, "getCoreModules");
  function uB(e) {
    var t, r;
    if (e)
      t = e.cwd, (e.baseUrl || e.paths) && (r = e);
    else {
      var i = C0(), n = i(process.argv.slice(2), {
        // eslint-disable-next-line id-denylist
        string: ["project"],
        alias: {
          project: ["P"]
        }
      });
      t = n.project;
    }
    var a = (0, nB.configLoader)({
      cwd: t ?? process.cwd(),
      explicitParams: r
    });
    if (a.resultType === "failed")
      return console.warn("".concat(a.message, ". tsconfig-paths will be skipped")), sB;
    var u = (0, iB.createMatchPath)(a.absoluteBaseUrl, a.paths, a.mainFields, a.addMatchAll), o = H("module"), l = o._resolveFilename, c = aB(
    o.builtinModules);
    return o._resolveFilename = function(h, p) {
      var d = c.hasOwnProperty(h);
      if (!d) {
        var m = u(h);
        if (m) {
          var g = rB([m], [].slice.call(arguments, 1), !0);
          return l.apply(this, g);
        }
      }
      return l.apply(this, arguments);
    }, function() {
      o._resolveFilename = l;
    };
  }
  s(uB, "register");
  vn.register = uB;
});

// ../node_modules/tsconfig-paths/lib/index.js
var S0 = B((Ft) => {
  "use strict";
  Object.defineProperty(Ft, "__esModule", { value: !0 });
  Ft.loadConfig = Ft.register = Ft.matchFromAbsolutePathsAsync = Ft.createMatchPathAsync = Ft.matchFromAbsolutePaths = Ft.createMatchPath = void 0;
  var A0 = Il();
  Object.defineProperty(Ft, "createMatchPath", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return A0.createMatchPath;
  }, "get") });
  Object.defineProperty(Ft, "matchFromAbsolutePaths", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return A0.matchFromAbsolutePaths;
  }, "get") });
  var F0 = r0();
  Object.defineProperty(Ft, "createMatchPathAsync", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return F0.createMatchPathAsync;
  }, "get") });
  Object.defineProperty(Ft, "matchFromAbsolutePathsAsync", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return F0.matchFromAbsolutePathsAsync;
  }, "get") });
  var oB = w0();
  Object.defineProperty(Ft, "register", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return oB.register;
  }, "get") });
  var lB = Hl();
  Object.defineProperty(Ft, "loadConfig", { enumerable: !0, get: /* @__PURE__ */ s(function() {
    return lB.loadConfig;
  }, "get") });
});

// ../node_modules/@sindresorhus/merge-streams/index.js
import { on as cB, once as hB } from "node:events";
import { PassThrough as pB } from "node:stream";
import { finished as I0 } from "node:stream/promises";
function Xl(e) {
  if (!Array.isArray(e))
    throw new TypeError(`Expected an array, got \`${typeof e}\`.`);
  for (let n of e)
    Jl(n);
  let t = e.some(({ readableObjectMode: n }) => n), r = fB(e, t), i = new Wl({
    objectMode: t,
    writableHighWaterMark: r,
    readableHighWaterMark: r
  });
  for (let n of e)
    i.add(n);
  return e.length === 0 && N0(i), i;
}
var fB, Wl, dB, mB, gB, Jl, DB, O0, yB, xB, EB, R0, N0, Gl, L0, bB, Xa, B0, P0, M0 = ut(() => {
  s(Xl, "mergeStreams");
  fB = /* @__PURE__ */ s((e, t) => {
    if (e.length === 0)
      return 16384;
    let r = e.filter(({ readableObjectMode: i }) => i === t).map(({ readableHighWaterMark: i }) => i);
    return Math.max(...r);
  }, "getHighWaterMark"), Wl = class extends pB {
    static {
      s(this, "MergedStream");
    }
    #t = /* @__PURE__ */ new Set([]);
    #r = /* @__PURE__ */ new Set([]);
    #e = /* @__PURE__ */ new Set([]);
    #i;
    add(t) {
      Jl(t), !this.#t.has(t) && (this.#t.add(t), this.#i ??= dB(this, this.#t), DB({
        passThroughStream: this,
        stream: t,
        streams: this.#t,
        ended: this.#r,
        aborted: this.#e,
        onFinished: this.#i
      }), t.pipe(this, { end: !1 }));
    }
    remove(t) {
      return Jl(t), this.#t.has(t) ? (t.unpipe(this), !0) : !1;
    }
  }, dB = /* @__PURE__ */ s(async (e, t) => {
    Xa(e, B0);
    let r = new AbortController();
    try {
      await Promise.race([
        mB(e, r),
        gB(e, t, r)
      ]);
    } finally {
      r.abort(), Xa(e, -B0);
    }
  }, "onMergedStreamFinished"), mB = /* @__PURE__ */ s(async (e, { signal: t }) => {
    await I0(e, { signal: t, cleanup: !0 });
  }, "onMergedStreamEnd"), gB = /* @__PURE__ */ s(async (e, t, { signal: r }) => {
    for await (let [i] of cB(e, "unpipe", { signal: r }))
      t.has(i) && i.emit(R0);
  }, "onInputStreamsUnpipe"), Jl = /* @__PURE__ */ s((e) => {
    if (typeof e?.pipe != "function")
      throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`);
  }, "validateStream"), DB = /* @__PURE__ */ s(async ({ passThroughStream: e, stream: t, streams: r, ended: i, aborted: n, onFinished: a }) => {
    Xa(e, P0);
    let u = new AbortController();
    try {
      await Promise.race([
        yB(a, t),
        xB({ passThroughStream: e, stream: t, streams: r, ended: i, aborted: n, controller: u }),
        EB({ stream: t, streams: r, ended: i, aborted: n, controller: u })
      ]);
    } finally {
      u.abort(), Xa(e, -P0);
    }
    r.size === i.size + n.size && (i.size === 0 && n.size > 0 ? Gl(e) : N0(e));
  }, "endWhenStreamsDone"), O0 = /* @__PURE__ */ s((e) => e?.code === "ERR_STREAM_PREMATURE_CLOSE", "isAbortError"), yB = /* @__PURE__ */ s(
  async (e, t) => {
    try {
      await e, Gl(t);
    } catch (r) {
      O0(r) ? Gl(t) : L0(t, r);
    }
  }, "afterMergedStreamFinished"), xB = /* @__PURE__ */ s(async ({ passThroughStream: e, stream: t, streams: r, ended: i, aborted: n, controller: {
  signal: a } }) => {
    try {
      await I0(t, { signal: a, cleanup: !0, readable: !0, writable: !1 }), r.has(t) && i.add(t);
    } catch (u) {
      if (a.aborted || !r.has(t))
        return;
      O0(u) ? n.add(t) : L0(e, u);
    }
  }, "onInputStreamEnd"), EB = /* @__PURE__ */ s(async ({ stream: e, streams: t, ended: r, aborted: i, controller: { signal: n } }) => {
    await hB(e, R0, { signal: n }), t.delete(e), r.delete(e), i.delete(e);
  }, "onInputStreamUnpipe"), R0 = Symbol("unpipe"), N0 = /* @__PURE__ */ s((e) => {
    e.writable && e.end();
  }, "endStream"), Gl = /* @__PURE__ */ s((e) => {
    (e.readable || e.writable) && e.destroy();
  }, "abortStream"), L0 = /* @__PURE__ */ s((e, t) => {
    e.destroyed || (e.once("error", bB), e.destroy(t));
  }, "errorStream"), bB = /* @__PURE__ */ s(() => {
  }, "noop"), Xa = /* @__PURE__ */ s((e, t) => {
    let r = e.getMaxListeners();
    r !== 0 && r !== Number.POSITIVE_INFINITY && e.setMaxListeners(r + t);
  }, "updateMaxListeners"), B0 = 2, P0 = 1;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/array.js
var j0 = B((Cn) => {
  "use strict";
  Object.defineProperty(Cn, "__esModule", { value: !0 });
  Cn.splitWhen = Cn.flatten = void 0;
  function vB(e) {
    return e.reduce((t, r) => [].concat(t, r), []);
  }
  s(vB, "flatten");
  Cn.flatten = vB;
  function CB(e, t) {
    let r = [[]], i = 0;
    for (let n of e)
      t(n) ? (i++, r[i] = []) : r[i].push(n);
    return r;
  }
  s(CB, "splitWhen");
  Cn.splitWhen = CB;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/errno.js
var q0 = B((Ya) => {
  "use strict";
  Object.defineProperty(Ya, "__esModule", { value: !0 });
  Ya.isEnoentCodeError = void 0;
  function wB(e) {
    return e.code === "ENOENT";
  }
  s(wB, "isEnoentCodeError");
  Ya.isEnoentCodeError = wB;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/fs.js
var $0 = B((Ka) => {
  "use strict";
  Object.defineProperty(Ka, "__esModule", { value: !0 });
  Ka.createDirentFromStats = void 0;
  var Yl = class {
    static {
      s(this, "DirentFromStats");
    }
    constructor(t, r) {
      this.name = t, this.isBlockDevice = r.isBlockDevice.bind(r), this.isCharacterDevice = r.isCharacterDevice.bind(r), this.isDirectory = r.
      isDirectory.bind(r), this.isFIFO = r.isFIFO.bind(r), this.isFile = r.isFile.bind(r), this.isSocket = r.isSocket.bind(r), this.isSymbolicLink =
      r.isSymbolicLink.bind(r);
    }
  };
  function AB(e, t) {
    return new Yl(e, t);
  }
  s(AB, "createDirentFromStats");
  Ka.createDirentFromStats = AB;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/path.js
var H0 = B((Ze) => {
  "use strict";
  Object.defineProperty(Ze, "__esModule", { value: !0 });
  Ze.convertPosixPathToPattern = Ze.convertWindowsPathToPattern = Ze.convertPathToPattern = Ze.escapePosixPath = Ze.escapeWindowsPath = Ze.escape =
  Ze.removeLeadingDotSegment = Ze.makeAbsolute = Ze.unixify = void 0;
  var FB = H("os"), SB = H("path"), V0 = FB.platform() === "win32", _B = 2, kB = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,
  TB = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, BB = /^\\\\([.?])/, PB = /\\(?![!()+@[\]{}])/g;
  function IB(e) {
    return e.replace(/\\/g, "/");
  }
  s(IB, "unixify");
  Ze.unixify = IB;
  function OB(e, t) {
    return SB.resolve(e, t);
  }
  s(OB, "makeAbsolute");
  Ze.makeAbsolute = OB;
  function RB(e) {
    if (e.charAt(0) === ".") {
      let t = e.charAt(1);
      if (t === "/" || t === "\\")
        return e.slice(_B);
    }
    return e;
  }
  s(RB, "removeLeadingDotSegment");
  Ze.removeLeadingDotSegment = RB;
  Ze.escape = V0 ? Kl : Ql;
  function Kl(e) {
    return e.replace(TB, "\\$2");
  }
  s(Kl, "escapeWindowsPath");
  Ze.escapeWindowsPath = Kl;
  function Ql(e) {
    return e.replace(kB, "\\$2");
  }
  s(Ql, "escapePosixPath");
  Ze.escapePosixPath = Ql;
  Ze.convertPathToPattern = V0 ? U0 : z0;
  function U0(e) {
    return Kl(e).replace(BB, "//$1").replace(PB, "/");
  }
  s(U0, "convertWindowsPathToPattern");
  Ze.convertWindowsPathToPattern = U0;
  function z0(e) {
    return Ql(e);
  }
  s(z0, "convertPosixPathToPattern");
  Ze.convertPosixPathToPattern = z0;
});

// ../node_modules/is-extglob/index.js
var J0 = B((qY, W0) => {
  W0.exports = /* @__PURE__ */ s(function(t) {
    if (typeof t != "string" || t === "")
      return !1;
    for (var r; r = /(\\).|([@?!+*]\(.*\))/g.exec(t); ) {
      if (r[2]) return !0;
      t = t.slice(r.index + r[0].length);
    }
    return !1;
  }, "isExtglob");
});

// ../node_modules/is-glob/index.js
var Y0 = B((VY, X0) => {
  var NB = J0(), G0 = { "{": "}", "(": ")", "[": "]" }, LB = /* @__PURE__ */ s(function(e) {
    if (e[0] === "!")
      return !0;
    for (var t = 0, r = -2, i = -2, n = -2, a = -2, u = -2; t < e.length; ) {
      if (e[t] === "*" || e[t + 1] === "?" && /[\].+)]/.test(e[t]) || i !== -1 && e[t] === "[" && e[t + 1] !== "]" && (i < t && (i = e.indexOf(
      "]", t)), i > t && (u === -1 || u > i || (u = e.indexOf("\\", t), u === -1 || u > i))) || n !== -1 && e[t] === "{" && e[t + 1] !== "}" &&
      (n = e.indexOf("}", t), n > t && (u = e.indexOf("\\", t), u === -1 || u > n)) || a !== -1 && e[t] === "(" && e[t + 1] === "?" && /[:!=]/.
      test(e[t + 2]) && e[t + 3] !== ")" && (a = e.indexOf(")", t), a > t && (u = e.indexOf("\\", t), u === -1 || u > a)) || r !== -1 && e[t] ===
      "(" && e[t + 1] !== "|" && (r < t && (r = e.indexOf("|", t)), r !== -1 && e[r + 1] !== ")" && (a = e.indexOf(")", r), a > r && (u = e.
      indexOf("\\", r), u === -1 || u > a))))
        return !0;
      if (e[t] === "\\") {
        var o = e[t + 1];
        t += 2;
        var l = G0[o];
        if (l) {
          var c = e.indexOf(l, t);
          c !== -1 && (t = c + 1);
        }
        if (e[t] === "!")
          return !0;
      } else
        t++;
    }
    return !1;
  }, "strictCheck"), MB = /* @__PURE__ */ s(function(e) {
    if (e[0] === "!")
      return !0;
    for (var t = 0; t < e.length; ) {
      if (/[*?{}()[\]]/.test(e[t]))
        return !0;
      if (e[t] === "\\") {
        var r = e[t + 1];
        t += 2;
        var i = G0[r];
        if (i) {
          var n = e.indexOf(i, t);
          n !== -1 && (t = n + 1);
        }
        if (e[t] === "!")
          return !0;
      } else
        t++;
    }
    return !1;
  }, "relaxedCheck");
  X0.exports = /* @__PURE__ */ s(function(t, r) {
    if (typeof t != "string" || t === "")
      return !1;
    if (NB(t))
      return !0;
    var i = LB;
    return r && r.strict === !1 && (i = MB), i(t);
  }, "isGlob");
});

// ../node_modules/glob-parent/index.js
var Q0 = B((zY, K0) => {
  "use strict";
  var jB = Y0(), qB = H("path").posix.dirname, $B = H("os").platform() === "win32", Zl = "/", VB = /\\/g, UB = /[\{\[].*[\}\]]$/, zB = /(^|[^\\])([\{\[]|\([^\)]+$)/,
  HB = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
  K0.exports = /* @__PURE__ */ s(function(t, r) {
    var i = Object.assign({ flipBackslashes: !0 }, r);
    i.flipBackslashes && $B && t.indexOf(Zl) < 0 && (t = t.replace(VB, Zl)), UB.test(t) && (t += Zl), t += "a";
    do
      t = qB(t);
    while (jB(t) || zB.test(t));
    return t.replace(HB, "$1");
  }, "globParent");
});

// ../node_modules/braces/lib/utils.js
var Qa = B((zt) => {
  "use strict";
  zt.isInteger = (e) => typeof e == "number" ? Number.isInteger(e) : typeof e == "string" && e.trim() !== "" ? Number.isInteger(Number(e)) :
  !1;
  zt.find = (e, t) => e.nodes.find((r) => r.type === t);
  zt.exceedsLimit = (e, t, r = 1, i) => i === !1 || !zt.isInteger(e) || !zt.isInteger(t) ? !1 : (Number(t) - Number(e)) / Number(r) >= i;
  zt.escapeNode = (e, t = 0, r) => {
    let i = e.nodes[t];
    i && (r && i.type === r || i.type === "open" || i.type === "close") && i.escaped !== !0 && (i.value = "\\" + i.value, i.escaped = !0);
  };
  zt.encloseBrace = (e) => e.type !== "brace" ? !1 : e.commas >> 0 + e.ranges >> 0 === 0 ? (e.invalid = !0, !0) : !1;
  zt.isInvalidBrace = (e) => e.type !== "brace" ? !1 : e.invalid === !0 || e.dollar ? !0 : e.commas >> 0 + e.ranges >> 0 === 0 || e.open !==
  !0 || e.close !== !0 ? (e.invalid = !0, !0) : !1;
  zt.isOpenOrClose = (e) => e.type === "open" || e.type === "close" ? !0 : e.open === !0 || e.close === !0;
  zt.reduce = (e) => e.reduce((t, r) => (r.type === "text" && t.push(r.value), r.type === "range" && (r.type = "text"), t), []);
  zt.flatten = (...e) => {
    let t = [], r = /* @__PURE__ */ s((i) => {
      for (let n = 0; n < i.length; n++) {
        let a = i[n];
        if (Array.isArray(a)) {
          r(a);
          continue;
        }
        a !== void 0 && t.push(a);
      }
      return t;
    }, "flat");
    return r(e), t;
  };
});

// ../node_modules/braces/lib/stringify.js
var Za = B((GY, eD) => {
  "use strict";
  var Z0 = Qa();
  eD.exports = (e, t = {}) => {
    let r = /* @__PURE__ */ s((i, n = {}) => {
      let a = t.escapeInvalid && Z0.isInvalidBrace(n), u = i.invalid === !0 && t.escapeInvalid === !0, o = "";
      if (i.value)
        return (a || u) && Z0.isOpenOrClose(i) ? "\\" + i.value : i.value;
      if (i.value)
        return i.value;
      if (i.nodes)
        for (let l of i.nodes)
          o += r(l);
      return o;
    }, "stringify");
    return r(e);
  };
});

// ../node_modules/to-regex-range/node_modules/is-number/index.js
var rD = B((YY, tD) => {
  "use strict";
  tD.exports = function(e) {
    return typeof e == "number" ? e - e === 0 : typeof e == "string" && e.trim() !== "" ? Number.isFinite ? Number.isFinite(+e) : isFinite(+e) :
    !1;
  };
});

// ../node_modules/to-regex-range/index.js
var hD = B((KY, cD) => {
  "use strict";
  var iD = rD(), Gi = /* @__PURE__ */ s((e, t, r) => {
    if (iD(e) === !1)
      throw new TypeError("toRegexRange: expected the first argument to be a number");
    if (t === void 0 || e === t)
      return String(e);
    if (iD(t) === !1)
      throw new TypeError("toRegexRange: expected the second argument to be a number.");
    let i = { relaxZeros: !0, ...r };
    typeof i.strictZeros == "boolean" && (i.relaxZeros = i.strictZeros === !1);
    let n = String(i.relaxZeros), a = String(i.shorthand), u = String(i.capture), o = String(i.wrap), l = e + ":" + t + "=" + n + a + u + o;
    if (Gi.cache.hasOwnProperty(l))
      return Gi.cache[l].result;
    let c = Math.min(e, t), h = Math.max(e, t);
    if (Math.abs(c - h) === 1) {
      let D = e + "|" + t;
      return i.capture ? `(${D})` : i.wrap === !1 ? D : `(?:${D})`;
    }
    let p = lD(e) || lD(t), d = { min: e, max: t, a: c, b: h }, m = [], g = [];
    if (p && (d.isPadded = p, d.maxLen = String(d.max).length), c < 0) {
      let D = h < 0 ? Math.abs(h) : 1;
      g = nD(D, Math.abs(c), d, i), c = d.a = 0;
    }
    return h >= 0 && (m = nD(c, h, d, i)), d.negatives = g, d.positives = m, d.result = WB(g, m, i), i.capture === !0 ? d.result = `(${d.result}\
)` : i.wrap !== !1 && m.length + g.length > 1 && (d.result = `(?:${d.result})`), Gi.cache[l] = d, d.result;
  }, "toRegexRange");
  function WB(e, t, r) {
    let i = ec(e, t, "-", !1, r) || [], n = ec(t, e, "", !1, r) || [], a = ec(e, t, "-?", !0, r) || [];
    return i.concat(a).concat(n).join("|");
  }
  s(WB, "collatePatterns");
  function JB(e, t) {
    let r = 1, i = 1, n = aD(e, r), a = /* @__PURE__ */ new Set([t]);
    for (; e <= n && n <= t; )
      a.add(n), r += 1, n = aD(e, r);
    for (n = uD(t + 1, i) - 1; e < n && n <= t; )
      a.add(n), i += 1, n = uD(t + 1, i) - 1;
    return a = [...a], a.sort(YB), a;
  }
  s(JB, "splitToRanges");
  function GB(e, t, r) {
    if (e === t)
      return { pattern: e, count: [], digits: 0 };
    let i = XB(e, t), n = i.length, a = "", u = 0;
    for (let o = 0; o < n; o++) {
      let [l, c] = i[o];
      l === c ? a += l : l !== "0" || c !== "9" ? a += KB(l, c, r) : u++;
    }
    return u && (a += r.shorthand === !0 ? "\\d" : "[0-9]"), { pattern: a, count: [u], digits: n };
  }
  s(GB, "rangeToPattern");
  function nD(e, t, r, i) {
    let n = JB(e, t), a = [], u = e, o;
    for (let l = 0; l < n.length; l++) {
      let c = n[l], h = GB(String(u), String(c), i), p = "";
      if (!r.isPadded && o && o.pattern === h.pattern) {
        o.count.length > 1 && o.count.pop(), o.count.push(h.count[0]), o.string = o.pattern + oD(o.count), u = c + 1;
        continue;
      }
      r.isPadded && (p = QB(c, r, i)), h.string = p + h.pattern + oD(h.count), a.push(h), u = c + 1, o = h;
    }
    return a;
  }
  s(nD, "splitToPatterns");
  function ec(e, t, r, i, n) {
    let a = [];
    for (let u of e) {
      let { string: o } = u;
      !i && !sD(t, "string", o) && a.push(r + o), i && sD(t, "string", o) && a.push(r + o);
    }
    return a;
  }
  s(ec, "filterPatterns");
  function XB(e, t) {
    let r = [];
    for (let i = 0; i < e.length; i++) r.push([e[i], t[i]]);
    return r;
  }
  s(XB, "zip");
  function YB(e, t) {
    return e > t ? 1 : t > e ? -1 : 0;
  }
  s(YB, "compare");
  function sD(e, t, r) {
    return e.some((i) => i[t] === r);
  }
  s(sD, "contains");
  function aD(e, t) {
    return Number(String(e).slice(0, -t) + "9".repeat(t));
  }
  s(aD, "countNines");
  function uD(e, t) {
    return e - e % Math.pow(10, t);
  }
  s(uD, "countZeros");
  function oD(e) {
    let [t = 0, r = ""] = e;
    return r || t > 1 ? `{${t + (r ? "," + r : "")}}` : "";
  }
  s(oD, "toQuantifier");
  function KB(e, t, r) {
    return `[${e}${t - e === 1 ? "" : "-"}${t}]`;
  }
  s(KB, "toCharacterClass");
  function lD(e) {
    return /^-?(0+)\d/.test(e);
  }
  s(lD, "hasPadding");
  function QB(e, t, r) {
    if (!t.isPadded)
      return e;
    let i = Math.abs(t.maxLen - String(e).length), n = r.relaxZeros !== !1;
    switch (i) {
      case 0:
        return "";
      case 1:
        return n ? "0?" : "0";
      case 2:
        return n ? "0{0,2}" : "00";
      default:
        return n ? `0{0,${i}}` : `0{${i}}`;
    }
  }
  s(QB, "padZeros");
  Gi.cache = {};
  Gi.clearCache = () => Gi.cache = {};
  cD.exports = Gi;
});

// ../node_modules/fill-range/index.js
var ic = B((ZY, yD) => {
  "use strict";
  var ZB = H("util"), fD = hD(), pD = /* @__PURE__ */ s((e) => e !== null && typeof e == "object" && !Array.isArray(e), "isObject"), e8 = /* @__PURE__ */ s(
  (e) => (t) => e === !0 ? Number(t) : String(t), "transform"), tc = /* @__PURE__ */ s((e) => typeof e == "number" || typeof e == "string" &&
  e !== "", "isValidValue"), Is = /* @__PURE__ */ s((e) => Number.isInteger(+e), "isNumber"), rc = /* @__PURE__ */ s((e) => {
    let t = `${e}`, r = -1;
    if (t[0] === "-" && (t = t.slice(1)), t === "0") return !1;
    for (; t[++r] === "0"; ) ;
    return r > 0;
  }, "zeros"), t8 = /* @__PURE__ */ s((e, t, r) => typeof e == "string" || typeof t == "string" ? !0 : r.stringify === !0, "stringify"), r8 = /* @__PURE__ */ s(
  (e, t, r) => {
    if (t > 0) {
      let i = e[0] === "-" ? "-" : "";
      i && (e = e.slice(1)), e = i + e.padStart(i ? t - 1 : t, "0");
    }
    return r === !1 ? String(e) : e;
  }, "pad"), tu = /* @__PURE__ */ s((e, t) => {
    let r = e[0] === "-" ? "-" : "";
    for (r && (e = e.slice(1), t--); e.length < t; ) e = "0" + e;
    return r ? "-" + e : e;
  }, "toMaxLen"), i8 = /* @__PURE__ */ s((e, t, r) => {
    e.negatives.sort((o, l) => o < l ? -1 : o > l ? 1 : 0), e.positives.sort((o, l) => o < l ? -1 : o > l ? 1 : 0);
    let i = t.capture ? "" : "?:", n = "", a = "", u;
    return e.positives.length && (n = e.positives.map((o) => tu(String(o), r)).join("|")), e.negatives.length && (a = `-(${i}${e.negatives.map(
    (o) => tu(String(o), r)).join("|")})`), n && a ? u = `${n}|${a}` : u = n || a, t.wrap ? `(${i}${u})` : u;
  }, "toSequence"), dD = /* @__PURE__ */ s((e, t, r, i) => {
    if (r)
      return fD(e, t, { wrap: !1, ...i });
    let n = String.fromCharCode(e);
    if (e === t) return n;
    let a = String.fromCharCode(t);
    return `[${n}-${a}]`;
  }, "toRange"), mD = /* @__PURE__ */ s((e, t, r) => {
    if (Array.isArray(e)) {
      let i = r.wrap === !0, n = r.capture ? "" : "?:";
      return i ? `(${n}${e.join("|")})` : e.join("|");
    }
    return fD(e, t, r);
  }, "toRegex"), gD = /* @__PURE__ */ s((...e) => new RangeError("Invalid range arguments: " + ZB.inspect(...e)), "rangeError"), DD = /* @__PURE__ */ s(
  (e, t, r) => {
    if (r.strictRanges === !0) throw gD([e, t]);
    return [];
  }, "invalidRange"), n8 = /* @__PURE__ */ s((e, t) => {
    if (t.strictRanges === !0)
      throw new TypeError(`Expected step "${e}" to be a number`);
    return [];
  }, "invalidStep"), s8 = /* @__PURE__ */ s((e, t, r = 1, i = {}) => {
    let n = Number(e), a = Number(t);
    if (!Number.isInteger(n) || !Number.isInteger(a)) {
      if (i.strictRanges === !0) throw gD([e, t]);
      return [];
    }
    n === 0 && (n = 0), a === 0 && (a = 0);
    let u = n > a, o = String(e), l = String(t), c = String(r);
    r = Math.max(Math.abs(r), 1);
    let h = rc(o) || rc(l) || rc(c), p = h ? Math.max(o.length, l.length, c.length) : 0, d = h === !1 && t8(e, t, i) === !1, m = i.transform ||
    e8(d);
    if (i.toRegex && r === 1)
      return dD(tu(e, p), tu(t, p), !0, i);
    let g = { negatives: [], positives: [] }, D = /* @__PURE__ */ s((C) => g[C < 0 ? "negatives" : "positives"].push(Math.abs(C)), "push"), v = [],
    y = 0;
    for (; u ? n >= a : n <= a; )
      i.toRegex === !0 && r > 1 ? D(n) : v.push(r8(m(n, y), p, d)), n = u ? n - r : n + r, y++;
    return i.toRegex === !0 ? r > 1 ? i8(g, i, p) : mD(v, null, { wrap: !1, ...i }) : v;
  }, "fillNumbers"), a8 = /* @__PURE__ */ s((e, t, r = 1, i = {}) => {
    if (!Is(e) && e.length > 1 || !Is(t) && t.length > 1)
      return DD(e, t, i);
    let n = i.transform || ((d) => String.fromCharCode(d)), a = `${e}`.charCodeAt(0), u = `${t}`.charCodeAt(0), o = a > u, l = Math.min(a, u),
    c = Math.max(a, u);
    if (i.toRegex && r === 1)
      return dD(l, c, !1, i);
    let h = [], p = 0;
    for (; o ? a >= u : a <= u; )
      h.push(n(a, p)), a = o ? a - r : a + r, p++;
    return i.toRegex === !0 ? mD(h, null, { wrap: !1, options: i }) : h;
  }, "fillLetters"), eu = /* @__PURE__ */ s((e, t, r, i = {}) => {
    if (t == null && tc(e))
      return [e];
    if (!tc(e) || !tc(t))
      return DD(e, t, i);
    if (typeof r == "function")
      return eu(e, t, 1, { transform: r });
    if (pD(r))
      return eu(e, t, 0, r);
    let n = { ...i };
    return n.capture === !0 && (n.wrap = !0), r = r || n.step || 1, Is(r) ? Is(e) && Is(t) ? s8(e, t, r, n) : a8(e, t, Math.max(Math.abs(r),
    1), n) : r != null && !pD(r) ? n8(r, n) : eu(e, t, 1, r);
  }, "fill");
  yD.exports = eu;
});

// ../node_modules/braces/lib/compile.js
var bD = B((tK, ED) => {
  "use strict";
  var u8 = ic(), xD = Qa(), o8 = /* @__PURE__ */ s((e, t = {}) => {
    let r = /* @__PURE__ */ s((i, n = {}) => {
      let a = xD.isInvalidBrace(n), u = i.invalid === !0 && t.escapeInvalid === !0, o = a === !0 || u === !0, l = t.escapeInvalid === !0 ? "\
\\" : "", c = "";
      if (i.isOpen === !0)
        return l + i.value;
      if (i.isClose === !0)
        return console.log("node.isClose", l, i.value), l + i.value;
      if (i.type === "open")
        return o ? l + i.value : "(";
      if (i.type === "close")
        return o ? l + i.value : ")";
      if (i.type === "comma")
        return i.prev.type === "comma" ? "" : o ? i.value : "|";
      if (i.value)
        return i.value;
      if (i.nodes && i.ranges > 0) {
        let h = xD.reduce(i.nodes), p = u8(...h, { ...t, wrap: !1, toRegex: !0, strictZeros: !0 });
        if (p.length !== 0)
          return h.length > 1 && p.length > 1 ? `(${p})` : p;
      }
      if (i.nodes)
        for (let h of i.nodes)
          c += r(h, i);
      return c;
    }, "walk");
    return r(e);
  }, "compile");
  ED.exports = o8;
});

// ../node_modules/braces/lib/expand.js
var wD = B((iK, CD) => {
  "use strict";
  var l8 = ic(), vD = Za(), wn = Qa(), Xi = /* @__PURE__ */ s((e = "", t = "", r = !1) => {
    let i = [];
    if (e = [].concat(e), t = [].concat(t), !t.length) return e;
    if (!e.length)
      return r ? wn.flatten(t).map((n) => `{${n}}`) : t;
    for (let n of e)
      if (Array.isArray(n))
        for (let a of n)
          i.push(Xi(a, t, r));
      else
        for (let a of t)
          r === !0 && typeof a == "string" && (a = `{${a}}`), i.push(Array.isArray(a) ? Xi(n, a, r) : n + a);
    return wn.flatten(i);
  }, "append"), c8 = /* @__PURE__ */ s((e, t = {}) => {
    let r = t.rangeLimit === void 0 ? 1e3 : t.rangeLimit, i = /* @__PURE__ */ s((n, a = {}) => {
      n.queue = [];
      let u = a, o = a.queue;
      for (; u.type !== "brace" && u.type !== "root" && u.parent; )
        u = u.parent, o = u.queue;
      if (n.invalid || n.dollar) {
        o.push(Xi(o.pop(), vD(n, t)));
        return;
      }
      if (n.type === "brace" && n.invalid !== !0 && n.nodes.length === 2) {
        o.push(Xi(o.pop(), ["{}"]));
        return;
      }
      if (n.nodes && n.ranges > 0) {
        let p = wn.reduce(n.nodes);
        if (wn.exceedsLimit(...p, t.step, r))
          throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
        let d = l8(...p, t);
        d.length === 0 && (d = vD(n, t)), o.push(Xi(o.pop(), d)), n.nodes = [];
        return;
      }
      let l = wn.encloseBrace(n), c = n.queue, h = n;
      for (; h.type !== "brace" && h.type !== "root" && h.parent; )
        h = h.parent, c = h.queue;
      for (let p = 0; p < n.nodes.length; p++) {
        let d = n.nodes[p];
        if (d.type === "comma" && n.type === "brace") {
          p === 1 && c.push(""), c.push("");
          continue;
        }
        if (d.type === "close") {
          o.push(Xi(o.pop(), c, l));
          continue;
        }
        if (d.value && d.type !== "open") {
          c.push(Xi(c.pop(), d.value));
          continue;
        }
        d.nodes && i(d, n);
      }
      return c;
    }, "walk");
    return wn.flatten(i(e));
  }, "expand");
  CD.exports = c8;
});

// ../node_modules/braces/lib/constants.js
var FD = B((sK, AD) => {
  "use strict";
  AD.exports = {
    MAX_LENGTH: 1e4,
    // Digits
    CHAR_0: "0",
    /* 0 */
    CHAR_9: "9",
    /* 9 */
    // Alphabet chars.
    CHAR_UPPERCASE_A: "A",
    /* A */
    CHAR_LOWERCASE_A: "a",
    /* a */
    CHAR_UPPERCASE_Z: "Z",
    /* Z */
    CHAR_LOWERCASE_Z: "z",
    /* z */
    CHAR_LEFT_PARENTHESES: "(",
    /* ( */
    CHAR_RIGHT_PARENTHESES: ")",
    /* ) */
    CHAR_ASTERISK: "*",
    /* * */
    // Non-alphabetic chars.
    CHAR_AMPERSAND: "&",
    /* & */
    CHAR_AT: "@",
    /* @ */
    CHAR_BACKSLASH: "\\",
    /* \ */
    CHAR_BACKTICK: "`",
    /* ` */
    CHAR_CARRIAGE_RETURN: "\r",
    /* \r */
    CHAR_CIRCUMFLEX_ACCENT: "^",
    /* ^ */
    CHAR_COLON: ":",
    /* : */
    CHAR_COMMA: ",",
    /* , */
    CHAR_DOLLAR: "$",
    /* . */
    CHAR_DOT: ".",
    /* . */
    CHAR_DOUBLE_QUOTE: '"',
    /* " */
    CHAR_EQUAL: "=",
    /* = */
    CHAR_EXCLAMATION_MARK: "!",
    /* ! */
    CHAR_FORM_FEED: "\f",
    /* \f */
    CHAR_FORWARD_SLASH: "/",
    /* / */
    CHAR_HASH: "#",
    /* # */
    CHAR_HYPHEN_MINUS: "-",
    /* - */
    CHAR_LEFT_ANGLE_BRACKET: "<",
    /* < */
    CHAR_LEFT_CURLY_BRACE: "{",
    /* { */
    CHAR_LEFT_SQUARE_BRACKET: "[",
    /* [ */
    CHAR_LINE_FEED: `
`,
    /* \n */
    CHAR_NO_BREAK_SPACE: "\xA0",
    /* \u00A0 */
    CHAR_PERCENT: "%",
    /* % */
    CHAR_PLUS: "+",
    /* + */
    CHAR_QUESTION_MARK: "?",
    /* ? */
    CHAR_RIGHT_ANGLE_BRACKET: ">",
    /* > */
    CHAR_RIGHT_CURLY_BRACE: "}",
    /* } */
    CHAR_RIGHT_SQUARE_BRACKET: "]",
    /* ] */
    CHAR_SEMICOLON: ";",
    /* ; */
    CHAR_SINGLE_QUOTE: "'",
    /* ' */
    CHAR_SPACE: " ",
    /*   */
    CHAR_TAB: "	",
    /* \t */
    CHAR_UNDERSCORE: "_",
    /* _ */
    CHAR_VERTICAL_LINE: "|",
    /* | */
    CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
    /* \uFEFF */
  };
});

// ../node_modules/braces/lib/parse.js
var BD = B((aK, TD) => {
  "use strict";
  var h8 = Za(), {
    MAX_LENGTH: SD,
    CHAR_BACKSLASH: nc,
    /* \ */
    CHAR_BACKTICK: p8,
    /* ` */
    CHAR_COMMA: f8,
    /* , */
    CHAR_DOT: d8,
    /* . */
    CHAR_LEFT_PARENTHESES: m8,
    /* ( */
    CHAR_RIGHT_PARENTHESES: g8,
    /* ) */
    CHAR_LEFT_CURLY_BRACE: D8,
    /* { */
    CHAR_RIGHT_CURLY_BRACE: y8,
    /* } */
    CHAR_LEFT_SQUARE_BRACKET: _D,
    /* [ */
    CHAR_RIGHT_SQUARE_BRACKET: kD,
    /* ] */
    CHAR_DOUBLE_QUOTE: x8,
    /* " */
    CHAR_SINGLE_QUOTE: E8,
    /* ' */
    CHAR_NO_BREAK_SPACE: b8,
    CHAR_ZERO_WIDTH_NOBREAK_SPACE: v8
  } = FD(), C8 = /* @__PURE__ */ s((e, t = {}) => {
    if (typeof e != "string")
      throw new TypeError("Expected a string");
    let r = t || {}, i = typeof r.maxLength == "number" ? Math.min(SD, r.maxLength) : SD;
    if (e.length > i)
      throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);
    let n = { type: "root", input: e, nodes: [] }, a = [n], u = n, o = n, l = 0, c = e.length, h = 0, p = 0, d, m = /* @__PURE__ */ s(() => e[h++],
    "advance"), g = /* @__PURE__ */ s((D) => {
      if (D.type === "text" && o.type === "dot" && (o.type = "text"), o && o.type === "text" && D.type === "text") {
        o.value += D.value;
        return;
      }
      return u.nodes.push(D), D.parent = u, D.prev = o, o = D, D;
    }, "push");
    for (g({ type: "bos" }); h < c; )
      if (u = a[a.length - 1], d = m(), !(d === v8 || d === b8)) {
        if (d === nc) {
          g({ type: "text", value: (t.keepEscaping ? d : "") + m() });
          continue;
        }
        if (d === kD) {
          g({ type: "text", value: "\\" + d });
          continue;
        }
        if (d === _D) {
          l++;
          let D;
          for (; h < c && (D = m()); ) {
            if (d += D, D === _D) {
              l++;
              continue;
            }
            if (D === nc) {
              d += m();
              continue;
            }
            if (D === kD && (l--, l === 0))
              break;
          }
          g({ type: "text", value: d });
          continue;
        }
        if (d === m8) {
          u = g({ type: "paren", nodes: [] }), a.push(u), g({ type: "text", value: d });
          continue;
        }
        if (d === g8) {
          if (u.type !== "paren") {
            g({ type: "text", value: d });
            continue;
          }
          u = a.pop(), g({ type: "text", value: d }), u = a[a.length - 1];
          continue;
        }
        if (d === x8 || d === E8 || d === p8) {
          let D = d, v;
          for (t.keepQuotes !== !0 && (d = ""); h < c && (v = m()); ) {
            if (v === nc) {
              d += v + m();
              continue;
            }
            if (v === D) {
              t.keepQuotes === !0 && (d += v);
              break;
            }
            d += v;
          }
          g({ type: "text", value: d });
          continue;
        }
        if (d === D8) {
          p++;
          let v = {
            type: "brace",
            open: !0,
            close: !1,
            dollar: o.value && o.value.slice(-1) === "$" || u.dollar === !0,
            depth: p,
            commas: 0,
            ranges: 0,
            nodes: []
          };
          u = g(v), a.push(u), g({ type: "open", value: d });
          continue;
        }
        if (d === y8) {
          if (u.type !== "brace") {
            g({ type: "text", value: d });
            continue;
          }
          let D = "close";
          u = a.pop(), u.close = !0, g({ type: D, value: d }), p--, u = a[a.length - 1];
          continue;
        }
        if (d === f8 && p > 0) {
          if (u.ranges > 0) {
            u.ranges = 0;
            let D = u.nodes.shift();
            u.nodes = [D, { type: "text", value: h8(u) }];
          }
          g({ type: "comma", value: d }), u.commas++;
          continue;
        }
        if (d === d8 && p > 0 && u.commas === 0) {
          let D = u.nodes;
          if (p === 0 || D.length === 0) {
            g({ type: "text", value: d });
            continue;
          }
          if (o.type === "dot") {
            if (u.range = [], o.value += d, o.type = "range", u.nodes.length !== 3 && u.nodes.length !== 5) {
              u.invalid = !0, u.ranges = 0, o.type = "text";
              continue;
            }
            u.ranges++, u.args = [];
            continue;
          }
          if (o.type === "range") {
            D.pop();
            let v = D[D.length - 1];
            v.value += o.value + d, o = v, u.ranges--;
            continue;
          }
          g({ type: "dot", value: d });
          continue;
        }
        g({ type: "text", value: d });
      }
    do
      if (u = a.pop(), u.type !== "root") {
        u.nodes.forEach((y) => {
          y.nodes || (y.type === "open" && (y.isOpen = !0), y.type === "close" && (y.isClose = !0), y.nodes || (y.type = "text"), y.invalid =
          !0);
        });
        let D = a[a.length - 1], v = D.nodes.indexOf(u);
        D.nodes.splice(v, 1, ...u.nodes);
      }
    while (a.length > 0);
    return g({ type: "eos" }), n;
  }, "parse");
  TD.exports = C8;
});

// ../node_modules/braces/index.js
var OD = B((oK, ID) => {
  "use strict";
  var PD = Za(), w8 = bD(), A8 = wD(), F8 = BD(), Ot = /* @__PURE__ */ s((e, t = {}) => {
    let r = [];
    if (Array.isArray(e))
      for (let i of e) {
        let n = Ot.create(i, t);
        Array.isArray(n) ? r.push(...n) : r.push(n);
      }
    else
      r = [].concat(Ot.create(e, t));
    return t && t.expand === !0 && t.nodupes === !0 && (r = [...new Set(r)]), r;
  }, "braces");
  Ot.parse = (e, t = {}) => F8(e, t);
  Ot.stringify = (e, t = {}) => PD(typeof e == "string" ? Ot.parse(e, t) : e, t);
  Ot.compile = (e, t = {}) => (typeof e == "string" && (e = Ot.parse(e, t)), w8(e, t));
  Ot.expand = (e, t = {}) => {
    typeof e == "string" && (e = Ot.parse(e, t));
    let r = A8(e, t);
    return t.noempty === !0 && (r = r.filter(Boolean)), t.nodupes === !0 && (r = [...new Set(r)]), r;
  };
  Ot.create = (e, t = {}) => e === "" || e.length < 3 ? [e] : t.expand !== !0 ? Ot.compile(e, t) : Ot.expand(e, t);
  ID.exports = Ot;
});

// ../node_modules/picomatch/lib/constants.js
var Os = B((cK, jD) => {
  "use strict";
  var S8 = H("path"), Sr = "\\\\/", RD = `[^${Sr}]`, Gr = "\\.", _8 = "\\+", k8 = "\\?", ru = "\\/", T8 = "(?=.)", ND = "[^/]", sc = `(?:${ru}\
|$)`, LD = `(?:^|${ru})`, ac = `${Gr}{1,2}${sc}`, B8 = `(?!${Gr})`, P8 = `(?!${LD}${ac})`, I8 = `(?!${Gr}{0,1}${sc})`, O8 = `(?!${ac})`, R8 = `\
[^.${ru}]`, N8 = `${ND}*?`, MD = {
    DOT_LITERAL: Gr,
    PLUS_LITERAL: _8,
    QMARK_LITERAL: k8,
    SLASH_LITERAL: ru,
    ONE_CHAR: T8,
    QMARK: ND,
    END_ANCHOR: sc,
    DOTS_SLASH: ac,
    NO_DOT: B8,
    NO_DOTS: P8,
    NO_DOT_SLASH: I8,
    NO_DOTS_SLASH: O8,
    QMARK_NO_DOT: R8,
    STAR: N8,
    START_ANCHOR: LD
  }, L8 = {
    ...MD,
    SLASH_LITERAL: `[${Sr}]`,
    QMARK: RD,
    STAR: `${RD}*?`,
    DOTS_SLASH: `${Gr}{1,2}(?:[${Sr}]|$)`,
    NO_DOT: `(?!${Gr})`,
    NO_DOTS: `(?!(?:^|[${Sr}])${Gr}{1,2}(?:[${Sr}]|$))`,
    NO_DOT_SLASH: `(?!${Gr}{0,1}(?:[${Sr}]|$))`,
    NO_DOTS_SLASH: `(?!${Gr}{1,2}(?:[${Sr}]|$))`,
    QMARK_NO_DOT: `[^.${Sr}]`,
    START_ANCHOR: `(?:^|[${Sr}])`,
    END_ANCHOR: `(?:[${Sr}]|$)`
  }, M8 = {
    alnum: "a-zA-Z0-9",
    alpha: "a-zA-Z",
    ascii: "\\x00-\\x7F",
    blank: " \\t",
    cntrl: "\\x00-\\x1F\\x7F",
    digit: "0-9",
    graph: "\\x21-\\x7E",
    lower: "a-z",
    print: "\\x20-\\x7E ",
    punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
    space: " \\t\\r\\n\\v\\f",
    upper: "A-Z",
    word: "A-Za-z0-9_",
    xdigit: "A-Fa-f0-9"
  };
  jD.exports = {
    MAX_LENGTH: 1024 * 64,
    POSIX_REGEX_SOURCE: M8,
    // regular expressions
    REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
    REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
    REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
    REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
    REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
    REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
    // Replace globs with equivalent patterns to reduce parsing time.
    REPLACEMENTS: {
      "***": "*",
      "**/**": "**",
      "**/**/**": "**"
    },
    // Digits
    CHAR_0: 48,
    /* 0 */
    CHAR_9: 57,
    /* 9 */
    // Alphabet chars.
    CHAR_UPPERCASE_A: 65,
    /* A */
    CHAR_LOWERCASE_A: 97,
    /* a */
    CHAR_UPPERCASE_Z: 90,
    /* Z */
    CHAR_LOWERCASE_Z: 122,
    /* z */
    CHAR_LEFT_PARENTHESES: 40,
    /* ( */
    CHAR_RIGHT_PARENTHESES: 41,
    /* ) */
    CHAR_ASTERISK: 42,
    /* * */
    // Non-alphabetic chars.
    CHAR_AMPERSAND: 38,
    /* & */
    CHAR_AT: 64,
    /* @ */
    CHAR_BACKWARD_SLASH: 92,
    /* \ */
    CHAR_CARRIAGE_RETURN: 13,
    /* \r */
    CHAR_CIRCUMFLEX_ACCENT: 94,
    /* ^ */
    CHAR_COLON: 58,
    /* : */
    CHAR_COMMA: 44,
    /* , */
    CHAR_DOT: 46,
    /* . */
    CHAR_DOUBLE_QUOTE: 34,
    /* " */
    CHAR_EQUAL: 61,
    /* = */
    CHAR_EXCLAMATION_MARK: 33,
    /* ! */
    CHAR_FORM_FEED: 12,
    /* \f */
    CHAR_FORWARD_SLASH: 47,
    /* / */
    CHAR_GRAVE_ACCENT: 96,
    /* ` */
    CHAR_HASH: 35,
    /* # */
    CHAR_HYPHEN_MINUS: 45,
    /* - */
    CHAR_LEFT_ANGLE_BRACKET: 60,
    /* < */
    CHAR_LEFT_CURLY_BRACE: 123,
    /* { */
    CHAR_LEFT_SQUARE_BRACKET: 91,
    /* [ */
    CHAR_LINE_FEED: 10,
    /* \n */
    CHAR_NO_BREAK_SPACE: 160,
    /* \u00A0 */
    CHAR_PERCENT: 37,
    /* % */
    CHAR_PLUS: 43,
    /* + */
    CHAR_QUESTION_MARK: 63,
    /* ? */
    CHAR_RIGHT_ANGLE_BRACKET: 62,
    /* > */
    CHAR_RIGHT_CURLY_BRACE: 125,
    /* } */
    CHAR_RIGHT_SQUARE_BRACKET: 93,
    /* ] */
    CHAR_SEMICOLON: 59,
    /* ; */
    CHAR_SINGLE_QUOTE: 39,
    /* ' */
    CHAR_SPACE: 32,
    /*   */
    CHAR_TAB: 9,
    /* \t */
    CHAR_UNDERSCORE: 95,
    /* _ */
    CHAR_VERTICAL_LINE: 124,
    /* | */
    CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
    /* \uFEFF */
    SEP: S8.sep,
    /**
     * Create EXTGLOB_CHARS
     */
    extglobChars(e) {
      return {
        "!": { type: "negate", open: "(?:(?!(?:", close: `))${e.STAR})` },
        "?": { type: "qmark", open: "(?:", close: ")?" },
        "+": { type: "plus", open: "(?:", close: ")+" },
        "*": { type: "star", open: "(?:", close: ")*" },
        "@": { type: "at", open: "(?:", close: ")" }
      };
    },
    /**
     * Create GLOB_CHARS
     */
    globChars(e) {
      return e === !0 ? L8 : MD;
    }
  };
});

// ../node_modules/picomatch/lib/utils.js
var Rs = B((St) => {
  "use strict";
  var j8 = H("path"), q8 = process.platform === "win32", {
    REGEX_BACKSLASH: $8,
    REGEX_REMOVE_BACKSLASH: V8,
    REGEX_SPECIAL_CHARS: U8,
    REGEX_SPECIAL_CHARS_GLOBAL: z8
  } = Os();
  St.isObject = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
  St.hasRegexChars = (e) => U8.test(e);
  St.isRegexChar = (e) => e.length === 1 && St.hasRegexChars(e);
  St.escapeRegex = (e) => e.replace(z8, "\\$1");
  St.toPosixSlashes = (e) => e.replace($8, "/");
  St.removeBackslashes = (e) => e.replace(V8, (t) => t === "\\" ? "" : t);
  St.supportsLookbehinds = () => {
    let e = process.version.slice(1).split(".").map(Number);
    return e.length === 3 && e[0] >= 9 || e[0] === 8 && e[1] >= 10;
  };
  St.isWindows = (e) => e && typeof e.windows == "boolean" ? e.windows : q8 === !0 || j8.sep === "\\";
  St.escapeLast = (e, t, r) => {
    let i = e.lastIndexOf(t, r);
    return i === -1 ? e : e[i - 1] === "\\" ? St.escapeLast(e, t, i - 1) : `${e.slice(0, i)}\\${e.slice(i)}`;
  };
  St.removePrefix = (e, t = {}) => {
    let r = e;
    return r.startsWith("./") && (r = r.slice(2), t.prefix = "./"), r;
  };
  St.wrapOutput = (e, t = {}, r = {}) => {
    let i = r.contains ? "" : "^", n = r.contains ? "" : "$", a = `${i}(?:${e})${n}`;
    return t.negated === !0 && (a = `(?:^(?!${a}).*$)`), a;
  };
});

// ../node_modules/picomatch/lib/scan.js
var JD = B((pK, WD) => {
  "use strict";
  var qD = Rs(), {
    CHAR_ASTERISK: uc,
    /* * */
    CHAR_AT: H8,
    /* @ */
    CHAR_BACKWARD_SLASH: Ns,
    /* \ */
    CHAR_COMMA: W8,
    /* , */
    CHAR_DOT: oc,
    /* . */
    CHAR_EXCLAMATION_MARK: lc,
    /* ! */
    CHAR_FORWARD_SLASH: HD,
    /* / */
    CHAR_LEFT_CURLY_BRACE: cc,
    /* { */
    CHAR_LEFT_PARENTHESES: hc,
    /* ( */
    CHAR_LEFT_SQUARE_BRACKET: J8,
    /* [ */
    CHAR_PLUS: G8,
    /* + */
    CHAR_QUESTION_MARK: $D,
    /* ? */
    CHAR_RIGHT_CURLY_BRACE: X8,
    /* } */
    CHAR_RIGHT_PARENTHESES: VD,
    /* ) */
    CHAR_RIGHT_SQUARE_BRACKET: Y8
    /* ] */
  } = Os(), UD = /* @__PURE__ */ s((e) => e === HD || e === Ns, "isPathSeparator"), zD = /* @__PURE__ */ s((e) => {
    e.isPrefix !== !0 && (e.depth = e.isGlobstar ? 1 / 0 : 1);
  }, "depth"), K8 = /* @__PURE__ */ s((e, t) => {
    let r = t || {}, i = e.length - 1, n = r.parts === !0 || r.scanToEnd === !0, a = [], u = [], o = [], l = e, c = -1, h = 0, p = 0, d = !1,
    m = !1, g = !1, D = !1, v = !1, y = !1, C = !1, S = !1, T = !1, j = !1, w = 0, A, P, k = { value: "", depth: 0, isGlob: !1 }, $ = /* @__PURE__ */ s(
    () => c >= i, "eos"), M = /* @__PURE__ */ s(() => l.charCodeAt(c + 1), "peek"), V = /* @__PURE__ */ s(() => (A = P, l.charCodeAt(++c)), "\
advance");
    for (; c < i; ) {
      P = V();
      let z;
      if (P === Ns) {
        C = k.backslashes = !0, P = V(), P === cc && (y = !0);
        continue;
      }
      if (y === !0 || P === cc) {
        for (w++; $() !== !0 && (P = V()); ) {
          if (P === Ns) {
            C = k.backslashes = !0, V();
            continue;
          }
          if (P === cc) {
            w++;
            continue;
          }
          if (y !== !0 && P === oc && (P = V()) === oc) {
            if (d = k.isBrace = !0, g = k.isGlob = !0, j = !0, n === !0)
              continue;
            break;
          }
          if (y !== !0 && P === W8) {
            if (d = k.isBrace = !0, g = k.isGlob = !0, j = !0, n === !0)
              continue;
            break;
          }
          if (P === X8 && (w--, w === 0)) {
            y = !1, d = k.isBrace = !0, j = !0;
            break;
          }
        }
        if (n === !0)
          continue;
        break;
      }
      if (P === HD) {
        if (a.push(c), u.push(k), k = { value: "", depth: 0, isGlob: !1 }, j === !0) continue;
        if (A === oc && c === h + 1) {
          h += 2;
          continue;
        }
        p = c + 1;
        continue;
      }
      if (r.noext !== !0 && (P === G8 || P === H8 || P === uc || P === $D || P === lc) === !0 && M() === hc) {
        if (g = k.isGlob = !0, D = k.isExtglob = !0, j = !0, P === lc && c === h && (T = !0), n === !0) {
          for (; $() !== !0 && (P = V()); ) {
            if (P === Ns) {
              C = k.backslashes = !0, P = V();
              continue;
            }
            if (P === VD) {
              g = k.isGlob = !0, j = !0;
              break;
            }
          }
          continue;
        }
        break;
      }
      if (P === uc) {
        if (A === uc && (v = k.isGlobstar = !0), g = k.isGlob = !0, j = !0, n === !0)
          continue;
        break;
      }
      if (P === $D) {
        if (g = k.isGlob = !0, j = !0, n === !0)
          continue;
        break;
      }
      if (P === J8) {
        for (; $() !== !0 && (z = V()); ) {
          if (z === Ns) {
            C = k.backslashes = !0, V();
            continue;
          }
          if (z === Y8) {
            m = k.isBracket = !0, g = k.isGlob = !0, j = !0;
            break;
          }
        }
        if (n === !0)
          continue;
        break;
      }
      if (r.nonegate !== !0 && P === lc && c === h) {
        S = k.negated = !0, h++;
        continue;
      }
      if (r.noparen !== !0 && P === hc) {
        if (g = k.isGlob = !0, n === !0) {
          for (; $() !== !0 && (P = V()); ) {
            if (P === hc) {
              C = k.backslashes = !0, P = V();
              continue;
            }
            if (P === VD) {
              j = !0;
              break;
            }
          }
          continue;
        }
        break;
      }
      if (g === !0) {
        if (j = !0, n === !0)
          continue;
        break;
      }
    }
    r.noext === !0 && (D = !1, g = !1);
    let U = l, G = "", R = "";
    h > 0 && (G = l.slice(0, h), l = l.slice(h), p -= h), U && g === !0 && p > 0 ? (U = l.slice(0, p), R = l.slice(p)) : g === !0 ? (U = "",
    R = l) : U = l, U && U !== "" && U !== "/" && U !== l && UD(U.charCodeAt(U.length - 1)) && (U = U.slice(0, -1)), r.unescape === !0 && (R &&
    (R = qD.removeBackslashes(R)), U && C === !0 && (U = qD.removeBackslashes(U)));
    let N = {
      prefix: G,
      input: e,
      start: h,
      base: U,
      glob: R,
      isBrace: d,
      isBracket: m,
      isGlob: g,
      isExtglob: D,
      isGlobstar: v,
      negated: S,
      negatedExtglob: T
    };
    if (r.tokens === !0 && (N.maxDepth = 0, UD(P) || u.push(k), N.tokens = u), r.parts === !0 || r.tokens === !0) {
      let z;
      for (let Q = 0; Q < a.length; Q++) {
        let te = z ? z + 1 : h, I = a[Q], he = e.slice(te, I);
        r.tokens && (Q === 0 && h !== 0 ? (u[Q].isPrefix = !0, u[Q].value = G) : u[Q].value = he, zD(u[Q]), N.maxDepth += u[Q].depth), (Q !==
        0 || he !== "") && o.push(he), z = I;
      }
      if (z && z + 1 < e.length) {
        let Q = e.slice(z + 1);
        o.push(Q), r.tokens && (u[u.length - 1].value = Q, zD(u[u.length - 1]), N.maxDepth += u[u.length - 1].depth);
      }
      N.slashes = a, N.parts = o;
    }
    return N;
  }, "scan");
  WD.exports = K8;
});

// ../node_modules/picomatch/lib/parse.js
var YD = B((dK, XD) => {
  "use strict";
  var iu = Os(), Rt = Rs(), {
    MAX_LENGTH: nu,
    POSIX_REGEX_SOURCE: Q8,
    REGEX_NON_SPECIAL_CHARS: Z8,
    REGEX_SPECIAL_CHARS_BACKREF: eP,
    REPLACEMENTS: GD
  } = iu, tP = /* @__PURE__ */ s((e, t) => {
    if (typeof t.expandRange == "function")
      return t.expandRange(...e, t);
    e.sort();
    let r = `[${e.join("-")}]`;
    try {
      new RegExp(r);
    } catch {
      return e.map((n) => Rt.escapeRegex(n)).join("..");
    }
    return r;
  }, "expandRange"), An = /* @__PURE__ */ s((e, t) => `Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`, "syntaxError"), pc = /* @__PURE__ */ s(
  (e, t) => {
    if (typeof e != "string")
      throw new TypeError("Expected a string");
    e = GD[e] || e;
    let r = { ...t }, i = typeof r.maxLength == "number" ? Math.min(nu, r.maxLength) : nu, n = e.length;
    if (n > i)
      throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);
    let a = { type: "bos", value: "", output: r.prepend || "" }, u = [a], o = r.capture ? "" : "?:", l = Rt.isWindows(t), c = iu.globChars(l),
    h = iu.extglobChars(c), {
      DOT_LITERAL: p,
      PLUS_LITERAL: d,
      SLASH_LITERAL: m,
      ONE_CHAR: g,
      DOTS_SLASH: D,
      NO_DOT: v,
      NO_DOT_SLASH: y,
      NO_DOTS_SLASH: C,
      QMARK: S,
      QMARK_NO_DOT: T,
      STAR: j,
      START_ANCHOR: w
    } = c, A = /* @__PURE__ */ s((ee) => `(${o}(?:(?!${w}${ee.dot ? D : p}).)*?)`, "globstar"), P = r.dot ? "" : v, k = r.dot ? S : T, $ = r.
    bash === !0 ? A(r) : j;
    r.capture && ($ = `(${$})`), typeof r.noext == "boolean" && (r.noextglob = r.noext);
    let M = {
      input: e,
      index: -1,
      start: 0,
      dot: r.dot === !0,
      consumed: "",
      output: "",
      prefix: "",
      backtrack: !1,
      negated: !1,
      brackets: 0,
      braces: 0,
      parens: 0,
      quotes: 0,
      globstar: !1,
      tokens: u
    };
    e = Rt.removePrefix(e, M), n = e.length;
    let V = [], U = [], G = [], R = a, N, z = /* @__PURE__ */ s(() => M.index === n - 1, "eos"), Q = M.peek = (ee = 1) => e[M.index + ee], te = M.
    advance = () => e[++M.index] || "", I = /* @__PURE__ */ s(() => e.slice(M.index + 1), "remaining"), he = /* @__PURE__ */ s((ee = "", De = 0) => {
      M.consumed += ee, M.index += De;
    }, "consume"), xe = /* @__PURE__ */ s((ee) => {
      M.output += ee.output != null ? ee.output : ee.value, he(ee.value);
    }, "append"), L = /* @__PURE__ */ s(() => {
      let ee = 1;
      for (; Q() === "!" && (Q(2) !== "(" || Q(3) === "?"); )
        te(), M.start++, ee++;
      return ee % 2 === 0 ? !1 : (M.negated = !0, M.start++, !0);
    }, "negate"), Se = /* @__PURE__ */ s((ee) => {
      M[ee]++, G.push(ee);
    }, "increment"), Ie = /* @__PURE__ */ s((ee) => {
      M[ee]--, G.pop();
    }, "decrement"), ue = /* @__PURE__ */ s((ee) => {
      if (R.type === "globstar") {
        let De = M.braces > 0 && (ee.type === "comma" || ee.type === "brace"), K = ee.extglob === !0 || V.length && (ee.type === "pipe" || ee.
        type === "paren");
        ee.type !== "slash" && ee.type !== "paren" && !De && !K && (M.output = M.output.slice(0, -R.output.length), R.type = "star", R.value =
        "*", R.output = $, M.output += R.output);
      }
      if (V.length && ee.type !== "paren" && (V[V.length - 1].inner += ee.value), (ee.value || ee.output) && xe(ee), R && R.type === "text" &&
      ee.type === "text") {
        R.value += ee.value, R.output = (R.output || "") + ee.value;
        return;
      }
      ee.prev = R, u.push(ee), R = ee;
    }, "push"), at = /* @__PURE__ */ s((ee, De) => {
      let K = { ...h[De], conditions: 1, inner: "" };
      K.prev = R, K.parens = M.parens, K.output = M.output;
      let le = (r.capture ? "(" : "") + K.open;
      Se("parens"), ue({ type: ee, value: De, output: M.output ? "" : g }), ue({ type: "paren", extglob: !0, value: te(), output: le }), V.push(
      K);
    }, "extglobOpen"), Oe = /* @__PURE__ */ s((ee) => {
      let De = ee.close + (r.capture ? ")" : ""), K;
      if (ee.type === "negate") {
        let le = $;
        if (ee.inner && ee.inner.length > 1 && ee.inner.includes("/") && (le = A(r)), (le !== $ || z() || /^\)+$/.test(I())) && (De = ee.close =
        `)$))${le}`), ee.inner.includes("*") && (K = I()) && /^\.[^\\/.]+$/.test(K)) {
          let ke = pc(K, { ...t, fastpaths: !1 }).output;
          De = ee.close = `)${ke})${le})`;
        }
        ee.prev.type === "bos" && (M.negatedExtglob = !0);
      }
      ue({ type: "paren", extglob: !0, value: N, output: De }), Ie("parens");
    }, "extglobClose");
    if (r.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(e)) {
      let ee = !1, De = e.replace(eP, (K, le, ke, Xe, Re, Vt) => Xe === "\\" ? (ee = !0, K) : Xe === "?" ? le ? le + Xe + (Re ? S.repeat(Re.
      length) : "") : Vt === 0 ? k + (Re ? S.repeat(Re.length) : "") : S.repeat(ke.length) : Xe === "." ? p.repeat(ke.length) : Xe === "*" ?
      le ? le + Xe + (Re ? $ : "") : $ : le ? K : `\\${K}`);
      return ee === !0 && (r.unescape === !0 ? De = De.replace(/\\/g, "") : De = De.replace(/\\+/g, (K) => K.length % 2 === 0 ? "\\\\" : K ?
      "\\" : "")), De === e && r.contains === !0 ? (M.output = e, M) : (M.output = Rt.wrapOutput(De, M, t), M);
    }
    for (; !z(); ) {
      if (N = te(), N === "\0")
        continue;
      if (N === "\\") {
        let K = Q();
        if (K === "/" && r.bash !== !0 || K === "." || K === ";")
          continue;
        if (!K) {
          N += "\\", ue({ type: "text", value: N });
          continue;
        }
        let le = /^\\+/.exec(I()), ke = 0;
        if (le && le[0].length > 2 && (ke = le[0].length, M.index += ke, ke % 2 !== 0 && (N += "\\")), r.unescape === !0 ? N = te() : N += te(),
        M.brackets === 0) {
          ue({ type: "text", value: N });
          continue;
        }
      }
      if (M.brackets > 0 && (N !== "]" || R.value === "[" || R.value === "[^")) {
        if (r.posix !== !1 && N === ":") {
          let K = R.value.slice(1);
          if (K.includes("[") && (R.posix = !0, K.includes(":"))) {
            let le = R.value.lastIndexOf("["), ke = R.value.slice(0, le), Xe = R.value.slice(le + 2), Re = Q8[Xe];
            if (Re) {
              R.value = ke + Re, M.backtrack = !0, te(), !a.output && u.indexOf(R) === 1 && (a.output = g);
              continue;
            }
          }
        }
        (N === "[" && Q() !== ":" || N === "-" && Q() === "]") && (N = `\\${N}`), N === "]" && (R.value === "[" || R.value === "[^") && (N =
        `\\${N}`), r.posix === !0 && N === "!" && R.value === "[" && (N = "^"), R.value += N, xe({ value: N });
        continue;
      }
      if (M.quotes === 1 && N !== '"') {
        N = Rt.escapeRegex(N), R.value += N, xe({ value: N });
        continue;
      }
      if (N === '"') {
        M.quotes = M.quotes === 1 ? 0 : 1, r.keepQuotes === !0 && ue({ type: "text", value: N });
        continue;
      }
      if (N === "(") {
        Se("parens"), ue({ type: "paren", value: N });
        continue;
      }
      if (N === ")") {
        if (M.parens === 0 && r.strictBrackets === !0)
          throw new SyntaxError(An("opening", "("));
        let K = V[V.length - 1];
        if (K && M.parens === K.parens + 1) {
          Oe(V.pop());
          continue;
        }
        ue({ type: "paren", value: N, output: M.parens ? ")" : "\\)" }), Ie("parens");
        continue;
      }
      if (N === "[") {
        if (r.nobracket === !0 || !I().includes("]")) {
          if (r.nobracket !== !0 && r.strictBrackets === !0)
            throw new SyntaxError(An("closing", "]"));
          N = `\\${N}`;
        } else
          Se("brackets");
        ue({ type: "bracket", value: N });
        continue;
      }
      if (N === "]") {
        if (r.nobracket === !0 || R && R.type === "bracket" && R.value.length === 1) {
          ue({ type: "text", value: N, output: `\\${N}` });
          continue;
        }
        if (M.brackets === 0) {
          if (r.strictBrackets === !0)
            throw new SyntaxError(An("opening", "["));
          ue({ type: "text", value: N, output: `\\${N}` });
          continue;
        }
        Ie("brackets");
        let K = R.value.slice(1);
        if (R.posix !== !0 && K[0] === "^" && !K.includes("/") && (N = `/${N}`), R.value += N, xe({ value: N }), r.literalBrackets === !1 ||
        Rt.hasRegexChars(K))
          continue;
        let le = Rt.escapeRegex(R.value);
        if (M.output = M.output.slice(0, -R.value.length), r.literalBrackets === !0) {
          M.output += le, R.value = le;
          continue;
        }
        R.value = `(${o}${le}|${R.value})`, M.output += R.value;
        continue;
      }
      if (N === "{" && r.nobrace !== !0) {
        Se("braces");
        let K = {
          type: "brace",
          value: N,
          output: "(",
          outputIndex: M.output.length,
          tokensIndex: M.tokens.length
        };
        U.push(K), ue(K);
        continue;
      }
      if (N === "}") {
        let K = U[U.length - 1];
        if (r.nobrace === !0 || !K) {
          ue({ type: "text", value: N, output: N });
          continue;
        }
        let le = ")";
        if (K.dots === !0) {
          let ke = u.slice(), Xe = [];
          for (let Re = ke.length - 1; Re >= 0 && (u.pop(), ke[Re].type !== "brace"); Re--)
            ke[Re].type !== "dots" && Xe.unshift(ke[Re].value);
          le = tP(Xe, r), M.backtrack = !0;
        }
        if (K.comma !== !0 && K.dots !== !0) {
          let ke = M.output.slice(0, K.outputIndex), Xe = M.tokens.slice(K.tokensIndex);
          K.value = K.output = "\\{", N = le = "\\}", M.output = ke;
          for (let Re of Xe)
            M.output += Re.output || Re.value;
        }
        ue({ type: "brace", value: N, output: le }), Ie("braces"), U.pop();
        continue;
      }
      if (N === "|") {
        V.length > 0 && V[V.length - 1].conditions++, ue({ type: "text", value: N });
        continue;
      }
      if (N === ",") {
        let K = N, le = U[U.length - 1];
        le && G[G.length - 1] === "braces" && (le.comma = !0, K = "|"), ue({ type: "comma", value: N, output: K });
        continue;
      }
      if (N === "/") {
        if (R.type === "dot" && M.index === M.start + 1) {
          M.start = M.index + 1, M.consumed = "", M.output = "", u.pop(), R = a;
          continue;
        }
        ue({ type: "slash", value: N, output: m });
        continue;
      }
      if (N === ".") {
        if (M.braces > 0 && R.type === "dot") {
          R.value === "." && (R.output = p);
          let K = U[U.length - 1];
          R.type = "dots", R.output += N, R.value += N, K.dots = !0;
          continue;
        }
        if (M.braces + M.parens === 0 && R.type !== "bos" && R.type !== "slash") {
          ue({ type: "text", value: N, output: p });
          continue;
        }
        ue({ type: "dot", value: N, output: p });
        continue;
      }
      if (N === "?") {
        if (!(R && R.value === "(") && r.noextglob !== !0 && Q() === "(" && Q(2) !== "?") {
          at("qmark", N);
          continue;
        }
        if (R && R.type === "paren") {
          let le = Q(), ke = N;
          if (le === "<" && !Rt.supportsLookbehinds())
            throw new Error("Node.js v10 or higher is required for regex lookbehinds");
          (R.value === "(" && !/[!=<:]/.test(le) || le === "<" && !/<([!=]|\w+>)/.test(I())) && (ke = `\\${N}`), ue({ type: "text", value: N,
          output: ke });
          continue;
        }
        if (r.dot !== !0 && (R.type === "slash" || R.type === "bos")) {
          ue({ type: "qmark", value: N, output: T });
          continue;
        }
        ue({ type: "qmark", value: N, output: S });
        continue;
      }
      if (N === "!") {
        if (r.noextglob !== !0 && Q() === "(" && (Q(2) !== "?" || !/[!=<:]/.test(Q(3)))) {
          at("negate", N);
          continue;
        }
        if (r.nonegate !== !0 && M.index === 0) {
          L();
          continue;
        }
      }
      if (N === "+") {
        if (r.noextglob !== !0 && Q() === "(" && Q(2) !== "?") {
          at("plus", N);
          continue;
        }
        if (R && R.value === "(" || r.regex === !1) {
          ue({ type: "plus", value: N, output: d });
          continue;
        }
        if (R && (R.type === "bracket" || R.type === "paren" || R.type === "brace") || M.parens > 0) {
          ue({ type: "plus", value: N });
          continue;
        }
        ue({ type: "plus", value: d });
        continue;
      }
      if (N === "@") {
        if (r.noextglob !== !0 && Q() === "(" && Q(2) !== "?") {
          ue({ type: "at", extglob: !0, value: N, output: "" });
          continue;
        }
        ue({ type: "text", value: N });
        continue;
      }
      if (N !== "*") {
        (N === "$" || N === "^") && (N = `\\${N}`);
        let K = Z8.exec(I());
        K && (N += K[0], M.index += K[0].length), ue({ type: "text", value: N });
        continue;
      }
      if (R && (R.type === "globstar" || R.star === !0)) {
        R.type = "star", R.star = !0, R.value += N, R.output = $, M.backtrack = !0, M.globstar = !0, he(N);
        continue;
      }
      let ee = I();
      if (r.noextglob !== !0 && /^\([^?]/.test(ee)) {
        at("star", N);
        continue;
      }
      if (R.type === "star") {
        if (r.noglobstar === !0) {
          he(N);
          continue;
        }
        let K = R.prev, le = K.prev, ke = K.type === "slash" || K.type === "bos", Xe = le && (le.type === "star" || le.type === "globstar");
        if (r.bash === !0 && (!ke || ee[0] && ee[0] !== "/")) {
          ue({ type: "star", value: N, output: "" });
          continue;
        }
        let Re = M.braces > 0 && (K.type === "comma" || K.type === "brace"), Vt = V.length && (K.type === "pipe" || K.type === "paren");
        if (!ke && K.type !== "paren" && !Re && !Vt) {
          ue({ type: "star", value: N, output: "" });
          continue;
        }
        for (; ee.slice(0, 3) === "/**"; ) {
          let vr = e[M.index + 4];
          if (vr && vr !== "/")
            break;
          ee = ee.slice(3), he("/**", 3);
        }
        if (K.type === "bos" && z()) {
          R.type = "globstar", R.value += N, R.output = A(r), M.output = R.output, M.globstar = !0, he(N);
          continue;
        }
        if (K.type === "slash" && K.prev.type !== "bos" && !Xe && z()) {
          M.output = M.output.slice(0, -(K.output + R.output).length), K.output = `(?:${K.output}`, R.type = "globstar", R.output = A(r) + (r.
          strictSlashes ? ")" : "|$)"), R.value += N, M.globstar = !0, M.output += K.output + R.output, he(N);
          continue;
        }
        if (K.type === "slash" && K.prev.type !== "bos" && ee[0] === "/") {
          let vr = ee[1] !== void 0 ? "|$" : "";
          M.output = M.output.slice(0, -(K.output + R.output).length), K.output = `(?:${K.output}`, R.type = "globstar", R.output = `${A(r)}${m}\
|${m}${vr})`, R.value += N, M.output += K.output + R.output, M.globstar = !0, he(N + te()), ue({ type: "slash", value: "/", output: "" });
          continue;
        }
        if (K.type === "bos" && ee[0] === "/") {
          R.type = "globstar", R.value += N, R.output = `(?:^|${m}|${A(r)}${m})`, M.output = R.output, M.globstar = !0, he(N + te()), ue({ type: "\
slash", value: "/", output: "" });
          continue;
        }
        M.output = M.output.slice(0, -R.output.length), R.type = "globstar", R.output = A(r), R.value += N, M.output += R.output, M.globstar =
        !0, he(N);
        continue;
      }
      let De = { type: "star", value: N, output: $ };
      if (r.bash === !0) {
        De.output = ".*?", (R.type === "bos" || R.type === "slash") && (De.output = P + De.output), ue(De);
        continue;
      }
      if (R && (R.type === "bracket" || R.type === "paren") && r.regex === !0) {
        De.output = N, ue(De);
        continue;
      }
      (M.index === M.start || R.type === "slash" || R.type === "dot") && (R.type === "dot" ? (M.output += y, R.output += y) : r.dot === !0 ?
      (M.output += C, R.output += C) : (M.output += P, R.output += P), Q() !== "*" && (M.output += g, R.output += g)), ue(De);
    }
    for (; M.brackets > 0; ) {
      if (r.strictBrackets === !0) throw new SyntaxError(An("closing", "]"));
      M.output = Rt.escapeLast(M.output, "["), Ie("brackets");
    }
    for (; M.parens > 0; ) {
      if (r.strictBrackets === !0) throw new SyntaxError(An("closing", ")"));
      M.output = Rt.escapeLast(M.output, "("), Ie("parens");
    }
    for (; M.braces > 0; ) {
      if (r.strictBrackets === !0) throw new SyntaxError(An("closing", "}"));
      M.output = Rt.escapeLast(M.output, "{"), Ie("braces");
    }
    if (r.strictSlashes !== !0 && (R.type === "star" || R.type === "bracket") && ue({ type: "maybe_slash", value: "", output: `${m}?` }), M.
    backtrack === !0) {
      M.output = "";
      for (let ee of M.tokens)
        M.output += ee.output != null ? ee.output : ee.value, ee.suffix && (M.output += ee.suffix);
    }
    return M;
  }, "parse");
  pc.fastpaths = (e, t) => {
    let r = { ...t }, i = typeof r.maxLength == "number" ? Math.min(nu, r.maxLength) : nu, n = e.length;
    if (n > i)
      throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);
    e = GD[e] || e;
    let a = Rt.isWindows(t), {
      DOT_LITERAL: u,
      SLASH_LITERAL: o,
      ONE_CHAR: l,
      DOTS_SLASH: c,
      NO_DOT: h,
      NO_DOTS: p,
      NO_DOTS_SLASH: d,
      STAR: m,
      START_ANCHOR: g
    } = iu.globChars(a), D = r.dot ? p : h, v = r.dot ? d : h, y = r.capture ? "" : "?:", C = { negated: !1, prefix: "" }, S = r.bash === !0 ?
    ".*?" : m;
    r.capture && (S = `(${S})`);
    let T = /* @__PURE__ */ s((P) => P.noglobstar === !0 ? S : `(${y}(?:(?!${g}${P.dot ? c : u}).)*?)`, "globstar"), j = /* @__PURE__ */ s((P) => {
      switch (P) {
        case "*":
          return `${D}${l}${S}`;
        case ".*":
          return `${u}${l}${S}`;
        case "*.*":
          return `${D}${S}${u}${l}${S}`;
        case "*/*":
          return `${D}${S}${o}${l}${v}${S}`;
        case "**":
          return D + T(r);
        case "**/*":
          return `(?:${D}${T(r)}${o})?${v}${l}${S}`;
        case "**/*.*":
          return `(?:${D}${T(r)}${o})?${v}${S}${u}${l}${S}`;
        case "**/.*":
          return `(?:${D}${T(r)}${o})?${u}${l}${S}`;
        default: {
          let k = /^(.*?)\.(\w+)$/.exec(P);
          if (!k) return;
          let $ = j(k[1]);
          return $ ? $ + u + k[2] : void 0;
        }
      }
    }, "create"), w = Rt.removePrefix(e, C), A = j(w);
    return A && r.strictSlashes !== !0 && (A += `${o}?`), A;
  };
  XD.exports = pc;
});

// ../node_modules/picomatch/lib/picomatch.js
var QD = B((gK, KD) => {
  "use strict";
  var rP = H("path"), iP = JD(), fc = YD(), dc = Rs(), nP = Os(), sP = /* @__PURE__ */ s((e) => e && typeof e == "object" && !Array.isArray(
  e), "isObject"), Ke = /* @__PURE__ */ s((e, t, r = !1) => {
    if (Array.isArray(e)) {
      let h = e.map((d) => Ke(d, t, r));
      return /* @__PURE__ */ s((d) => {
        for (let m of h) {
          let g = m(d);
          if (g) return g;
        }
        return !1;
      }, "arrayMatcher");
    }
    let i = sP(e) && e.tokens && e.input;
    if (e === "" || typeof e != "string" && !i)
      throw new TypeError("Expected pattern to be a non-empty string");
    let n = t || {}, a = dc.isWindows(t), u = i ? Ke.compileRe(e, t) : Ke.makeRe(e, t, !1, !0), o = u.state;
    delete u.state;
    let l = /* @__PURE__ */ s(() => !1, "isIgnored");
    if (n.ignore) {
      let h = { ...t, ignore: null, onMatch: null, onResult: null };
      l = Ke(n.ignore, h, r);
    }
    let c = /* @__PURE__ */ s((h, p = !1) => {
      let { isMatch: d, match: m, output: g } = Ke.test(h, u, t, { glob: e, posix: a }), D = { glob: e, state: o, regex: u, posix: a, input: h,
      output: g, match: m, isMatch: d };
      return typeof n.onResult == "function" && n.onResult(D), d === !1 ? (D.isMatch = !1, p ? D : !1) : l(h) ? (typeof n.onIgnore == "funct\
ion" && n.onIgnore(D), D.isMatch = !1, p ? D : !1) : (typeof n.onMatch == "function" && n.onMatch(D), p ? D : !0);
    }, "matcher");
    return r && (c.state = o), c;
  }, "picomatch");
  Ke.test = (e, t, r, { glob: i, posix: n } = {}) => {
    if (typeof e != "string")
      throw new TypeError("Expected input to be a string");
    if (e === "")
      return { isMatch: !1, output: "" };
    let a = r || {}, u = a.format || (n ? dc.toPosixSlashes : null), o = e === i, l = o && u ? u(e) : e;
    return o === !1 && (l = u ? u(e) : e, o = l === i), (o === !1 || a.capture === !0) && (a.matchBase === !0 || a.basename === !0 ? o = Ke.
    matchBase(e, t, r, n) : o = t.exec(l)), { isMatch: !!o, match: o, output: l };
  };
  Ke.matchBase = (e, t, r, i = dc.isWindows(r)) => (t instanceof RegExp ? t : Ke.makeRe(t, r)).test(rP.basename(e));
  Ke.isMatch = (e, t, r) => Ke(t, r)(e);
  Ke.parse = (e, t) => Array.isArray(e) ? e.map((r) => Ke.parse(r, t)) : fc(e, { ...t, fastpaths: !1 });
  Ke.scan = (e, t) => iP(e, t);
  Ke.compileRe = (e, t, r = !1, i = !1) => {
    if (r === !0)
      return e.output;
    let n = t || {}, a = n.contains ? "" : "^", u = n.contains ? "" : "$", o = `${a}(?:${e.output})${u}`;
    e && e.negated === !0 && (o = `^(?!${o}).*$`);
    let l = Ke.toRegex(o, t);
    return i === !0 && (l.state = e), l;
  };
  Ke.makeRe = (e, t = {}, r = !1, i = !1) => {
    if (!e || typeof e != "string")
      throw new TypeError("Expected a non-empty string");
    let n = { negated: !1, fastpaths: !0 };
    return t.fastpaths !== !1 && (e[0] === "." || e[0] === "*") && (n.output = fc.fastpaths(e, t)), n.output || (n = fc(e, t)), Ke.compileRe(
    n, t, r, i);
  };
  Ke.toRegex = (e, t) => {
    try {
      let r = t || {};
      return new RegExp(e, r.flags || (r.nocase ? "i" : ""));
    } catch (r) {
      if (t && t.debug === !0) throw r;
      return /$^/;
    }
  };
  Ke.constants = nP;
  KD.exports = Ke;
});

// ../node_modules/picomatch/index.js
var ey = B((yK, ZD) => {
  "use strict";
  ZD.exports = QD();
});

// ../node_modules/micromatch/index.js
var ay = B((xK, sy) => {
  "use strict";
  var ry = H("util"), iy = OD(), _r = ey(), mc = Rs(), ty = /* @__PURE__ */ s((e) => e === "" || e === "./", "isEmptyString"), ny = /* @__PURE__ */ s(
  (e) => {
    let t = e.indexOf("{");
    return t > -1 && e.indexOf("}", t) > -1;
  }, "hasBraces"), qe = /* @__PURE__ */ s((e, t, r) => {
    t = [].concat(t), e = [].concat(e);
    let i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), u = 0, o = /* @__PURE__ */ s((h) => {
      a.add(h.output), r && r.onResult && r.onResult(h);
    }, "onResult");
    for (let h = 0; h < t.length; h++) {
      let p = _r(String(t[h]), { ...r, onResult: o }, !0), d = p.state.negated || p.state.negatedExtglob;
      d && u++;
      for (let m of e) {
        let g = p(m, !0);
        (d ? !g.isMatch : g.isMatch) && (d ? i.add(g.output) : (i.delete(g.output), n.add(g.output)));
      }
    }
    let c = (u === t.length ? [...a] : [...n]).filter((h) => !i.has(h));
    if (r && c.length === 0) {
      if (r.failglob === !0)
        throw new Error(`No matches found for "${t.join(", ")}"`);
      if (r.nonull === !0 || r.nullglob === !0)
        return r.unescape ? t.map((h) => h.replace(/\\/g, "")) : t;
    }
    return c;
  }, "micromatch");
  qe.match = qe;
  qe.matcher = (e, t) => _r(e, t);
  qe.isMatch = (e, t, r) => _r(t, r)(e);
  qe.any = qe.isMatch;
  qe.not = (e, t, r = {}) => {
    t = [].concat(t).map(String);
    let i = /* @__PURE__ */ new Set(), n = [], a = /* @__PURE__ */ s((o) => {
      r.onResult && r.onResult(o), n.push(o.output);
    }, "onResult"), u = new Set(qe(e, t, { ...r, onResult: a }));
    for (let o of n)
      u.has(o) || i.add(o);
    return [...i];
  };
  qe.contains = (e, t, r) => {
    if (typeof e != "string")
      throw new TypeError(`Expected a string: "${ry.inspect(e)}"`);
    if (Array.isArray(t))
      return t.some((i) => qe.contains(e, i, r));
    if (typeof t == "string") {
      if (ty(e) || ty(t))
        return !1;
      if (e.includes(t) || e.startsWith("./") && e.slice(2).includes(t))
        return !0;
    }
    return qe.isMatch(e, t, { ...r, contains: !0 });
  };
  qe.matchKeys = (e, t, r) => {
    if (!mc.isObject(e))
      throw new TypeError("Expected the first argument to be an object");
    let i = qe(Object.keys(e), t, r), n = {};
    for (let a of i) n[a] = e[a];
    return n;
  };
  qe.some = (e, t, r) => {
    let i = [].concat(e);
    for (let n of [].concat(t)) {
      let a = _r(String(n), r);
      if (i.some((u) => a(u)))
        return !0;
    }
    return !1;
  };
  qe.every = (e, t, r) => {
    let i = [].concat(e);
    for (let n of [].concat(t)) {
      let a = _r(String(n), r);
      if (!i.every((u) => a(u)))
        return !1;
    }
    return !0;
  };
  qe.all = (e, t, r) => {
    if (typeof e != "string")
      throw new TypeError(`Expected a string: "${ry.inspect(e)}"`);
    return [].concat(t).every((i) => _r(i, r)(e));
  };
  qe.capture = (e, t, r) => {
    let i = mc.isWindows(r), a = _r.makeRe(String(e), { ...r, capture: !0 }).exec(i ? mc.toPosixSlashes(t) : t);
    if (a)
      return a.slice(1).map((u) => u === void 0 ? "" : u);
  };
  qe.makeRe = (...e) => _r.makeRe(...e);
  qe.scan = (...e) => _r.scan(...e);
  qe.parse = (e, t) => {
    let r = [];
    for (let i of [].concat(e || []))
      for (let n of iy(String(i), t))
        r.push(_r.parse(n, t));
    return r;
  };
  qe.braces = (e, t) => {
    if (typeof e != "string") throw new TypeError("Expected a string");
    return t && t.nobrace === !0 || !ny(e) ? [e] : iy(e, t);
  };
  qe.braceExpand = (e, t) => {
    if (typeof e != "string") throw new TypeError("Expected a string");
    return qe.braces(e, { ...t, expand: !0 });
  };
  qe.hasBraces = ny;
  sy.exports = qe;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/pattern.js
var dy = B((fe) => {
  "use strict";
  Object.defineProperty(fe, "__esModule", { value: !0 });
  fe.removeDuplicateSlashes = fe.matchAny = fe.convertPatternsToRe = fe.makeRe = fe.getPatternParts = fe.expandBraceExpansion = fe.expandPatternsWithBraceExpansion =
  fe.isAffectDepthOfReadingPattern = fe.endsWithSlashGlobStar = fe.hasGlobStar = fe.getBaseDirectory = fe.isPatternRelatedToParentDirectory =
  fe.getPatternsOutsideCurrentDirectory = fe.getPatternsInsideCurrentDirectory = fe.getPositivePatterns = fe.getNegativePatterns = fe.isPositivePattern =
  fe.isNegativePattern = fe.convertToNegativePattern = fe.convertToPositivePattern = fe.isDynamicPattern = fe.isStaticPattern = void 0;
  var aP = H("path"), uP = Q0(), gc = ay(), uy = "**", oP = "\\", lP = /[*?]|^!/, cP = /\[[^[]*]/, hP = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, pP = /[!*+?@]\([^(]*\)/,
  fP = /,|\.\./, dP = /(?!^)\/{2,}/g;
  function oy(e, t = {}) {
    return !ly(e, t);
  }
  s(oy, "isStaticPattern");
  fe.isStaticPattern = oy;
  function ly(e, t = {}) {
    return e === "" ? !1 : !!(t.caseSensitiveMatch === !1 || e.includes(oP) || lP.test(e) || cP.test(e) || hP.test(e) || t.extglob !== !1 &&
    pP.test(e) || t.braceExpansion !== !1 && mP(e));
  }
  s(ly, "isDynamicPattern");
  fe.isDynamicPattern = ly;
  function mP(e) {
    let t = e.indexOf("{");
    if (t === -1)
      return !1;
    let r = e.indexOf("}", t + 1);
    if (r === -1)
      return !1;
    let i = e.slice(t, r);
    return fP.test(i);
  }
  s(mP, "hasBraceExpansion");
  function gP(e) {
    return su(e) ? e.slice(1) : e;
  }
  s(gP, "convertToPositivePattern");
  fe.convertToPositivePattern = gP;
  function DP(e) {
    return "!" + e;
  }
  s(DP, "convertToNegativePattern");
  fe.convertToNegativePattern = DP;
  function su(e) {
    return e.startsWith("!") && e[1] !== "(";
  }
  s(su, "isNegativePattern");
  fe.isNegativePattern = su;
  function cy(e) {
    return !su(e);
  }
  s(cy, "isPositivePattern");
  fe.isPositivePattern = cy;
  function yP(e) {
    return e.filter(su);
  }
  s(yP, "getNegativePatterns");
  fe.getNegativePatterns = yP;
  function xP(e) {
    return e.filter(cy);
  }
  s(xP, "getPositivePatterns");
  fe.getPositivePatterns = xP;
  function EP(e) {
    return e.filter((t) => !Dc(t));
  }
  s(EP, "getPatternsInsideCurrentDirectory");
  fe.getPatternsInsideCurrentDirectory = EP;
  function bP(e) {
    return e.filter(Dc);
  }
  s(bP, "getPatternsOutsideCurrentDirectory");
  fe.getPatternsOutsideCurrentDirectory = bP;
  function Dc(e) {
    return e.startsWith("..") || e.startsWith("./..");
  }
  s(Dc, "isPatternRelatedToParentDirectory");
  fe.isPatternRelatedToParentDirectory = Dc;
  function vP(e) {
    return uP(e, { flipBackslashes: !1 });
  }
  s(vP, "getBaseDirectory");
  fe.getBaseDirectory = vP;
  function CP(e) {
    return e.includes(uy);
  }
  s(CP, "hasGlobStar");
  fe.hasGlobStar = CP;
  function hy(e) {
    return e.endsWith("/" + uy);
  }
  s(hy, "endsWithSlashGlobStar");
  fe.endsWithSlashGlobStar = hy;
  function wP(e) {
    let t = aP.basename(e);
    return hy(e) || oy(t);
  }
  s(wP, "isAffectDepthOfReadingPattern");
  fe.isAffectDepthOfReadingPattern = wP;
  function AP(e) {
    return e.reduce((t, r) => t.concat(py(r)), []);
  }
  s(AP, "expandPatternsWithBraceExpansion");
  fe.expandPatternsWithBraceExpansion = AP;
  function py(e) {
    let t = gc.braces(e, { expand: !0, nodupes: !0, keepEscaping: !0 });
    return t.sort((r, i) => r.length - i.length), t.filter((r) => r !== "");
  }
  s(py, "expandBraceExpansion");
  fe.expandBraceExpansion = py;
  function FP(e, t) {
    let { parts: r } = gc.scan(e, Object.assign(Object.assign({}, t), { parts: !0 }));
    return r.length === 0 && (r = [e]), r[0].startsWith("/") && (r[0] = r[0].slice(1), r.unshift("")), r;
  }
  s(FP, "getPatternParts");
  fe.getPatternParts = FP;
  function fy(e, t) {
    return gc.makeRe(e, t);
  }
  s(fy, "makeRe");
  fe.makeRe = fy;
  function SP(e, t) {
    return e.map((r) => fy(r, t));
  }
  s(SP, "convertPatternsToRe");
  fe.convertPatternsToRe = SP;
  function _P(e, t) {
    return t.some((r) => r.test(e));
  }
  s(_P, "matchAny");
  fe.matchAny = _P;
  function kP(e) {
    return e.replace(dP, "/");
  }
  s(kP, "removeDuplicateSlashes");
  fe.removeDuplicateSlashes = kP;
});

// ../node_modules/merge2/index.js
var yy = B((CK, Dy) => {
  "use strict";
  var TP = H("stream"), my = TP.PassThrough, BP = Array.prototype.slice;
  Dy.exports = PP;
  function PP() {
    let e = [], t = BP.call(arguments), r = !1, i = t[t.length - 1];
    i && !Array.isArray(i) && i.pipe == null ? t.pop() : i = {};
    let n = i.end !== !1, a = i.pipeError === !0;
    i.objectMode == null && (i.objectMode = !0), i.highWaterMark == null && (i.highWaterMark = 64 * 1024);
    let u = my(i);
    function o() {
      for (let h = 0, p = arguments.length; h < p; h++)
        e.push(gy(arguments[h], i));
      return l(), this;
    }
    s(o, "addStream");
    function l() {
      if (r)
        return;
      r = !0;
      let h = e.shift();
      if (!h) {
        process.nextTick(c);
        return;
      }
      Array.isArray(h) || (h = [h]);
      let p = h.length + 1;
      function d() {
        --p > 0 || (r = !1, l());
      }
      s(d, "next");
      function m(g) {
        function D() {
          g.removeListener("merge2UnpipeEnd", D), g.removeListener("end", D), a && g.removeListener("error", v), d();
        }
        s(D, "onend");
        function v(y) {
          u.emit("error", y);
        }
        if (s(v, "onerror"), g._readableState.endEmitted)
          return d();
        g.on("merge2UnpipeEnd", D), g.on("end", D), a && g.on("error", v), g.pipe(u, { end: !1 }), g.resume();
      }
      s(m, "pipe");
      for (let g = 0; g < h.length; g++)
        m(h[g]);
      d();
    }
    s(l, "mergeStream");
    function c() {
      r = !1, u.emit("queueDrain"), n && u.end();
    }
    return s(c, "endStream"), u.setMaxListeners(0), u.add = o, u.on("unpipe", function(h) {
      h.emit("merge2UnpipeEnd");
    }), t.length && o.apply(null, t), u;
  }
  s(PP, "merge2");
  function gy(e, t) {
    if (Array.isArray(e))
      for (let r = 0, i = e.length; r < i; r++)
        e[r] = gy(e[r], t);
    else {
      if (!e._readableState && e.pipe && (e = e.pipe(my(t))), !e._readableState || !e.pause || !e.pipe)
        throw new Error("Only readable stream can be merged.");
      e.pause();
    }
    return e;
  }
  s(gy, "pauseStreams");
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/stream.js
var Ey = B((au) => {
  "use strict";
  Object.defineProperty(au, "__esModule", { value: !0 });
  au.merge = void 0;
  var IP = yy();
  function OP(e) {
    let t = IP(e);
    return e.forEach((r) => {
      r.once("error", (i) => t.emit("error", i));
    }), t.once("close", () => xy(e)), t.once("end", () => xy(e)), t;
  }
  s(OP, "merge");
  au.merge = OP;
  function xy(e) {
    e.forEach((t) => t.emit("close"));
  }
  s(xy, "propagateCloseEventToSources");
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/string.js
var by = B((Fn) => {
  "use strict";
  Object.defineProperty(Fn, "__esModule", { value: !0 });
  Fn.isEmpty = Fn.isString = void 0;
  function RP(e) {
    return typeof e == "string";
  }
  s(RP, "isString");
  Fn.isString = RP;
  function NP(e) {
    return e === "";
  }
  s(NP, "isEmpty");
  Fn.isEmpty = NP;
});

// ../node_modules/globby/node_modules/fast-glob/out/utils/index.js
var Xr = B((ft) => {
  "use strict";
  Object.defineProperty(ft, "__esModule", { value: !0 });
  ft.string = ft.stream = ft.pattern = ft.path = ft.fs = ft.errno = ft.array = void 0;
  var LP = j0();
  ft.array = LP;
  var MP = q0();
  ft.errno = MP;
  var jP = $0();
  ft.fs = jP;
  var qP = H0();
  ft.path = qP;
  var $P = dy();
  ft.pattern = $P;
  var VP = Ey();
  ft.stream = VP;
  var UP = by();
  ft.string = UP;
});

// ../node_modules/globby/node_modules/fast-glob/out/managers/tasks.js
var Ay = B((dt) => {
  "use strict";
  Object.defineProperty(dt, "__esModule", { value: !0 });
  dt.convertPatternGroupToTask = dt.convertPatternGroupsToTasks = dt.groupPatternsByBaseDirectory = dt.getNegativePatternsAsPositive = dt.getPositivePatterns =
  dt.convertPatternsToTasks = dt.generate = void 0;
  var hr = Xr();
  function zP(e, t) {
    let r = vy(e, t), i = vy(t.ignore, t), n = Cy(r), a = wy(r, i), u = n.filter((h) => hr.pattern.isStaticPattern(h, t)), o = n.filter((h) => hr.
    pattern.isDynamicPattern(h, t)), l = yc(
      u,
      a,
      /* dynamic */
      !1
    ), c = yc(
      o,
      a,
      /* dynamic */
      !0
    );
    return l.concat(c);
  }
  s(zP, "generate");
  dt.generate = zP;
  function vy(e, t) {
    let r = e;
    return t.braceExpansion && (r = hr.pattern.expandPatternsWithBraceExpansion(r)), t.baseNameMatch && (r = r.map((i) => i.includes("/") ? i :
    `**/${i}`)), r.map((i) => hr.pattern.removeDuplicateSlashes(i));
  }
  s(vy, "processPatterns");
  function yc(e, t, r) {
    let i = [], n = hr.pattern.getPatternsOutsideCurrentDirectory(e), a = hr.pattern.getPatternsInsideCurrentDirectory(e), u = xc(n), o = xc(
    a);
    return i.push(...Ec(u, t, r)), "." in o ? i.push(bc(".", a, t, r)) : i.push(...Ec(o, t, r)), i;
  }
  s(yc, "convertPatternsToTasks");
  dt.convertPatternsToTasks = yc;
  function Cy(e) {
    return hr.pattern.getPositivePatterns(e);
  }
  s(Cy, "getPositivePatterns");
  dt.getPositivePatterns = Cy;
  function wy(e, t) {
    return hr.pattern.getNegativePatterns(e).concat(t).map(hr.pattern.convertToPositivePattern);
  }
  s(wy, "getNegativePatternsAsPositive");
  dt.getNegativePatternsAsPositive = wy;
  function xc(e) {
    let t = {};
    return e.reduce((r, i) => {
      let n = hr.pattern.getBaseDirectory(i);
      return n in r ? r[n].push(i) : r[n] = [i], r;
    }, t);
  }
  s(xc, "groupPatternsByBaseDirectory");
  dt.groupPatternsByBaseDirectory = xc;
  function Ec(e, t, r) {
    return Object.keys(e).map((i) => bc(i, e[i], t, r));
  }
  s(Ec, "convertPatternGroupsToTasks");
  dt.convertPatternGroupsToTasks = Ec;
  function bc(e, t, r, i) {
    return {
      dynamic: i,
      positive: t,
      negative: r,
      base: e,
      patterns: [].concat(t, r.map(hr.pattern.convertToNegativePattern))
    };
  }
  s(bc, "convertPatternGroupToTask");
  dt.convertPatternGroupToTask = bc;
});

// ../node_modules/@nodelib/fs.stat/out/providers/async.js
var Sy = B((uu) => {
  "use strict";
  Object.defineProperty(uu, "__esModule", { value: !0 });
  uu.read = void 0;
  function HP(e, t, r) {
    t.fs.lstat(e, (i, n) => {
      if (i !== null) {
        Fy(r, i);
        return;
      }
      if (!n.isSymbolicLink() || !t.followSymbolicLink) {
        vc(r, n);
        return;
      }
      t.fs.stat(e, (a, u) => {
        if (a !== null) {
          if (t.throwErrorOnBrokenSymbolicLink) {
            Fy(r, a);
            return;
          }
          vc(r, n);
          return;
        }
        t.markSymbolicLink && (u.isSymbolicLink = () => !0), vc(r, u);
      });
    });
  }
  s(HP, "read");
  uu.read = HP;
  function Fy(e, t) {
    e(t);
  }
  s(Fy, "callFailureCallback");
  function vc(e, t) {
    e(null, t);
  }
  s(vc, "callSuccessCallback");
});

// ../node_modules/@nodelib/fs.stat/out/providers/sync.js
var _y = B((ou) => {
  "use strict";
  Object.defineProperty(ou, "__esModule", { value: !0 });
  ou.read = void 0;
  function WP(e, t) {
    let r = t.fs.lstatSync(e);
    if (!r.isSymbolicLink() || !t.followSymbolicLink)
      return r;
    try {
      let i = t.fs.statSync(e);
      return t.markSymbolicLink && (i.isSymbolicLink = () => !0), i;
    } catch (i) {
      if (!t.throwErrorOnBrokenSymbolicLink)
        return r;
      throw i;
    }
  }
  s(WP, "read");
  ou.read = WP;
});

// ../node_modules/@nodelib/fs.stat/out/adapters/fs.js
var ky = B((Di) => {
  "use strict";
  Object.defineProperty(Di, "__esModule", { value: !0 });
  Di.createFileSystemAdapter = Di.FILE_SYSTEM_ADAPTER = void 0;
  var lu = H("fs");
  Di.FILE_SYSTEM_ADAPTER = {
    lstat: lu.lstat,
    stat: lu.stat,
    lstatSync: lu.lstatSync,
    statSync: lu.statSync
  };
  function JP(e) {
    return e === void 0 ? Di.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, Di.FILE_SYSTEM_ADAPTER), e);
  }
  s(JP, "createFileSystemAdapter");
  Di.createFileSystemAdapter = JP;
});

// ../node_modules/@nodelib/fs.stat/out/settings.js
var Ty = B((wc) => {
  "use strict";
  Object.defineProperty(wc, "__esModule", { value: !0 });
  var GP = ky(), Cc = class {
    static {
      s(this, "Settings");
    }
    constructor(t = {}) {
      this._options = t, this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, !0), this.fs = GP.createFileSystemAdapter(
      this._options.fs), this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, !1), this.throwErrorOnBrokenSymbolicLink = this.
      _getValue(this._options.throwErrorOnBrokenSymbolicLink, !0);
    }
    _getValue(t, r) {
      return t ?? r;
    }
  };
  wc.default = Cc;
});

// ../node_modules/@nodelib/fs.stat/out/index.js
var Yi = B((yi) => {
  "use strict";
  Object.defineProperty(yi, "__esModule", { value: !0 });
  yi.statSync = yi.stat = yi.Settings = void 0;
  var By = Sy(), XP = _y(), Ac = Ty();
  yi.Settings = Ac.default;
  function YP(e, t, r) {
    if (typeof t == "function") {
      By.read(e, Fc(), t);
      return;
    }
    By.read(e, Fc(t), r);
  }
  s(YP, "stat");
  yi.stat = YP;
  function KP(e, t) {
    let r = Fc(t);
    return XP.read(e, r);
  }
  s(KP, "statSync");
  yi.statSync = KP;
  function Fc(e = {}) {
    return e instanceof Ac.default ? e : new Ac.default(e);
  }
  s(Fc, "getSettings");
});

// ../node_modules/queue-microtask/index.js
var Oy = B((VK, Iy) => {
  var Py;
  Iy.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : global) : (e) => (Py || (Py = Promise.
  resolve())).then(e).catch((t) => setTimeout(() => {
    throw t;
  }, 0));
});

// ../node_modules/run-parallel/index.js
var Ny = B((UK, Ry) => {
  Ry.exports = ZP;
  var QP = Oy();
  function ZP(e, t) {
    let r, i, n, a = !0;
    Array.isArray(e) ? (r = [], i = e.length) : (n = Object.keys(e), r = {}, i = n.length);
    function u(l) {
      function c() {
        t && t(l, r), t = null;
      }
      s(c, "end"), a ? QP(c) : c();
    }
    s(u, "done");
    function o(l, c, h) {
      r[l] = h, (--i === 0 || c) && u(c);
    }
    s(o, "each"), i ? n ? n.forEach(function(l) {
      e[l](function(c, h) {
        o(l, c, h);
      });
    }) : e.forEach(function(l, c) {
      l(function(h, p) {
        o(c, h, p);
      });
    }) : u(null), a = !1;
  }
  s(ZP, "runParallel");
});

// ../node_modules/@nodelib/fs.scandir/out/constants.js
var Sc = B((hu) => {
  "use strict";
  Object.defineProperty(hu, "__esModule", { value: !0 });
  hu.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
  var cu = process.versions.node.split(".");
  if (cu[0] === void 0 || cu[1] === void 0)
    throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
  var Ly = Number.parseInt(cu[0], 10), eI = Number.parseInt(cu[1], 10), My = 10, tI = 10, rI = Ly > My, iI = Ly === My && eI >= tI;
  hu.IS_SUPPORT_READDIR_WITH_FILE_TYPES = rI || iI;
});

// ../node_modules/@nodelib/fs.scandir/out/utils/fs.js
var jy = B((pu) => {
  "use strict";
  Object.defineProperty(pu, "__esModule", { value: !0 });
  pu.createDirentFromStats = void 0;
  var _c = class {
    static {
      s(this, "DirentFromStats");
    }
    constructor(t, r) {
      this.name = t, this.isBlockDevice = r.isBlockDevice.bind(r), this.isCharacterDevice = r.isCharacterDevice.bind(r), this.isDirectory = r.
      isDirectory.bind(r), this.isFIFO = r.isFIFO.bind(r), this.isFile = r.isFile.bind(r), this.isSocket = r.isSocket.bind(r), this.isSymbolicLink =
      r.isSymbolicLink.bind(r);
    }
  };
  function nI(e, t) {
    return new _c(e, t);
  }
  s(nI, "createDirentFromStats");
  pu.createDirentFromStats = nI;
});

// ../node_modules/@nodelib/fs.scandir/out/utils/index.js
var kc = B((fu) => {
  "use strict";
  Object.defineProperty(fu, "__esModule", { value: !0 });
  fu.fs = void 0;
  var sI = jy();
  fu.fs = sI;
});

// ../node_modules/@nodelib/fs.scandir/out/providers/common.js
var Tc = B((du) => {
  "use strict";
  Object.defineProperty(du, "__esModule", { value: !0 });
  du.joinPathSegments = void 0;
  function aI(e, t, r) {
    return e.endsWith(r) ? e + t : e + r + t;
  }
  s(aI, "joinPathSegments");
  du.joinPathSegments = aI;
});

// ../node_modules/@nodelib/fs.scandir/out/providers/async.js
var Hy = B((xi) => {
  "use strict";
  Object.defineProperty(xi, "__esModule", { value: !0 });
  xi.readdir = xi.readdirWithFileTypes = xi.read = void 0;
  var uI = Yi(), qy = Ny(), oI = Sc(), $y = kc(), Vy = Tc();
  function lI(e, t, r) {
    if (!t.stats && oI.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
      Uy(e, t, r);
      return;
    }
    zy(e, t, r);
  }
  s(lI, "read");
  xi.read = lI;
  function Uy(e, t, r) {
    t.fs.readdir(e, { withFileTypes: !0 }, (i, n) => {
      if (i !== null) {
        mu(r, i);
        return;
      }
      let a = n.map((o) => ({
        dirent: o,
        name: o.name,
        path: Vy.joinPathSegments(e, o.name, t.pathSegmentSeparator)
      }));
      if (!t.followSymbolicLinks) {
        Bc(r, a);
        return;
      }
      let u = a.map((o) => cI(o, t));
      qy(u, (o, l) => {
        if (o !== null) {
          mu(r, o);
          return;
        }
        Bc(r, l);
      });
    });
  }
  s(Uy, "readdirWithFileTypes");
  xi.readdirWithFileTypes = Uy;
  function cI(e, t) {
    return (r) => {
      if (!e.dirent.isSymbolicLink()) {
        r(null, e);
        return;
      }
      t.fs.stat(e.path, (i, n) => {
        if (i !== null) {
          if (t.throwErrorOnBrokenSymbolicLink) {
            r(i);
            return;
          }
          r(null, e);
          return;
        }
        e.dirent = $y.fs.createDirentFromStats(e.name, n), r(null, e);
      });
    };
  }
  s(cI, "makeRplTaskEntry");
  function zy(e, t, r) {
    t.fs.readdir(e, (i, n) => {
      if (i !== null) {
        mu(r, i);
        return;
      }
      let a = n.map((u) => {
        let o = Vy.joinPathSegments(e, u, t.pathSegmentSeparator);
        return (l) => {
          uI.stat(o, t.fsStatSettings, (c, h) => {
            if (c !== null) {
              l(c);
              return;
            }
            let p = {
              name: u,
              path: o,
              dirent: $y.fs.createDirentFromStats(u, h)
            };
            t.stats && (p.stats = h), l(null, p);
          });
        };
      });
      qy(a, (u, o) => {
        if (u !== null) {
          mu(r, u);
          return;
        }
        Bc(r, o);
      });
    });
  }
  s(zy, "readdir");
  xi.readdir = zy;
  function mu(e, t) {
    e(t);
  }
  s(mu, "callFailureCallback");
  function Bc(e, t) {
    e(null, t);
  }
  s(Bc, "callSuccessCallback");
});

// ../node_modules/@nodelib/fs.scandir/out/providers/sync.js
var Yy = B((Ei) => {
  "use strict";
  Object.defineProperty(Ei, "__esModule", { value: !0 });
  Ei.readdir = Ei.readdirWithFileTypes = Ei.read = void 0;
  var hI = Yi(), pI = Sc(), Wy = kc(), Jy = Tc();
  function fI(e, t) {
    return !t.stats && pI.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? Gy(e, t) : Xy(e, t);
  }
  s(fI, "read");
  Ei.read = fI;
  function Gy(e, t) {
    return t.fs.readdirSync(e, { withFileTypes: !0 }).map((i) => {
      let n = {
        dirent: i,
        name: i.name,
        path: Jy.joinPathSegments(e, i.name, t.pathSegmentSeparator)
      };
      if (n.dirent.isSymbolicLink() && t.followSymbolicLinks)
        try {
          let a = t.fs.statSync(n.path);
          n.dirent = Wy.fs.createDirentFromStats(n.name, a);
        } catch (a) {
          if (t.throwErrorOnBrokenSymbolicLink)
            throw a;
        }
      return n;
    });
  }
  s(Gy, "readdirWithFileTypes");
  Ei.readdirWithFileTypes = Gy;
  function Xy(e, t) {
    return t.fs.readdirSync(e).map((i) => {
      let n = Jy.joinPathSegments(e, i, t.pathSegmentSeparator), a = hI.statSync(n, t.fsStatSettings), u = {
        name: i,
        path: n,
        dirent: Wy.fs.createDirentFromStats(i, a)
      };
      return t.stats && (u.stats = a), u;
    });
  }
  s(Xy, "readdir");
  Ei.readdir = Xy;
});

// ../node_modules/@nodelib/fs.scandir/out/adapters/fs.js
var Ky = B((bi) => {
  "use strict";
  Object.defineProperty(bi, "__esModule", { value: !0 });
  bi.createFileSystemAdapter = bi.FILE_SYSTEM_ADAPTER = void 0;
  var Sn = H("fs");
  bi.FILE_SYSTEM_ADAPTER = {
    lstat: Sn.lstat,
    stat: Sn.stat,
    lstatSync: Sn.lstatSync,
    statSync: Sn.statSync,
    readdir: Sn.readdir,
    readdirSync: Sn.readdirSync
  };
  function dI(e) {
    return e === void 0 ? bi.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, bi.FILE_SYSTEM_ADAPTER), e);
  }
  s(dI, "createFileSystemAdapter");
  bi.createFileSystemAdapter = dI;
});

// ../node_modules/@nodelib/fs.scandir/out/settings.js
var Qy = B((Ic) => {
  "use strict";
  Object.defineProperty(Ic, "__esModule", { value: !0 });
  var mI = H("path"), gI = Yi(), DI = Ky(), Pc = class {
    static {
      s(this, "Settings");
    }
    constructor(t = {}) {
      this._options = t, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = DI.createFileSystemAdapter(
      this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, mI.sep), this.stats = this._getValue(
      this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.
      fsStatSettings = new gI.Settings({
        followSymbolicLink: this.followSymbolicLinks,
        fs: this.fs,
        throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
      });
    }
    _getValue(t, r) {
      return t ?? r;
    }
  };
  Ic.default = Pc;
});

// ../node_modules/@nodelib/fs.scandir/out/index.js
var gu = B((vi) => {
  "use strict";
  Object.defineProperty(vi, "__esModule", { value: !0 });
  vi.Settings = vi.scandirSync = vi.scandir = void 0;
  var Zy = Hy(), yI = Yy(), Oc = Qy();
  vi.Settings = Oc.default;
  function xI(e, t, r) {
    if (typeof t == "function") {
      Zy.read(e, Rc(), t);
      return;
    }
    Zy.read(e, Rc(t), r);
  }
  s(xI, "scandir");
  vi.scandir = xI;
  function EI(e, t) {
    let r = Rc(t);
    return yI.read(e, r);
  }
  s(EI, "scandirSync");
  vi.scandirSync = EI;
  function Rc(e = {}) {
    return e instanceof Oc.default ? e : new Oc.default(e);
  }
  s(Rc, "getSettings");
});

// ../node_modules/reusify/reusify.js
var tx = B((uQ, ex) => {
  "use strict";
  function bI(e) {
    var t = new e(), r = t;
    function i() {
      var a = t;
      return a.next ? t = a.next : (t = new e(), r = t), a.next = null, a;
    }
    s(i, "get");
    function n(a) {
      r.next = a, r = a;
    }
    return s(n, "release"), {
      get: i,
      release: n
    };
  }
  s(bI, "reusify");
  ex.exports = bI;
});

// ../node_modules/fastq/queue.js
var ix = B((lQ, Nc) => {
  "use strict";
  var vI = tx();
  function rx(e, t, r) {
    if (typeof e == "function" && (r = t, t = e, e = null), r < 1)
      throw new Error("fastqueue concurrency must be greater than 1");
    var i = vI(CI), n = null, a = null, u = 0, o = null, l = {
      push: D,
      drain: Ht,
      saturated: Ht,
      pause: h,
      paused: !1,
      concurrency: r,
      running: c,
      resume: m,
      idle: g,
      length: p,
      getQueue: d,
      unshift: v,
      empty: Ht,
      kill: C,
      killAndDrain: S,
      error: T
    };
    return l;
    function c() {
      return u;
    }
    function h() {
      l.paused = !0;
    }
    function p() {
      for (var j = n, w = 0; j; )
        j = j.next, w++;
      return w;
    }
    function d() {
      for (var j = n, w = []; j; )
        w.push(j.value), j = j.next;
      return w;
    }
    function m() {
      if (l.paused) {
        l.paused = !1;
        for (var j = 0; j < l.concurrency; j++)
          u++, y();
      }
    }
    function g() {
      return u === 0 && l.length() === 0;
    }
    function D(j, w) {
      var A = i.get();
      A.context = e, A.release = y, A.value = j, A.callback = w || Ht, A.errorHandler = o, u === l.concurrency || l.paused ? a ? (a.next = A,
      a = A) : (n = A, a = A, l.saturated()) : (u++, t.call(e, A.value, A.worked));
    }
    function v(j, w) {
      var A = i.get();
      A.context = e, A.release = y, A.value = j, A.callback = w || Ht, u === l.concurrency || l.paused ? n ? (A.next = n, n = A) : (n = A, a =
      A, l.saturated()) : (u++, t.call(e, A.value, A.worked));
    }
    function y(j) {
      j && i.release(j);
      var w = n;
      w ? l.paused ? u-- : (a === n && (a = null), n = w.next, w.next = null, t.call(e, w.value, w.worked), a === null && l.empty()) : --u ===
      0 && l.drain();
    }
    function C() {
      n = null, a = null, l.drain = Ht;
    }
    function S() {
      n = null, a = null, l.drain(), l.drain = Ht;
    }
    function T(j) {
      o = j;
    }
  }
  s(rx, "fastqueue");
  function Ht() {
  }
  s(Ht, "noop");
  function CI() {
    this.value = null, this.callback = Ht, this.next = null, this.release = Ht, this.context = null, this.errorHandler = null;
    var e = this;
    this.worked = /* @__PURE__ */ s(function(r, i) {
      var n = e.callback, a = e.errorHandler, u = e.value;
      e.value = null, e.callback = Ht, e.errorHandler && a(r, u), n.call(e.context, r, i), e.release(e);
    }, "worked");
  }
  s(CI, "Task");
  function wI(e, t, r) {
    typeof e == "function" && (r = t, t = e, e = null);
    function i(h, p) {
      t.call(this, h).then(function(d) {
        p(null, d);
      }, p);
    }
    s(i, "asyncWrapper");
    var n = rx(e, i, r), a = n.push, u = n.unshift;
    return n.push = o, n.unshift = l, n.drained = c, n;
    function o(h) {
      var p = new Promise(function(d, m) {
        a(h, function(g, D) {
          if (g) {
            m(g);
            return;
          }
          d(D);
        });
      });
      return p.catch(Ht), p;
    }
    s(o, "push");
    function l(h) {
      var p = new Promise(function(d, m) {
        u(h, function(g, D) {
          if (g) {
            m(g);
            return;
          }
          d(D);
        });
      });
      return p.catch(Ht), p;
    }
    s(l, "unshift");
    function c() {
      if (n.idle())
        return new Promise(function(d) {
          d();
        });
      var h = n.drain, p = new Promise(function(d) {
        n.drain = function() {
          h(), d();
        };
      });
      return p;
    }
    s(c, "drained");
  }
  s(wI, "queueAsPromised");
  Nc.exports = rx;
  Nc.exports.promise = wI;
});

// ../node_modules/@nodelib/fs.walk/out/readers/common.js
var Du = B((kr) => {
  "use strict";
  Object.defineProperty(kr, "__esModule", { value: !0 });
  kr.joinPathSegments = kr.replacePathSegmentSeparator = kr.isAppliedFilter = kr.isFatalError = void 0;
  function AI(e, t) {
    return e.errorFilter === null ? !0 : !e.errorFilter(t);
  }
  s(AI, "isFatalError");
  kr.isFatalError = AI;
  function FI(e, t) {
    return e === null || e(t);
  }
  s(FI, "isAppliedFilter");
  kr.isAppliedFilter = FI;
  function SI(e, t) {
    return e.split(/[/\\]/).join(t);
  }
  s(SI, "replacePathSegmentSeparator");
  kr.replacePathSegmentSeparator = SI;
  function _I(e, t, r) {
    return e === "" ? t : e.endsWith(r) ? e + t : e + r + t;
  }
  s(_I, "joinPathSegments");
  kr.joinPathSegments = _I;
});

// ../node_modules/@nodelib/fs.walk/out/readers/reader.js
var jc = B((Mc) => {
  "use strict";
  Object.defineProperty(Mc, "__esModule", { value: !0 });
  var kI = Du(), Lc = class {
    static {
      s(this, "Reader");
    }
    constructor(t, r) {
      this._root = t, this._settings = r, this._root = kI.replacePathSegmentSeparator(t, r.pathSegmentSeparator);
    }
  };
  Mc.default = Lc;
});

// ../node_modules/@nodelib/fs.walk/out/readers/async.js
var Vc = B(($c) => {
  "use strict";
  Object.defineProperty($c, "__esModule", { value: !0 });
  var TI = H("events"), BI = gu(), PI = ix(), yu = Du(), II = jc(), qc = class extends II.default {
    static {
      s(this, "AsyncReader");
    }
    constructor(t, r) {
      super(t, r), this._settings = r, this._scandir = BI.scandir, this._emitter = new TI.EventEmitter(), this._queue = PI(this._worker.bind(
      this), this._settings.concurrency), this._isFatalError = !1, this._isDestroyed = !1, this._queue.drain = () => {
        this._isFatalError || this._emitter.emit("end");
      };
    }
    read() {
      return this._isFatalError = !1, this._isDestroyed = !1, setImmediate(() => {
        this._pushToQueue(this._root, this._settings.basePath);
      }), this._emitter;
    }
    get isDestroyed() {
      return this._isDestroyed;
    }
    destroy() {
      if (this._isDestroyed)
        throw new Error("The reader is already destroyed");
      this._isDestroyed = !0, this._queue.killAndDrain();
    }
    onEntry(t) {
      this._emitter.on("entry", t);
    }
    onError(t) {
      this._emitter.once("error", t);
    }
    onEnd(t) {
      this._emitter.once("end", t);
    }
    _pushToQueue(t, r) {
      let i = { directory: t, base: r };
      this._queue.push(i, (n) => {
        n !== null && this._handleError(n);
      });
    }
    _worker(t, r) {
      this._scandir(t.directory, this._settings.fsScandirSettings, (i, n) => {
        if (i !== null) {
          r(i, void 0);
          return;
        }
        for (let a of n)
          this._handleEntry(a, t.base);
        r(null, void 0);
      });
    }
    _handleError(t) {
      this._isDestroyed || !yu.isFatalError(this._settings, t) || (this._isFatalError = !0, this._isDestroyed = !0, this._emitter.emit("erro\
r", t));
    }
    _handleEntry(t, r) {
      if (this._isDestroyed || this._isFatalError)
        return;
      let i = t.path;
      r !== void 0 && (t.path = yu.joinPathSegments(r, t.name, this._settings.pathSegmentSeparator)), yu.isAppliedFilter(this._settings.entryFilter,
      t) && this._emitEntry(t), t.dirent.isDirectory() && yu.isAppliedFilter(this._settings.deepFilter, t) && this._pushToQueue(i, r === void 0 ?
      void 0 : t.path);
    }
    _emitEntry(t) {
      this._emitter.emit("entry", t);
    }
  };
  $c.default = qc;
});

// ../node_modules/@nodelib/fs.walk/out/providers/async.js
var nx = B((zc) => {
  "use strict";
  Object.defineProperty(zc, "__esModule", { value: !0 });
  var OI = Vc(), Uc = class {
    static {
      s(this, "AsyncProvider");
    }
    constructor(t, r) {
      this._root = t, this._settings = r, this._reader = new OI.default(this._root, this._settings), this._storage = [];
    }
    read(t) {
      this._reader.onError((r) => {
        RI(t, r);
      }), this._reader.onEntry((r) => {
        this._storage.push(r);
      }), this._reader.onEnd(() => {
        NI(t, this._storage);
      }), this._reader.read();
    }
  };
  zc.default = Uc;
  function RI(e, t) {
    e(t);
  }
  s(RI, "callFailureCallback");
  function NI(e, t) {
    e(null, t);
  }
  s(NI, "callSuccessCallback");
});

// ../node_modules/@nodelib/fs.walk/out/providers/stream.js
var sx = B((Wc) => {
  "use strict";
  Object.defineProperty(Wc, "__esModule", { value: !0 });
  var LI = H("stream"), MI = Vc(), Hc = class {
    static {
      s(this, "StreamProvider");
    }
    constructor(t, r) {
      this._root = t, this._settings = r, this._reader = new MI.default(this._root, this._settings), this._stream = new LI.Readable({
        objectMode: !0,
        read: /* @__PURE__ */ s(() => {
        }, "read"),
        destroy: /* @__PURE__ */ s(() => {
          this._reader.isDestroyed || this._reader.destroy();
        }, "destroy")
      });
    }
    read() {
      return this._reader.onError((t) => {
        this._stream.emit("error", t);
      }), this._reader.onEntry((t) => {
        this._stream.push(t);
      }), this._reader.onEnd(() => {
        this._stream.push(null);
      }), this._reader.read(), this._stream;
    }
  };
  Wc.default = Hc;
});

// ../node_modules/@nodelib/fs.walk/out/readers/sync.js
var ax = B((Gc) => {
  "use strict";
  Object.defineProperty(Gc, "__esModule", { value: !0 });
  var jI = gu(), xu = Du(), qI = jc(), Jc = class extends qI.default {
    static {
      s(this, "SyncReader");
    }
    constructor() {
      super(...arguments), this._scandir = jI.scandirSync, this._storage = [], this._queue = /* @__PURE__ */ new Set();
    }
    read() {
      return this._pushToQueue(this._root, this._settings.basePath), this._handleQueue(), this._storage;
    }
    _pushToQueue(t, r) {
      this._queue.add({ directory: t, base: r });
    }
    _handleQueue() {
      for (let t of this._queue.values())
        this._handleDirectory(t.directory, t.base);
    }
    _handleDirectory(t, r) {
      try {
        let i = this._scandir(t, this._settings.fsScandirSettings);
        for (let n of i)
          this._handleEntry(n, r);
      } catch (i) {
        this._handleError(i);
      }
    }
    _handleError(t) {
      if (xu.isFatalError(this._settings, t))
        throw t;
    }
    _handleEntry(t, r) {
      let i = t.path;
      r !== void 0 && (t.path = xu.joinPathSegments(r, t.name, this._settings.pathSegmentSeparator)), xu.isAppliedFilter(this._settings.entryFilter,
      t) && this._pushToStorage(t), t.dirent.isDirectory() && xu.isAppliedFilter(this._settings.deepFilter, t) && this._pushToQueue(i, r ===
      void 0 ? void 0 : t.path);
    }
    _pushToStorage(t) {
      this._storage.push(t);
    }
  };
  Gc.default = Jc;
});

// ../node_modules/@nodelib/fs.walk/out/providers/sync.js
var ux = B((Yc) => {
  "use strict";
  Object.defineProperty(Yc, "__esModule", { value: !0 });
  var $I = ax(), Xc = class {
    static {
      s(this, "SyncProvider");
    }
    constructor(t, r) {
      this._root = t, this._settings = r, this._reader = new $I.default(this._root, this._settings);
    }
    read() {
      return this._reader.read();
    }
  };
  Yc.default = Xc;
});

// ../node_modules/@nodelib/fs.walk/out/settings.js
var ox = B((Qc) => {
  "use strict";
  Object.defineProperty(Qc, "__esModule", { value: !0 });
  var VI = H("path"), UI = gu(), Kc = class {
    static {
      s(this, "Settings");
    }
    constructor(t = {}) {
      this._options = t, this.basePath = this._getValue(this._options.basePath, void 0), this.concurrency = this._getValue(this._options.concurrency,
      Number.POSITIVE_INFINITY), this.deepFilter = this._getValue(this._options.deepFilter, null), this.entryFilter = this._getValue(this._options.
      entryFilter, null), this.errorFilter = this._getValue(this._options.errorFilter, null), this.pathSegmentSeparator = this._getValue(this.
      _options.pathSegmentSeparator, VI.sep), this.fsScandirSettings = new UI.Settings({
        followSymbolicLinks: this._options.followSymbolicLinks,
        fs: this._options.fs,
        pathSegmentSeparator: this._options.pathSegmentSeparator,
        stats: this._options.stats,
        throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
      });
    }
    _getValue(t, r) {
      return t ?? r;
    }
  };
  Qc.default = Kc;
});

// ../node_modules/@nodelib/fs.walk/out/index.js
var bu = B((Tr) => {
  "use strict";
  Object.defineProperty(Tr, "__esModule", { value: !0 });
  Tr.Settings = Tr.walkStream = Tr.walkSync = Tr.walk = void 0;
  var lx = nx(), zI = sx(), HI = ux(), Zc = ox();
  Tr.Settings = Zc.default;
  function WI(e, t, r) {
    if (typeof t == "function") {
      new lx.default(e, Eu()).read(t);
      return;
    }
    new lx.default(e, Eu(t)).read(r);
  }
  s(WI, "walk");
  Tr.walk = WI;
  function JI(e, t) {
    let r = Eu(t);
    return new HI.default(e, r).read();
  }
  s(JI, "walkSync");
  Tr.walkSync = JI;
  function GI(e, t) {
    let r = Eu(t);
    return new zI.default(e, r).read();
  }
  s(GI, "walkStream");
  Tr.walkStream = GI;
  function Eu(e = {}) {
    return e instanceof Zc.default ? e : new Zc.default(e);
  }
  s(Eu, "getSettings");
});

// ../node_modules/globby/node_modules/fast-glob/out/readers/reader.js
var vu = B((th) => {
  "use strict";
  Object.defineProperty(th, "__esModule", { value: !0 });
  var XI = H("path"), YI = Yi(), cx = Xr(), eh = class {
    static {
      s(this, "Reader");
    }
    constructor(t) {
      this._settings = t, this._fsStatSettings = new YI.Settings({
        followSymbolicLink: this._settings.followSymbolicLinks,
        fs: this._settings.fs,
        throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
      });
    }
    _getFullEntryPath(t) {
      return XI.resolve(this._settings.cwd, t);
    }
    _makeEntry(t, r) {
      let i = {
        name: r,
        path: r,
        dirent: cx.fs.createDirentFromStats(r, t)
      };
      return this._settings.stats && (i.stats = t), i;
    }
    _isFatalError(t) {
      return !cx.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
    }
  };
  th.default = eh;
});

// ../node_modules/globby/node_modules/fast-glob/out/readers/stream.js
var nh = B((ih) => {
  "use strict";
  Object.defineProperty(ih, "__esModule", { value: !0 });
  var KI = H("stream"), QI = Yi(), ZI = bu(), e9 = vu(), rh = class extends e9.default {
    static {
      s(this, "ReaderStream");
    }
    constructor() {
      super(...arguments), this._walkStream = ZI.walkStream, this._stat = QI.stat;
    }
    dynamic(t, r) {
      return this._walkStream(t, r);
    }
    static(t, r) {
      let i = t.map(this._getFullEntryPath, this), n = new KI.PassThrough({ objectMode: !0 });
      n._write = (a, u, o) => this._getEntry(i[a], t[a], r).then((l) => {
        l !== null && r.entryFilter(l) && n.push(l), a === i.length - 1 && n.end(), o();
      }).catch(o);
      for (let a = 0; a < i.length; a++)
        n.write(a);
      return n;
    }
    _getEntry(t, r, i) {
      return this._getStat(t).then((n) => this._makeEntry(n, r)).catch((n) => {
        if (i.errorFilter(n))
          return null;
        throw n;
      });
    }
    _getStat(t) {
      return new Promise((r, i) => {
        this._stat(t, this._fsStatSettings, (n, a) => n === null ? r(a) : i(n));
      });
    }
  };
  ih.default = rh;
});

// ../node_modules/globby/node_modules/fast-glob/out/readers/async.js
var hx = B((ah) => {
  "use strict";
  Object.defineProperty(ah, "__esModule", { value: !0 });
  var t9 = bu(), r9 = vu(), i9 = nh(), sh = class extends r9.default {
    static {
      s(this, "ReaderAsync");
    }
    constructor() {
      super(...arguments), this._walkAsync = t9.walk, this._readerStream = new i9.default(this._settings);
    }
    dynamic(t, r) {
      return new Promise((i, n) => {
        this._walkAsync(t, r, (a, u) => {
          a === null ? i(u) : n(a);
        });
      });
    }
    async static(t, r) {
      let i = [], n = this._readerStream.static(t, r);
      return new Promise((a, u) => {
        n.once("error", u), n.on("data", (o) => i.push(o)), n.once("end", () => a(i));
      });
    }
  };
  ah.default = sh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/matchers/matcher.js
var px = B((oh) => {
  "use strict";
  Object.defineProperty(oh, "__esModule", { value: !0 });
  var Ls = Xr(), uh = class {
    static {
      s(this, "Matcher");
    }
    constructor(t, r, i) {
      this._patterns = t, this._settings = r, this._micromatchOptions = i, this._storage = [], this._fillStorage();
    }
    _fillStorage() {
      for (let t of this._patterns) {
        let r = this._getPatternSegments(t), i = this._splitSegmentsIntoSections(r);
        this._storage.push({
          complete: i.length <= 1,
          pattern: t,
          segments: r,
          sections: i
        });
      }
    }
    _getPatternSegments(t) {
      return Ls.pattern.getPatternParts(t, this._micromatchOptions).map((i) => Ls.pattern.isDynamicPattern(i, this._settings) ? {
        dynamic: !0,
        pattern: i,
        patternRe: Ls.pattern.makeRe(i, this._micromatchOptions)
      } : {
        dynamic: !1,
        pattern: i
      });
    }
    _splitSegmentsIntoSections(t) {
      return Ls.array.splitWhen(t, (r) => r.dynamic && Ls.pattern.hasGlobStar(r.pattern));
    }
  };
  oh.default = uh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/matchers/partial.js
var fx = B((ch) => {
  "use strict";
  Object.defineProperty(ch, "__esModule", { value: !0 });
  var n9 = px(), lh = class extends n9.default {
    static {
      s(this, "PartialMatcher");
    }
    match(t) {
      let r = t.split("/"), i = r.length, n = this._storage.filter((a) => !a.complete || a.segments.length > i);
      for (let a of n) {
        let u = a.sections[0];
        if (!a.complete && i > u.length || r.every((l, c) => {
          let h = a.segments[c];
          return !!(h.dynamic && h.patternRe.test(l) || !h.dynamic && h.pattern === l);
        }))
          return !0;
      }
      return !1;
    }
  };
  ch.default = lh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/filters/deep.js
var dx = B((ph) => {
  "use strict";
  Object.defineProperty(ph, "__esModule", { value: !0 });
  var Cu = Xr(), s9 = fx(), hh = class {
    static {
      s(this, "DeepFilter");
    }
    constructor(t, r) {
      this._settings = t, this._micromatchOptions = r;
    }
    getFilter(t, r, i) {
      let n = this._getMatcher(r), a = this._getNegativePatternsRe(i);
      return (u) => this._filter(t, u, n, a);
    }
    _getMatcher(t) {
      return new s9.default(t, this._settings, this._micromatchOptions);
    }
    _getNegativePatternsRe(t) {
      let r = t.filter(Cu.pattern.isAffectDepthOfReadingPattern);
      return Cu.pattern.convertPatternsToRe(r, this._micromatchOptions);
    }
    _filter(t, r, i, n) {
      if (this._isSkippedByDeep(t, r.path) || this._isSkippedSymbolicLink(r))
        return !1;
      let a = Cu.path.removeLeadingDotSegment(r.path);
      return this._isSkippedByPositivePatterns(a, i) ? !1 : this._isSkippedByNegativePatterns(a, n);
    }
    _isSkippedByDeep(t, r) {
      return this._settings.deep === 1 / 0 ? !1 : this._getEntryLevel(t, r) >= this._settings.deep;
    }
    _getEntryLevel(t, r) {
      let i = r.split("/").length;
      if (t === "")
        return i;
      let n = t.split("/").length;
      return i - n;
    }
    _isSkippedSymbolicLink(t) {
      return !this._settings.followSymbolicLinks && t.dirent.isSymbolicLink();
    }
    _isSkippedByPositivePatterns(t, r) {
      return !this._settings.baseNameMatch && !r.match(t);
    }
    _isSkippedByNegativePatterns(t, r) {
      return !Cu.pattern.matchAny(t, r);
    }
  };
  ph.default = hh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/filters/entry.js
var mx = B((dh) => {
  "use strict";
  Object.defineProperty(dh, "__esModule", { value: !0 });
  var Ki = Xr(), fh = class {
    static {
      s(this, "EntryFilter");
    }
    constructor(t, r) {
      this._settings = t, this._micromatchOptions = r, this.index = /* @__PURE__ */ new Map();
    }
    getFilter(t, r) {
      let i = Ki.pattern.convertPatternsToRe(t, this._micromatchOptions), n = Ki.pattern.convertPatternsToRe(r, Object.assign(Object.assign(
      {}, this._micromatchOptions), { dot: !0 }));
      return (a) => this._filter(a, i, n);
    }
    _filter(t, r, i) {
      let n = Ki.path.removeLeadingDotSegment(t.path);
      if (this._settings.unique && this._isDuplicateEntry(n) || this._onlyFileFilter(t) || this._onlyDirectoryFilter(t) || this._isSkippedByAbsoluteNegativePatterns(
      n, i))
        return !1;
      let a = t.dirent.isDirectory(), u = this._isMatchToPatterns(n, r, a) && !this._isMatchToPatterns(n, i, a);
      return this._settings.unique && u && this._createIndexRecord(n), u;
    }
    _isDuplicateEntry(t) {
      return this.index.has(t);
    }
    _createIndexRecord(t) {
      this.index.set(t, void 0);
    }
    _onlyFileFilter(t) {
      return this._settings.onlyFiles && !t.dirent.isFile();
    }
    _onlyDirectoryFilter(t) {
      return this._settings.onlyDirectories && !t.dirent.isDirectory();
    }
    _isSkippedByAbsoluteNegativePatterns(t, r) {
      if (!this._settings.absolute)
        return !1;
      let i = Ki.path.makeAbsolute(this._settings.cwd, t);
      return Ki.pattern.matchAny(i, r);
    }
    _isMatchToPatterns(t, r, i) {
      let n = Ki.pattern.matchAny(t, r);
      return !n && i ? Ki.pattern.matchAny(t + "/", r) : n;
    }
  };
  dh.default = fh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/filters/error.js
var gx = B((gh) => {
  "use strict";
  Object.defineProperty(gh, "__esModule", { value: !0 });
  var a9 = Xr(), mh = class {
    static {
      s(this, "ErrorFilter");
    }
    constructor(t) {
      this._settings = t;
    }
    getFilter() {
      return (t) => this._isNonFatalError(t);
    }
    _isNonFatalError(t) {
      return a9.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
    }
  };
  gh.default = mh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/transformers/entry.js
var yx = B((yh) => {
  "use strict";
  Object.defineProperty(yh, "__esModule", { value: !0 });
  var Dx = Xr(), Dh = class {
    static {
      s(this, "EntryTransformer");
    }
    constructor(t) {
      this._settings = t;
    }
    getTransformer() {
      return (t) => this._transform(t);
    }
    _transform(t) {
      let r = t.path;
      return this._settings.absolute && (r = Dx.path.makeAbsolute(this._settings.cwd, r), r = Dx.path.unixify(r)), this._settings.markDirectories &&
      t.dirent.isDirectory() && (r += "/"), this._settings.objectMode ? Object.assign(Object.assign({}, t), { path: r }) : r;
    }
  };
  yh.default = Dh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/provider.js
var wu = B((Eh) => {
  "use strict";
  Object.defineProperty(Eh, "__esModule", { value: !0 });
  var u9 = H("path"), o9 = dx(), l9 = mx(), c9 = gx(), h9 = yx(), xh = class {
    static {
      s(this, "Provider");
    }
    constructor(t) {
      this._settings = t, this.errorFilter = new c9.default(this._settings), this.entryFilter = new l9.default(this._settings, this._getMicromatchOptions()),
      this.deepFilter = new o9.default(this._settings, this._getMicromatchOptions()), this.entryTransformer = new h9.default(this._settings);
    }
    _getRootDirectory(t) {
      return u9.resolve(this._settings.cwd, t.base);
    }
    _getReaderOptions(t) {
      let r = t.base === "." ? "" : t.base;
      return {
        basePath: r,
        pathSegmentSeparator: "/",
        concurrency: this._settings.concurrency,
        deepFilter: this.deepFilter.getFilter(r, t.positive, t.negative),
        entryFilter: this.entryFilter.getFilter(t.positive, t.negative),
        errorFilter: this.errorFilter.getFilter(),
        followSymbolicLinks: this._settings.followSymbolicLinks,
        fs: this._settings.fs,
        stats: this._settings.stats,
        throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
        transform: this.entryTransformer.getTransformer()
      };
    }
    _getMicromatchOptions() {
      return {
        dot: this._settings.dot,
        matchBase: this._settings.baseNameMatch,
        nobrace: !this._settings.braceExpansion,
        nocase: !this._settings.caseSensitiveMatch,
        noext: !this._settings.extglob,
        noglobstar: !this._settings.globstar,
        posix: !0,
        strictSlashes: !1
      };
    }
  };
  Eh.default = xh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/async.js
var xx = B((vh) => {
  "use strict";
  Object.defineProperty(vh, "__esModule", { value: !0 });
  var p9 = hx(), f9 = wu(), bh = class extends f9.default {
    static {
      s(this, "ProviderAsync");
    }
    constructor() {
      super(...arguments), this._reader = new p9.default(this._settings);
    }
    async read(t) {
      let r = this._getRootDirectory(t), i = this._getReaderOptions(t);
      return (await this.api(r, t, i)).map((a) => i.transform(a));
    }
    api(t, r, i) {
      return r.dynamic ? this._reader.dynamic(t, i) : this._reader.static(r.patterns, i);
    }
  };
  vh.default = bh;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/stream.js
var Ex = B((wh) => {
  "use strict";
  Object.defineProperty(wh, "__esModule", { value: !0 });
  var d9 = H("stream"), m9 = nh(), g9 = wu(), Ch = class extends g9.default {
    static {
      s(this, "ProviderStream");
    }
    constructor() {
      super(...arguments), this._reader = new m9.default(this._settings);
    }
    read(t) {
      let r = this._getRootDirectory(t), i = this._getReaderOptions(t), n = this.api(r, t, i), a = new d9.Readable({ objectMode: !0, read: /* @__PURE__ */ s(
      () => {
      }, "read") });
      return n.once("error", (u) => a.emit("error", u)).on("data", (u) => a.emit("data", i.transform(u))).once("end", () => a.emit("end")), a.
      once("close", () => n.destroy()), a;
    }
    api(t, r, i) {
      return r.dynamic ? this._reader.dynamic(t, i) : this._reader.static(r.patterns, i);
    }
  };
  wh.default = Ch;
});

// ../node_modules/globby/node_modules/fast-glob/out/readers/sync.js
var bx = B((Fh) => {
  "use strict";
  Object.defineProperty(Fh, "__esModule", { value: !0 });
  var D9 = Yi(), y9 = bu(), x9 = vu(), Ah = class extends x9.default {
    static {
      s(this, "ReaderSync");
    }
    constructor() {
      super(...arguments), this._walkSync = y9.walkSync, this._statSync = D9.statSync;
    }
    dynamic(t, r) {
      return this._walkSync(t, r);
    }
    static(t, r) {
      let i = [];
      for (let n of t) {
        let a = this._getFullEntryPath(n), u = this._getEntry(a, n, r);
        u === null || !r.entryFilter(u) || i.push(u);
      }
      return i;
    }
    _getEntry(t, r, i) {
      try {
        let n = this._getStat(t);
        return this._makeEntry(n, r);
      } catch (n) {
        if (i.errorFilter(n))
          return null;
        throw n;
      }
    }
    _getStat(t) {
      return this._statSync(t, this._fsStatSettings);
    }
  };
  Fh.default = Ah;
});

// ../node_modules/globby/node_modules/fast-glob/out/providers/sync.js
var vx = B((_h) => {
  "use strict";
  Object.defineProperty(_h, "__esModule", { value: !0 });
  var E9 = bx(), b9 = wu(), Sh = class extends b9.default {
    static {
      s(this, "ProviderSync");
    }
    constructor() {
      super(...arguments), this._reader = new E9.default(this._settings);
    }
    read(t) {
      let r = this._getRootDirectory(t), i = this._getReaderOptions(t);
      return this.api(r, t, i).map(i.transform);
    }
    api(t, r, i) {
      return r.dynamic ? this._reader.dynamic(t, i) : this._reader.static(r.patterns, i);
    }
  };
  _h.default = Sh;
});

// ../node_modules/globby/node_modules/fast-glob/out/settings.js
var Cx = B((kn) => {
  "use strict";
  Object.defineProperty(kn, "__esModule", { value: !0 });
  kn.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
  var _n = H("fs"), v9 = H("os"), C9 = Math.max(v9.cpus().length, 1);
  kn.DEFAULT_FILE_SYSTEM_ADAPTER = {
    lstat: _n.lstat,
    lstatSync: _n.lstatSync,
    stat: _n.stat,
    statSync: _n.statSync,
    readdir: _n.readdir,
    readdirSync: _n.readdirSync
  };
  var kh = class {
    static {
      s(this, "Settings");
    }
    constructor(t = {}) {
      this._options = t, this.absolute = this._getValue(this._options.absolute, !1), this.baseNameMatch = this._getValue(this._options.baseNameMatch,
      !1), this.braceExpansion = this._getValue(this._options.braceExpansion, !0), this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch,
      !0), this.concurrency = this._getValue(this._options.concurrency, C9), this.cwd = this._getValue(this._options.cwd, process.cwd()), this.
      deep = this._getValue(this._options.deep, 1 / 0), this.dot = this._getValue(this._options.dot, !1), this.extglob = this._getValue(this.
      _options.extglob, !0), this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !0), this.fs = this._getFileSystemMethods(
      this._options.fs), this.globstar = this._getValue(this._options.globstar, !0), this.ignore = this._getValue(this._options.ignore, []),
      this.markDirectories = this._getValue(this._options.markDirectories, !1), this.objectMode = this._getValue(this._options.objectMode, !1),
      this.onlyDirectories = this._getValue(this._options.onlyDirectories, !1), this.onlyFiles = this._getValue(this._options.onlyFiles, !0),
      this.stats = this._getValue(this._options.stats, !1), this.suppressErrors = this._getValue(this._options.suppressErrors, !1), this.throwErrorOnBrokenSymbolicLink =
      this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !1), this.unique = this._getValue(this._options.unique, !0), this.onlyDirectories &&
      (this.onlyFiles = !1), this.stats && (this.objectMode = !0), this.ignore = [].concat(this.ignore);
    }
    _getValue(t, r) {
      return t === void 0 ? r : t;
    }
    _getFileSystemMethods(t = {}) {
      return Object.assign(Object.assign({}, kn.DEFAULT_FILE_SYSTEM_ADAPTER), t);
    }
  };
  kn.default = kh;
});

// ../node_modules/globby/node_modules/fast-glob/out/index.js
var Ih = B((sZ, Ax) => {
  "use strict";
  var wx = Ay(), w9 = xx(), A9 = Ex(), F9 = vx(), Th = Cx(), Wt = Xr();
  async function Bh(e, t) {
    pr(e);
    let r = Ph(e, w9.default, t), i = await Promise.all(r);
    return Wt.array.flatten(i);
  }
  s(Bh, "FastGlob");
  (function(e) {
    e.glob = e, e.globSync = t, e.globStream = r, e.async = e;
    function t(c, h) {
      pr(c);
      let p = Ph(c, F9.default, h);
      return Wt.array.flatten(p);
    }
    s(t, "sync"), e.sync = t;
    function r(c, h) {
      pr(c);
      let p = Ph(c, A9.default, h);
      return Wt.stream.merge(p);
    }
    s(r, "stream"), e.stream = r;
    function i(c, h) {
      pr(c);
      let p = [].concat(c), d = new Th.default(h);
      return wx.generate(p, d);
    }
    s(i, "generateTasks"), e.generateTasks = i;
    function n(c, h) {
      pr(c);
      let p = new Th.default(h);
      return Wt.pattern.isDynamicPattern(c, p);
    }
    s(n, "isDynamicPattern"), e.isDynamicPattern = n;
    function a(c) {
      return pr(c), Wt.path.escape(c);
    }
    s(a, "escapePath"), e.escapePath = a;
    function u(c) {
      return pr(c), Wt.path.convertPathToPattern(c);
    }
    s(u, "convertPathToPattern"), e.convertPathToPattern = u;
    let o;
    (function(c) {
      function h(d) {
        return pr(d), Wt.path.escapePosixPath(d);
      }
      s(h, "escapePath"), c.escapePath = h;
      function p(d) {
        return pr(d), Wt.path.convertPosixPathToPattern(d);
      }
      s(p, "convertPathToPattern"), c.convertPathToPattern = p;
    })(o = e.posix || (e.posix = {}));
    let l;
    (function(c) {
      function h(d) {
        return pr(d), Wt.path.escapeWindowsPath(d);
      }
      s(h, "escapePath"), c.escapePath = h;
      function p(d) {
        return pr(d), Wt.path.convertWindowsPathToPattern(d);
      }
      s(p, "convertPathToPattern"), c.convertPathToPattern = p;
    })(l = e.win32 || (e.win32 = {}));
  })(Bh || (Bh = {}));
  function Ph(e, t, r) {
    let i = [].concat(e), n = new Th.default(r), a = wx.generate(i, n), u = new t(n);
    return a.map(u.read, u);
  }
  s(Ph, "getWorks");
  function pr(e) {
    if (![].concat(e).every((i) => Wt.string.isString(i) && !Wt.string.isEmpty(i)))
      throw new TypeError("Patterns must be a string (non empty) or an array of strings");
  }
  s(pr, "assertPatternsInput");
  Ax.exports = Bh;
});

// ../node_modules/globby/node_modules/path-type/index.js
import S9, { promises as _9 } from "fs";
async function Oh(e, t, r) {
  if (typeof r != "string")
    throw new TypeError(`Expected a string, got ${typeof r}`);
  try {
    return (await _9[e](r))[t]();
  } catch (i) {
    if (i.code === "ENOENT")
      return !1;
    throw i;
  }
}
function Rh(e, t, r) {
  if (typeof r != "string")
    throw new TypeError(`Expected a string, got ${typeof r}`);
  try {
    return S9[e](r)[t]();
  } catch (i) {
    if (i.code === "ENOENT")
      return !1;
    throw i;
  }
}
var oZ, Fx, lZ, cZ, Sx, hZ, _x = ut(() => {
  s(Oh, "isType");
  s(Rh, "isTypeSync");
  oZ = Oh.bind(null, "stat", "isFile"), Fx = Oh.bind(null, "stat", "isDirectory"), lZ = Oh.bind(null, "lstat", "isSymbolicLink"), cZ = Rh.bind(
  null, "statSync", "isFile"), Sx = Rh.bind(null, "statSync", "isDirectory"), hZ = Rh.bind(null, "lstatSync", "isSymbolicLink");
});

// ../node_modules/globby/node_modules/unicorn-magic/default.js
var kx = ut(() => {
});

// ../node_modules/globby/node_modules/unicorn-magic/node.js
import { fileURLToPath as k9 } from "node:url";
function Ms(e) {
  return e instanceof URL ? k9(e) : e;
}
var Nh = ut(() => {
  kx();
  s(Ms, "toPath");
});

// ../node_modules/ignore/index.js
var Mx = B((EZ, Lx) => {
  function Tx(e) {
    return Array.isArray(e) ? e : [e];
  }
  s(Tx, "makeArray");
  var jh = "", Bx = " ", Lh = "\\", T9 = /^\s+$/, B9 = /(?:[^\\]|^)\\$/, P9 = /^\\!/, I9 = /^\\#/, O9 = /\r?\n/g, R9 = /^\.*\/|^\.+$/, Mh = "\
/", Ox = "node-ignore";
  typeof Symbol < "u" && (Ox = Symbol.for("node-ignore"));
  var Px = Ox, N9 = /* @__PURE__ */ s((e, t, r) => Object.defineProperty(e, t, { value: r }), "define"), L9 = /([0-z])-([0-z])/g, Rx = /* @__PURE__ */ s(
  () => !1, "RETURN_FALSE"), M9 = /* @__PURE__ */ s((e) => e.replace(
    L9,
    (t, r, i) => r.charCodeAt(0) <= i.charCodeAt(0) ? t : jh
  ), "sanitizeRange"), j9 = /* @__PURE__ */ s((e) => {
    let { length: t } = e;
    return e.slice(0, t - t % 2);
  }, "cleanRangeBackSlash"), q9 = [
    [
      // remove BOM
      // TODO:
      // Other similar zero-width characters?
      /^\uFEFF/,
      () => jh
    ],
    // > Trailing spaces are ignored unless they are quoted with backslash ("\")
    [
      // (a\ ) -> (a )
      // (a  ) -> (a)
      // (a ) -> (a)
      // (a \ ) -> (a  )
      /((?:\\\\)*?)(\\?\s+)$/,
      (e, t, r) => t + (r.indexOf("\\") === 0 ? Bx : jh)
    ],
    // replace (\ ) with ' '
    // (\ ) -> ' '
    // (\\ ) -> '\\ '
    // (\\\ ) -> '\\ '
    [
      /(\\+?)\s/g,
      (e, t) => {
        let { length: r } = t;
        return t.slice(0, r - r % 2) + Bx;
      }
    ],
    // Escape metacharacters
    // which is written down by users but means special for regular expressions.
    // > There are 12 characters with special meanings:
    // > - the backslash \,
    // > - the caret ^,
    // > - the dollar sign $,
    // > - the period or dot .,
    // > - the vertical bar or pipe symbol |,
    // > - the question mark ?,
    // > - the asterisk or star *,
    // > - the plus sign +,
    // > - the opening parenthesis (,
    // > - the closing parenthesis ),
    // > - and the opening square bracket [,
    // > - the opening curly brace {,
    // > These special characters are often called "metacharacters".
    [
      /[\\$.|*+(){^]/g,
      (e) => `\\${e}`
    ],
    [
      // > a question mark (?) matches a single character
      /(?!\\)\?/g,
      () => "[^/]"
    ],
    // leading slash
    [
      // > A leading slash matches the beginning of the pathname.
      // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
      // A leading slash matches the beginning of the pathname
      /^\//,
      () => "^"
    ],
    // replace special metacharacter slash after the leading slash
    [
      /\//g,
      () => "\\/"
    ],
    [
      // > A leading "**" followed by a slash means match in all directories.
      // > For example, "**/foo" matches file or directory "foo" anywhere,
      // > the same as pattern "foo".
      // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
      // >   under directory "foo".
      // Notice that the '*'s have been replaced as '\\*'
      /^\^*\\\*\\\*\\\//,
      // '**/foo' <-> 'foo'
      () => "^(?:.*\\/)?"
    ],
    // starting
    [
      // there will be no leading '/'
      //   (which has been replaced by section "leading slash")
      // If starts with '**', adding a '^' to the regular expression also works
      /^(?=[^^])/,
      /* @__PURE__ */ s(function() {
        return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
      }, "startingReplacer")
    ],
    // two globstars
    [
      // Use lookahead assertions so that we could match more than one `'/**'`
      /\\\/\\\*\\\*(?=\\\/|$)/g,
      // Zero, one or several directories
      // should not use '*', or it will be replaced by the next replacer
      // Check if it is not the last `'/**'`
      (e, t, r) => t + 6 < r.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
    ],
    // normal intermediate wildcards
    [
      // Never replace escaped '*'
      // ignore rule '\*' will match the path '*'
      // 'abc.*/' -> go
      // 'abc.*'  -> skip this rule,
      //    coz trailing single wildcard will be handed by [trailing wildcard]
      /(^|[^\\]+)(\\\*)+(?=.+)/g,
      // '*.js' matches '.js'
      // '*.js' doesn't match 'abc'
      (e, t, r) => {
        let i = r.replace(/\\\*/g, "[^\\/]*");
        return t + i;
      }
    ],
    [
      // unescape, revert step 3 except for back slash
      // For example, if a user escape a '\\*',
      // after step 3, the result will be '\\\\\\*'
      /\\\\\\(?=[$.|*+(){^])/g,
      () => Lh
    ],
    [
      // '\\\\' -> '\\'
      /\\\\/g,
      () => Lh
    ],
    [
      // > The range notation, e.g. [a-zA-Z],
      // > can be used to match one of the characters in a range.
      // `\` is escaped by step 3
      /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
      (e, t, r, i, n) => t === Lh ? `\\[${r}${j9(i)}${n}` : n === "]" && i.length % 2 === 0 ? `[${M9(r)}${i}]` : "[]"
    ],
    // ending
    [
      // 'js' will not match 'js.'
      // 'ab' will not match 'abc'
      /(?:[^*])$/,
      // WTF!
      // https://git-scm.com/docs/gitignore
      // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
      // which re-fixes #24, #38
      // > If there is a separator at the end of the pattern then the pattern
      // > will only match directories, otherwise the pattern can match both
      // > files and directories.
      // 'js*' will not match 'a.js'
      // 'js/' will not match 'a.js'
      // 'js' will match 'a.js' and 'a.js/'
      (e) => /\/$/.test(e) ? `${e}$` : `${e}(?=$|\\/$)`
    ],
    // trailing wildcard
    [
      /(\^|\\\/)?\\\*$/,
      (e, t) => `${t ? `${t}[^/]+` : "[^/]*"}(?=$|\\/$)`
    ]
  ], Ix = /* @__PURE__ */ Object.create(null), $9 = /* @__PURE__ */ s((e, t) => {
    let r = Ix[e];
    return r || (r = q9.reduce(
      (i, [n, a]) => i.replace(n, a.bind(e)),
      e
    ), Ix[e] = r), t ? new RegExp(r, "i") : new RegExp(r);
  }, "makeRegex"), Vh = /* @__PURE__ */ s((e) => typeof e == "string", "isString"), V9 = /* @__PURE__ */ s((e) => e && Vh(e) && !T9.test(e) &&
  !B9.test(e) && e.indexOf("#") !== 0, "checkPattern"), U9 = /* @__PURE__ */ s((e) => e.split(O9), "splitPattern"), qh = class {
    static {
      s(this, "IgnoreRule");
    }
    constructor(t, r, i, n) {
      this.origin = t, this.pattern = r, this.negative = i, this.regex = n;
    }
  }, z9 = /* @__PURE__ */ s((e, t) => {
    let r = e, i = !1;
    e.indexOf("!") === 0 && (i = !0, e = e.substr(1)), e = e.replace(P9, "!").replace(I9, "#");
    let n = $9(e, t);
    return new qh(
      r,
      e,
      i,
      n
    );
  }, "createRule"), H9 = /* @__PURE__ */ s((e, t) => {
    throw new t(e);
  }, "throwError"), Yr = /* @__PURE__ */ s((e, t, r) => Vh(e) ? e ? Yr.isNotRelative(e) ? r(
    `path should be a \`path.relative()\`d string, but got "${t}"`,
    RangeError
  ) : !0 : r("path must not be empty", TypeError) : r(
    `path must be a string, but got \`${t}\``,
    TypeError
  ), "checkPath"), Nx = /* @__PURE__ */ s((e) => R9.test(e), "isNotRelative");
  Yr.isNotRelative = Nx;
  Yr.convert = (e) => e;
  var $h = class {
    static {
      s(this, "Ignore");
    }
    constructor({
      ignorecase: t = !0,
      ignoreCase: r = t,
      allowRelativePaths: i = !1
    } = {}) {
      N9(this, Px, !0), this._rules = [], this._ignoreCase = r, this._allowRelativePaths = i, this._initCache();
    }
    _initCache() {
      this._ignoreCache = /* @__PURE__ */ Object.create(null), this._testCache = /* @__PURE__ */ Object.create(null);
    }
    _addPattern(t) {
      if (t && t[Px]) {
        this._rules = this._rules.concat(t._rules), this._added = !0;
        return;
      }
      if (V9(t)) {
        let r = z9(t, this._ignoreCase);
        this._added = !0, this._rules.push(r);
      }
    }
    // @param {Array<string> | string | Ignore} pattern
    add(t) {
      return this._added = !1, Tx(
        Vh(t) ? U9(t) : t
      ).forEach(this._addPattern, this), this._added && this._initCache(), this;
    }
    // legacy
    addPattern(t) {
      return this.add(t);
    }
    //          |           ignored : unignored
    // negative |   0:0   |   0:1   |   1:0   |   1:1
    // -------- | ------- | ------- | ------- | --------
    //     0    |  TEST   |  TEST   |  SKIP   |    X
    //     1    |  TESTIF |  SKIP   |  TEST   |    X
    // - SKIP: always skip
    // - TEST: always test
    // - TESTIF: only test if checkUnignored
    // - X: that never happen
    // @param {boolean} whether should check if the path is unignored,
    //   setting `checkUnignored` to `false` could reduce additional
    //   path matching.
    // @returns {TestResult} true if a file is ignored
    _testOne(t, r) {
      let i = !1, n = !1;
      return this._rules.forEach((a) => {
        let { negative: u } = a;
        if (n === u && i !== n || u && !i && !n && !r)
          return;
        a.regex.test(t) && (i = !u, n = u);
      }), {
        ignored: i,
        unignored: n
      };
    }
    // @returns {TestResult}
    _test(t, r, i, n) {
      let a = t && Yr.convert(t);
      return Yr(
        a,
        t,
        this._allowRelativePaths ? Rx : H9
      ), this._t(a, r, i, n);
    }
    _t(t, r, i, n) {
      if (t in r)
        return r[t];
      if (n || (n = t.split(Mh)), n.pop(), !n.length)
        return r[t] = this._testOne(t, i);
      let a = this._t(
        n.join(Mh) + Mh,
        r,
        i,
        n
      );
      return r[t] = a.ignored ? a : this._testOne(t, i);
    }
    ignores(t) {
      return this._test(t, this._ignoreCache, !1).ignored;
    }
    createFilter() {
      return (t) => !this.ignores(t);
    }
    filter(t) {
      return Tx(t).filter(this.createFilter());
    }
    // @returns {TestResult}
    test(t) {
      return this._test(t, this._testCache, !0);
    }
  }, Au = /* @__PURE__ */ s((e) => new $h(e), "factory"), W9 = /* @__PURE__ */ s((e) => Yr(e && Yr.convert(e), e, Rx), "isPathValid");
  Au.isPathValid = W9;
  Au.default = Au;
  Lx.exports = Au;
  if (
    // Detect `process` so that it can run in browsers.
    typeof process < "u" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
  ) {
    let e = /* @__PURE__ */ s((r) => /^\\\\\?\\/.test(r) || /["<>|\u0000-\u001F]+/u.test(r) ? r : r.replace(/\\/g, "/"), "makePosix");
    Yr.convert = e;
    let t = /^[a-z]:\//i;
    Yr.isNotRelative = (r) => t.test(r) || Nx(r);
  }
});

// ../node_modules/globby/utilities.js
var js, Uh = ut(() => {
  js = /* @__PURE__ */ s((e) => e[0] === "!", "isNegativePattern");
});

// ../node_modules/globby/ignore.js
import J9 from "node:process";
import G9 from "node:fs";
import X9 from "node:fs/promises";
import Tn from "node:path";
var zh, jx, Y9, qx, Fu, K9, Q9, Z9, $x, Vx, Hh, Wh, Ux, zx, Jh = ut(() => {
  zh = pe(Ih(), 1), jx = pe(Mx(), 1);
  Fs();
  Nh();
  Uh();
  Y9 = [
    "**/node_modules",
    "**/flow-typed",
    "**/coverage",
    "**/.git"
  ], qx = {
    absolute: !0,
    dot: !0
  }, Fu = "**/.gitignore", K9 = /* @__PURE__ */ s((e, t) => js(e) ? "!" + Tn.posix.join(t, e.slice(1)) : Tn.posix.join(t, e), "applyBaseToPa\
ttern"), Q9 = /* @__PURE__ */ s((e, t) => {
    let r = rt(Tn.relative(t, Tn.dirname(e.filePath)));
    return e.content.split(/\r?\n/).filter((i) => i && !i.startsWith("#")).map((i) => K9(i, r));
  }, "parseIgnoreFile"), Z9 = /* @__PURE__ */ s((e, t) => {
    if (t = rt(t), Tn.isAbsolute(e)) {
      if (rt(e).startsWith(t))
        return Tn.relative(t, e);
      throw new Error(`Path ${e} is not in cwd ${t}`);
    }
    return e;
  }, "toRelativePath"), $x = /* @__PURE__ */ s((e, t) => {
    let r = e.flatMap((n) => Q9(n, t)), i = (0, jx.default)().add(r);
    return (n) => (n = Ms(n), n = Z9(n, t), n ? i.ignores(rt(n)) : !1);
  }, "getIsIgnoredPredicate"), Vx = /* @__PURE__ */ s((e = {}) => ({
    cwd: Ms(e.cwd) ?? J9.cwd(),
    suppressErrors: !!e.suppressErrors,
    deep: typeof e.deep == "number" ? e.deep : Number.POSITIVE_INFINITY,
    ignore: [...e.ignore ?? [], ...Y9]
  }), "normalizeOptions"), Hh = /* @__PURE__ */ s(async (e, t) => {
    let { cwd: r, suppressErrors: i, deep: n, ignore: a } = Vx(t), u = await (0, zh.default)(e, {
      cwd: r,
      suppressErrors: i,
      deep: n,
      ignore: a,
      ...qx
    }), o = await Promise.all(
      u.map(async (l) => ({
        filePath: l,
        content: await X9.readFile(l, "utf8")
      }))
    );
    return $x(o, r);
  }, "isIgnoredByIgnoreFiles"), Wh = /* @__PURE__ */ s((e, t) => {
    let { cwd: r, suppressErrors: i, deep: n, ignore: a } = Vx(t), o = zh.default.sync(e, {
      cwd: r,
      suppressErrors: i,
      deep: n,
      ignore: a,
      ...qx
    }).map((l) => ({
      filePath: l,
      content: G9.readFileSync(l, "utf8")
    }));
    return $x(o, r);
  }, "isIgnoredByIgnoreFilesSync"), Ux = /* @__PURE__ */ s((e) => Hh(Fu, e), "isGitIgnored"), zx = /* @__PURE__ */ s((e) => Wh(Fu, e), "isGi\
tIgnoredSync");
});

// ../node_modules/globby/index.js
var Yh = {};
di(Yh, {
  convertPathToPattern: () => cO,
  generateGlobTasks: () => oO,
  generateGlobTasksSync: () => lO,
  globby: () => nO,
  globbyStream: () => aO,
  globbySync: () => sO,
  isDynamicPattern: () => uO,
  isGitIgnored: () => Ux,
  isGitIgnoredSync: () => zx
});
import Jx from "node:process";
import eO from "node:fs";
import Bn from "node:path";
var Pn, tO, Gx, Xx, Hx, Wx, Gh, rO, Yx, Kx, Su, Qx, iO, Zx, e1, t1, r1, i1, n1, Xh, nO, sO, aO, uO, oO, lO, cO, Kh = ut(() => {
  M0();
  Pn = pe(Ih(), 1);
  _x();
  Nh();
  Jh();
  Uh();
  Jh();
  tO = /* @__PURE__ */ s((e) => {
    if (e.some((t) => typeof t != "string"))
      throw new TypeError("Patterns must be a string or an array of strings");
  }, "assertPatternsInput"), Gx = /* @__PURE__ */ s((e, t) => {
    let r = js(e) ? e.slice(1) : e;
    return Bn.isAbsolute(r) ? r : Bn.join(t, r);
  }, "normalizePathForDirectoryGlob"), Xx = /* @__PURE__ */ s(({ directoryPath: e, files: t, extensions: r }) => {
    let i = r?.length > 0 ? `.${r.length > 1 ? `{${r.join(",")}}` : r[0]}` : "";
    return t ? t.map((n) => Bn.posix.join(e, `**/${Bn.extname(n) ? n : `${n}${i}`}`)) : [Bn.posix.join(e, `**${i ? `/*${i}` : ""}`)];
  }, "getDirectoryGlob"), Hx = /* @__PURE__ */ s(async (e, {
    cwd: t = Jx.cwd(),
    files: r,
    extensions: i
  } = {}) => (await Promise.all(
    e.map(async (a) => await Fx(Gx(a, t)) ? Xx({ directoryPath: a, files: r, extensions: i }) : a)
  )).flat(), "directoryToGlob"), Wx = /* @__PURE__ */ s((e, {
    cwd: t = Jx.cwd(),
    files: r,
    extensions: i
  } = {}) => e.flatMap((n) => Sx(Gx(n, t)) ? Xx({ directoryPath: n, files: r, extensions: i }) : n), "directoryToGlobSync"), Gh = /* @__PURE__ */ s(
  (e) => (e = [...new Set([e].flat())], tO(e), e), "toPatternsArray"), rO = /* @__PURE__ */ s((e) => {
    if (!e)
      return;
    let t;
    try {
      t = eO.statSync(e);
    } catch {
      return;
    }
    if (!t.isDirectory())
      throw new Error("The `cwd` option must be a path to a directory");
  }, "checkCwdOption"), Yx = /* @__PURE__ */ s((e = {}) => (e = {
    ...e,
    ignore: e.ignore ?? [],
    expandDirectories: e.expandDirectories ?? !0,
    cwd: Ms(e.cwd)
  }, rO(e.cwd), e), "normalizeOptions"), Kx = /* @__PURE__ */ s((e) => async (t, r) => e(Gh(t), Yx(r)), "normalizeArguments"), Su = /* @__PURE__ */ s(
  (e) => (t, r) => e(Gh(t), Yx(r)), "normalizeArgumentsSync"), Qx = /* @__PURE__ */ s((e) => {
    let { ignoreFiles: t, gitignore: r } = e, i = t ? Gh(t) : [];
    return r && i.push(Fu), i;
  }, "getIgnoreFilesPatterns"), iO = /* @__PURE__ */ s(async (e) => {
    let t = Qx(e);
    return e1(
      t.length > 0 && await Hh(t, e)
    );
  }, "getFilter"), Zx = /* @__PURE__ */ s((e) => {
    let t = Qx(e);
    return e1(
      t.length > 0 && Wh(t, e)
    );
  }, "getFilterSync"), e1 = /* @__PURE__ */ s((e) => {
    let t = /* @__PURE__ */ new Set();
    return (r) => {
      let i = Bn.normalize(r.path ?? r);
      return t.has(i) || e && e(i) ? !1 : (t.add(i), !0);
    };
  }, "createFilterFunction"), t1 = /* @__PURE__ */ s((e, t) => e.flat().filter((r) => t(r)), "unionFastGlobResults"), r1 = /* @__PURE__ */ s(
  (e, t) => {
    let r = [];
    for (; e.length > 0; ) {
      let i = e.findIndex((a) => js(a));
      if (i === -1) {
        r.push({ patterns: e, options: t });
        break;
      }
      let n = e[i].slice(1);
      for (let a of r)
        a.options.ignore.push(n);
      i !== 0 && r.push({
        patterns: e.slice(0, i),
        options: {
          ...t,
          ignore: [
            ...t.ignore,
            n
          ]
        }
      }), e = e.slice(i + 1);
    }
    return r;
  }, "convertNegativePatterns"), i1 = /* @__PURE__ */ s((e, t) => ({
    ...t ? { cwd: t } : {},
    ...Array.isArray(e) ? { files: e } : e
  }), "normalizeExpandDirectoriesOption"), n1 = /* @__PURE__ */ s(async (e, t) => {
    let r = r1(e, t), { cwd: i, expandDirectories: n } = t;
    if (!n)
      return r;
    let a = i1(n, i);
    return Promise.all(
      r.map(async (u) => {
        let { patterns: o, options: l } = u;
        return [
          o,
          l.ignore
        ] = await Promise.all([
          Hx(o, a),
          Hx(l.ignore, { cwd: i })
        ]), { patterns: o, options: l };
      })
    );
  }, "generateTasks"), Xh = /* @__PURE__ */ s((e, t) => {
    let r = r1(e, t), { cwd: i, expandDirectories: n } = t;
    if (!n)
      return r;
    let a = i1(n, i);
    return r.map((u) => {
      let { patterns: o, options: l } = u;
      return o = Wx(o, a), l.ignore = Wx(l.ignore, { cwd: i }), { patterns: o, options: l };
    });
  }, "generateTasksSync"), nO = Kx(async (e, t) => {
    let [
      r,
      i
    ] = await Promise.all([
      n1(e, t),
      iO(t)
    ]), n = await Promise.all(r.map((a) => (0, Pn.default)(a.patterns, a.options)));
    return t1(n, i);
  }), sO = Su((e, t) => {
    let r = Xh(e, t), i = Zx(t), n = r.map((a) => Pn.default.sync(a.patterns, a.options));
    return t1(n, i);
  }), aO = Su((e, t) => {
    let r = Xh(e, t), i = Zx(t), n = r.map((u) => Pn.default.stream(u.patterns, u.options));
    return Xl(n).filter((u) => i(u));
  }), uO = Su(
    (e, t) => e.some((r) => Pn.default.isDynamicPattern(r, t))
  ), oO = Kx(n1), lO = Su(Xh), { convertPathToPattern: cO } = Pn.default;
});

// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
function f1(e, t) {
  let r = {}, i = {}, n = -1;
  for (; ++n < e.length; )
    Object.assign(r, e[n].property), Object.assign(i, e[n].normal);
  return new qs(r, i, t);
}
function Zh(e) {
  return e.toLowerCase();
}
function Qi() {
  return 2 ** ++yO;
}
function s1(e, t, r) {
  r && (e[t] = r);
}
function Rn(e) {
  let t = {}, r = {}, i;
  for (i in e.properties)
    if (xO.call(e.properties, i)) {
      let n = e.properties[i], a = new np(
        i,
        e.transform(e.attributes || {}, i),
        n,
        e.space
      );
      e.mustUseProperty && e.mustUseProperty.includes(i) && (a.mustUseProperty = !0), t[i] = a, r[Zh(i)] = i, r[Zh(a.attribute)] = i;
    }
  return new qs(t, r, e.space);
}
function D1(e, t) {
  return t in e ? e[t] : t;
}
function y1(e, t) {
  return D1(e, t.toLowerCase());
}
function wO(e, t) {
  let r = Zh(t), i = t, n = Jt;
  if (r in e.normal)
    return e.property[e.normal[r]];
  if (r.length > 4 && r.slice(0, 4) === "data" && vO.test(t)) {
    if (t.charAt(4) === "-") {
      let a = t.slice(5).replace(a1, FO);
      i = "data" + a.charAt(0).toUpperCase() + a.slice(1);
    } else {
      let a = t.slice(4);
      if (!a1.test(a)) {
        let u = a.replace(CO, AO);
        u.charAt(0) !== "-" && (u = "-" + u), t = "data" + u;
      }
    }
    n = np;
  }
  return new n(i, t);
}
function AO(e) {
  return "-" + e.toLowerCase();
}
function FO(e) {
  return e.charAt(1).toUpperCase();
}
function b1(e) {
  return t;
  function t(r) {
    let i = r && r.position && r.position[e] || {};
    if (typeof i.line == "number" && i.line > 0 && typeof i.column == "number" && i.column > 0)
      return {
        line: i.line,
        column: i.column,
        offset: typeof i.offset == "number" && i.offset > -1 ? i.offset : void 0
      };
  }
}
function op(e) {
  let t = up(e), r = ap(e);
  if (t && r)
    return { start: t, end: r };
}
function kO(e, t) {
  let r = t || {};
  function i(n, ...a) {
    let u = i.invalid, o = i.handlers;
    if (n && u1.call(n, e)) {
      let l = String(n[e]);
      u = u1.call(o, l) ? o[l] : i.unknown;
    }
    if (u)
      return u.call(this, n, ...a);
  }
  return s(i, "one"), i.handlers = r.handlers || {}, i.invalid = r.invalid, i.unknown = r.unknown, i;
}
function TO(e, t) {
  let r = { type: "Block", value: e.value };
  t.inherit(e, r), t.comments.push(r);
  let i = {
    type: "JSXEmptyExpression",
    // @ts-expect-error: `comments` is custom.
    comments: [Object.assign({}, r, { leading: !1, trailing: !0 })]
  };
  t.patch(e, i);
  let n = { type: "JSXExpressionContainer", expression: i };
  return t.patch(e, n), n;
}
function BO(e, t) {
  let r = t || {};
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
    (r.padRight ? " " : "") + "," + (r.padLeft === !1 ? "" : " ")
  ).trim();
}
function Gt(e) {
  return e ? PO.test(String.fromCodePoint(e)) : !1;
}
function Nn(e, t) {
  let i = (t || v1).jsx ? OO : IO;
  return e ? i.test(String.fromCodePoint(e)) : !1;
}
function fr(e, t) {
  return ((t || v1).jsx ? NO : RO).test(e);
}
function LO(e) {
  return e.join(" ").trim();
}
function UO(e, t) {
  let r = t.schema, i = r, n = e.properties || {};
  r.space === "html" && e.tagName.toLowerCase() === "svg" && (i = sp, t.schema = i);
  let a = t.all(e), u = [], o, l, c;
  for (o in n)
    if (ep.call(n, o)) {
      let p = n[o], d = wO(i, o), m;
      if (p == null || p === !1 || typeof p == "number" && Number.isNaN(p) || !p && d.boolean)
        continue;
      if (o = t.elementAttributeNameCase === "react" && d.space ? SO[d.property] || d.property : d.attribute, Array.isArray(p) && (p = d.commaSeparated ?
      BO(p) : LO(p)), o === "style") {
        let g = typeof p == "object" ? p : zO(String(p), e.tagName);
        t.stylePropertyNameCase === "css" && (g = HO(g));
        let D = [], v;
        for (v in g)
          ep.call(g, v) && D.push({
            type: "Property",
            method: !1,
            shorthand: !1,
            computed: !1,
            key: fr(v) ? { type: "Identifier", name: v } : { type: "Literal", value: v },
            value: { type: "Literal", value: String(g[v]) },
            kind: "init"
          });
        c = D, m = {
          type: "JSXExpressionContainer",
          expression: { type: "ObjectExpression", properties: D }
        };
      } else if (p === !0)
        m = null;
      else if (t.tableCellAlignToStyle && VO.has(e.tagName) && o === "align") {
        l = String(p);
        continue;
      } else
        m = { type: "Literal", value: String(p) };
      fr(o, { jsx: !0 }) ? u.push({
        type: "JSXAttribute",
        name: { type: "JSXIdentifier", name: o },
        value: m
      }) : u.push({
        type: "JSXSpreadAttribute",
        argument: {
          type: "ObjectExpression",
          properties: [
            {
              type: "Property",
              method: !1,
              shorthand: !1,
              computed: !1,
              key: { type: "Literal", value: String(o) },
              // @ts-expect-error No need to worry about `style` (which has a
              // `JSXExpressionContainer` value) because that’s a valid identifier.
              value: m || { type: "Literal", value: !0 },
              kind: "init"
            }
          ]
        }
      });
    }
  if (l !== void 0) {
    c || (c = [], u.push({
      type: "JSXAttribute",
      name: { type: "JSXIdentifier", name: "style" },
      value: {
        type: "JSXExpressionContainer",
        expression: { type: "ObjectExpression", properties: c }
      }
    }));
    let p = t.stylePropertyNameCase === "css" ? C1("textAlign") : "textAlign";
    c.push({
      type: "Property",
      method: !1,
      shorthand: !1,
      computed: !1,
      key: fr(p) ? { type: "Identifier", name: p } : { type: "Literal", value: p },
      value: { type: "Literal", value: l },
      kind: "init"
    });
  }
  t.schema = r;
  let h = {
    type: "JSXElement",
    openingElement: {
      type: "JSXOpeningElement",
      attributes: u,
      name: t.createJsxElementName(e.tagName),
      selfClosing: a.length === 0
    },
    closingElement: a.length > 0 ? {
      type: "JSXClosingElement",
      name: t.createJsxElementName(e.tagName)
    } : null,
    children: a
  };
  return t.inherit(e, h), h;
}
function zO(e, t) {
  let r = {};
  try {
    jO(e, i);
  } catch (n) {
    let a = (
      /** @type {Error} */
      n
    );
    throw new Error(
      "Could not parse `style` attribute on `" + t + "`",
      { cause: a }
    );
  }
  return r;
  function i(n, a) {
    let u = n;
    u.slice(0, 2) !== "--" && (u.slice(0, 4) === "-ms-" && (u = "ms-" + u.slice(4)), u = u.replace($O, WO)), r[u] = a;
  }
}
function HO(e) {
  let t = {}, r;
  for (r in e)
    ep.call(e, r) && (t[C1(r)] = e[r]);
  return t;
}
function C1(e) {
  let t = e.replace(qO, JO);
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
}
function WO(e, t) {
  return t.toUpperCase();
}
function JO(e) {
  return "-" + e.toLowerCase();
}
function ku(e, t) {
  let r = t ? [...t].sort(lp) : XO;
  r.length > 0 && w1(e, { comments: r, index: 0 });
}
function w1(e, t) {
  if (t.index === t.comments.length)
    return;
  let r = [], i = [], n;
  for (n in e)
    if (GO.call(e, n)) {
      let u = e[n];
      if (u && typeof u == "object" && n !== "comments")
        if (Array.isArray(u)) {
          let o = -1;
          for (; ++o < u.length; )
            u[o] && typeof u[o].type == "string" && r.push(u[o]);
        } else typeof u.type == "string" && r.push(u);
    }
  r.sort(lp), i.push(...o1(t, e, !1, { leading: !0, trailing: !1 }));
  let a = -1;
  for (; ++a < r.length; )
    w1(r[a], t);
  i.push(
    ...o1(t, e, !0, {
      leading: !1,
      trailing: r.length > 0
    })
  ), i.length > 0 && (e.comments = i);
}
function o1(e, t, r, i) {
  let n = [];
  for (; e.comments[e.index] && lp(e.comments[e.index], t, r) < 1; )
    n.push(Object.assign({}, e.comments[e.index++], i));
  return n;
}
function lp(e, t, r) {
  let i = r ? "end" : "start";
  return e.range && t.range ? e.range[0] - t.range[r ? 1 : 0] : e.loc && e.loc.start && t.loc && t.loc[i] ? e.loc.start.line - t.loc[i].line ||
  e.loc.start.column - t.loc[i].column : "start" in e && i in t ? e.start - t[i] : Number.NaN;
}
function l1(e, t) {
  let r = e.data && e.data.estree, i = r && r.comments || [], n;
  r && (t.comments.push(...i), ku(r, r.comments), n = r.body[0] && r.body[0].type === "ExpressionStatement" && r.body[0].expression || void 0),
  n || (n = { type: "JSXEmptyExpression" }, t.patch(e, n));
  let a = { type: "JSXExpressionContainer", expression: n };
  return t.inherit(e, a), a;
}
function c1(e, t) {
  let r = t.schema, i = r, n = e.attributes || [], a = -1;
  e.name && r.space === "html" && e.name.toLowerCase() === "svg" && (i = sp, t.schema = i);
  let u = t.all(e), o = [];
  for (; ++a < n.length; ) {
    let c = n[a], h = c.value, p;
    if (c.type === "mdxJsxAttribute") {
      if (h == null)
        p = null;
      else if (typeof h == "object") {
        let m = h.data && h.data.estree, g = m && m.comments || [], D;
        m && (t.comments.push(...g), ku(m, m.comments), D = m.body[0] && m.body[0].type === "ExpressionStatement" && m.body[0].expression ||
        void 0), p = {
          type: "JSXExpressionContainer",
          expression: D || { type: "JSXEmptyExpression" }
        }, t.inherit(h, p);
      } else
        p = { type: "Literal", value: String(h) };
      let d = {
        type: "JSXAttribute",
        name: t.createJsxAttributeName(c.name),
        value: p
      };
      t.inherit(c, d), o.push(d);
    } else {
      let d = c.data && c.data.estree, m = d && d.comments || [], g;
      d && (t.comments.push(...m), ku(d, d.comments), g = d.body[0] && d.body[0].type === "ExpressionStatement" && d.body[0].expression && d.
      body[0].expression.type === "ObjectExpression" && d.body[0].expression.properties && d.body[0].expression.properties[0] && d.body[0].expression.
      properties[0].type === "SpreadElement" && d.body[0].expression.properties[0].argument || void 0);
      let D = {
        type: "JSXSpreadAttribute",
        argument: g || { type: "ObjectExpression", properties: [] }
      };
      t.inherit(c, D), o.push(D);
    }
  }
  t.schema = r;
  let l = e.name ? {
    type: "JSXElement",
    openingElement: {
      type: "JSXOpeningElement",
      attributes: o,
      name: t.createJsxElementName(e.name),
      selfClosing: u.length === 0
    },
    closingElement: u.length > 0 ? {
      type: "JSXClosingElement",
      name: t.createJsxElementName(e.name)
    } : null,
    children: u
  } : {
    type: "JSXFragment",
    openingFragment: { type: "JSXOpeningFragment" },
    closingFragment: { type: "JSXClosingFragment" },
    children: u
  };
  return t.inherit(e, l), l;
}
function YO(e, t) {
  let r = e.data && e.data.estree, i = r && r.comments || [];
  r && (t.comments.push(...i), ku(r, i), t.esm.push(...r.body));
}
function QO(e) {
  return typeof e == "object" ? e.type === "text" ? h1(e.value) : !1 : h1(e);
}
function h1(e) {
  return e.replace(KO, "") === "";
}
function ZO(e, t) {
  let r = t.all(e), i = [], n = -1, a;
  for (; ++n < r.length; ) {
    let o = r[n];
    o.type === "JSXExpressionContainer" && o.expression.type === "Literal" && QO(String(o.expression.value)) ? a && a.push(o) : (a && i.push(
    ...a), i.push(o), a = []);
  }
  let u = {
    type: "JSXFragment",
    openingFragment: { type: "JSXOpeningFragment" },
    closingFragment: { type: "JSXClosingFragment" },
    children: i
  };
  return t.inherit(e, u), u;
}
function e4(e, t) {
  let r = String(e.value || "");
  if (r) {
    let i = { type: "Literal", value: r };
    t.inherit(e, i);
    let n = { type: "JSXExpressionContainer", expression: i };
    return t.patch(e, n), n;
  }
}
function r4() {
}
function s4(e) {
  let t = kO("type", {
    invalid: a4,
    unknown: u4,
    handlers: { ...t4, ...e.handlers }
  });
  return {
    // Current space.
    elementAttributeNameCase: e.elementAttributeNameCase || "react",
    schema: e.space === "svg" ? sp : _O,
    stylePropertyNameCase: e.stylePropertyNameCase || "dom",
    tableCellAlignToStyle: e.tableCellAlignToStyle !== !1,
    // Results.
    comments: [],
    esm: [],
    // Useful functions.
    all: o4,
    createJsxAttributeName: c4,
    createJsxElementName: h4,
    handle: r,
    inherit: l4,
    patch: A1
  };
  function r(i) {
    return t(i, this);
  }
}
function a4(e) {
  throw new Error("Cannot handle value `" + e + "`, expected node");
}
function u4(e) {
  throw "type" in e, new Error("Cannot handle unknown node `" + e.type + "`");
}
function o4(e) {
  let t = e.children || [], r = -1, i = [], n = this.schema.space === "html" && e.type === "element" && n4.has(e.tagName.toLowerCase());
  for (; ++r < t.length; ) {
    let a = t[r];
    if (n && a.type === "text" && a.value === `
`)
      continue;
    let u = this.handle(a);
    Array.isArray(u) ? i.push(...u) : u && i.push(u);
  }
  return i;
}
function l4(e, t) {
  let r = (
    /** @type {Record<string, unknown> | undefined} */
    e.data
  ), i, n;
  if (A1(e, t), r) {
    for (n in r)
      i4.call(r, n) && n !== "estree" && (i || (i = {}), i[n] = r[n]);
    i && (t.data = i);
  }
}
function A1(e, t) {
  let r = op(e);
  r && r.start.offset !== void 0 && r.end.offset !== void 0 && (t.start = r.start.offset, t.end = r.end.offset, t.loc = {
    start: { line: r.start.line, column: r.start.column - 1 },
    end: { line: r.end.line, column: r.end.column - 1 }
  }, t.range = [r.start.offset, r.end.offset]);
}
function c4(e) {
  let t = F1(e);
  if (t.type === "JSXMemberExpression")
    throw new Error("Member expressions in attribute names are not supported");
  return t;
}
function h4(e) {
  return F1(e);
}
function F1(e) {
  if (e.includes(".")) {
    let t = e.split("."), r = t.shift();
    let i = { type: "JSXIdentifier", name: r };
    for (; r = t.shift(); )
      i = {
        type: "JSXMemberExpression",
        object: i,
        property: { type: "JSXIdentifier", name: r }
      };
    return i;
  }
  if (e.includes(":")) {
    let t = e.split(":");
    return {
      type: "JSXNamespacedName",
      namespace: { type: "JSXIdentifier", name: t[0] },
      name: { type: "JSXIdentifier", name: t[1] }
    };
  }
  return { type: "JSXIdentifier", name: e };
}
function Bu(e, t) {
  let r = s4(t || {}), i = r.handle(e), n = r.esm;
  if (i) {
    i.type !== "JSXFragment" && i.type !== "JSXElement" && (i = {
      type: "JSXFragment",
      openingFragment: { type: "JSXOpeningFragment" },
      closingFragment: { type: "JSXClosingFragment" },
      children: [i]
    }, r.patch(e, i));
    let u = { type: "ExpressionStatement", expression: i };
    r.patch(e, u), n.push(u);
  }
  let a = {
    type: "Program",
    body: n,
    sourceType: "module",
    comments: r.comments
  };
  return r.patch(e, a), a;
}
var hO, tp, pO, p1, fO, dO, rp, On, ip, mO, Tu, gO, DO, qs, Jt, _u, yO, ge, et, d1, Z, Ne, In, Nt, Qh, np, xO, m1, g1, x1, E1, EO, bO, vO, a1,
CO, SO, _O, sp, ap, up, u1, PO, IO, OO, RO, NO, v1, MO, jO, ep, qO, $O, VO, GO, XO, KO, t4, i4, n4, cp = ut(() => {
  hO = Object.create, tp = Object.defineProperty, pO = Object.getOwnPropertyDescriptor, p1 = Object.getOwnPropertyNames, fO = Object.getPrototypeOf,
  dO = Object.prototype.hasOwnProperty, rp = /* @__PURE__ */ ((e) => typeof H < "u" ? H : typeof Proxy < "u" ? new Proxy(e, {
    get: /* @__PURE__ */ s((t, r) => (typeof H < "u" ? H : t)[r], "get")
  }) : e)(function(e) {
    if (typeof H < "u")
      return H.apply(this, arguments);
    throw new Error('Dynamic require of "' + e + '" is not supported');
  }), On = /* @__PURE__ */ s((e, t) => /* @__PURE__ */ s(function() {
    return t || (0, e[p1(e)[0]])((t = { exports: {} }).exports, t), t.exports;
  }, "__require2"), "__commonJS"), ip = /* @__PURE__ */ s((e, t) => {
    for (var r in t)
      tp(e, r, { get: t[r], enumerable: !0 });
  }, "__export"), mO = /* @__PURE__ */ s((e, t, r, i) => {
    if (t && typeof t == "object" || typeof t == "function")
      for (let n of p1(t))
        !dO.call(e, n) && n !== r && tp(e, n, { get: /* @__PURE__ */ s(() => t[n], "get"), enumerable: !(i = pO(t, n)) || i.enumerable });
    return e;
  }, "__copyProps"), Tu = /* @__PURE__ */ s((e, t, r) => (r = e != null ? hO(fO(e)) : {}, mO(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    t || !e || !e.__esModule ? tp(r, "default", { value: e, enumerable: !0 }) : r,
    e
  )), "__toESM"), gO = On({
    "node_modules/inline-style-parser/index.js"(e, t) {
      var r = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, i = /\n/g, n = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,
      l = /^[;\s]*/, c = /^\s+|\s+$/g, h = `
`, p = "/", d = "*", m = "", g = "comment", D = "declaration";
      t.exports = function(y, C) {
        if (typeof y != "string")
          throw new TypeError("First argument must be a string");
        if (!y)
          return [];
        C = C || {};
        var S = 1, T = 1;
        function j(N) {
          var z = N.match(i);
          z && (S += z.length);
          var Q = N.lastIndexOf(h);
          T = ~Q ? N.length - Q : T + N.length;
        }
        s(j, "updatePosition");
        function w() {
          var N = { line: S, column: T };
          return function(z) {
            return z.position = new A(N), M(), z;
          };
        }
        s(w, "position2");
        function A(N) {
          this.start = N, this.end = { line: S, column: T }, this.source = C.source;
        }
        s(A, "Position"), A.prototype.content = y;
        var P = [];
        function k(N) {
          var z = new Error(
            C.source + ":" + S + ":" + T + ": " + N
          );
          if (z.reason = N, z.filename = C.source, z.line = S, z.column = T, z.source = y, C.silent)
            P.push(z);
          else
            throw z;
        }
        s(k, "error");
        function $(N) {
          var z = N.exec(y);
          if (z) {
            var Q = z[0];
            return j(Q), y = y.slice(Q.length), z;
          }
        }
        s($, "match");
        function M() {
          $(n);
        }
        s(M, "whitespace2");
        function V(N) {
          var z;
          for (N = N || []; z = U(); )
            z !== !1 && N.push(z);
          return N;
        }
        s(V, "comments");
        function U() {
          var N = w();
          if (!(p != y.charAt(0) || d != y.charAt(1))) {
            for (var z = 2; m != y.charAt(z) && (d != y.charAt(z) || p != y.charAt(z + 1)); )
              ++z;
            if (z += 2, m === y.charAt(z - 1))
              return k("End of comment missing");
            var Q = y.slice(2, z - 2);
            return T += 2, j(Q), y = y.slice(z), T += 2, N({
              type: g,
              comment: Q
            });
          }
        }
        s(U, "comment2");
        function G() {
          var N = w(), z = $(a);
          if (z) {
            if (U(), !$(u))
              return k("property missing ':'");
            var Q = $(o), te = N({
              type: D,
              property: v(z[0].replace(r, m)),
              value: Q ? v(Q[0].replace(r, m)) : m
            });
            return $(l), te;
          }
        }
        s(G, "declaration");
        function R() {
          var N = [];
          V(N);
          for (var z; z = G(); )
            z !== !1 && (N.push(z), V(N));
          return N;
        }
        return s(R, "declarations"), M(), R();
      };
      function v(y) {
        return y ? y.replace(c, m) : m;
      }
      s(v, "trim");
    }
  }), DO = On({
    "node_modules/style-to-object/index.js"(e, t) {
      var r = gO();
      function i(n, a) {
        var u = null;
        if (!n || typeof n != "string")
          return u;
        for (var o, l = r(n), c = typeof a == "function", h, p, d = 0, m = l.length; d < m; d++)
          o = l[d], h = o.property, p = o.value, c ? a(h, p, o) : p && (u || (u = {}), u[h] = p);
        return u;
      }
      s(i, "StyleToObject2"), t.exports = i, t.exports.default = i;
    }
  }), qs = class {
    static {
      s(this, "Schema");
    }
    /**
     * @constructor
     * @param {Properties} property
     * @param {Normal} normal
     * @param {string} [space]
     */
    constructor(e, t, r) {
      this.property = e, this.normal = t, r && (this.space = r);
    }
  };
  qs.prototype.property = {};
  qs.prototype.normal = {};
  qs.prototype.space = null;
  s(f1, "merge");
  s(Zh, "normalize");
  Jt = class {
    static {
      s(this, "Info");
    }
    /**
     * @constructor
     * @param {string} property
     * @param {string} attribute
     */
    constructor(e, t) {
      this.property = e, this.attribute = t;
    }
  };
  Jt.prototype.space = null;
  Jt.prototype.boolean = !1;
  Jt.prototype.booleanish = !1;
  Jt.prototype.overloadedBoolean = !1;
  Jt.prototype.number = !1;
  Jt.prototype.commaSeparated = !1;
  Jt.prototype.spaceSeparated = !1;
  Jt.prototype.commaOrSpaceSeparated = !1;
  Jt.prototype.mustUseProperty = !1;
  Jt.prototype.defined = !1;
  _u = {};
  ip(_u, {
    boolean: /* @__PURE__ */ s(() => ge, "boolean"),
    booleanish: /* @__PURE__ */ s(() => et, "booleanish"),
    commaOrSpaceSeparated: /* @__PURE__ */ s(() => Nt, "commaOrSpaceSeparated"),
    commaSeparated: /* @__PURE__ */ s(() => In, "commaSeparated"),
    number: /* @__PURE__ */ s(() => Z, "number"),
    overloadedBoolean: /* @__PURE__ */ s(() => d1, "overloadedBoolean"),
    spaceSeparated: /* @__PURE__ */ s(() => Ne, "spaceSeparated")
  });
  yO = 0, ge = Qi(), et = Qi(), d1 = Qi(), Z = Qi(), Ne = Qi(), In = Qi(), Nt = Qi();
  s(Qi, "increment");
  Qh = Object.keys(_u), np = class extends Jt {
    static {
      s(this, "DefinedInfo");
    }
    /**
     * @constructor
     * @param {string} property
     * @param {string} attribute
     * @param {number|null} [mask]
     * @param {string} [space]
     */
    constructor(e, t, r, i) {
      let n = -1;
      if (super(e, t), s1(this, "space", i), typeof r == "number")
        for (; ++n < Qh.length; ) {
          let a = Qh[n];
          s1(this, Qh[n], (r & _u[a]) === _u[a]);
        }
    }
  };
  np.prototype.defined = !0;
  s(s1, "mark");
  xO = {}.hasOwnProperty;
  s(Rn, "create");
  m1 = Rn({
    space: "xlink",
    transform(e, t) {
      return "xlink:" + t.slice(5).toLowerCase();
    },
    properties: {
      xLinkActuate: null,
      xLinkArcRole: null,
      xLinkHref: null,
      xLinkRole: null,
      xLinkShow: null,
      xLinkTitle: null,
      xLinkType: null
    }
  }), g1 = Rn({
    space: "xml",
    transform(e, t) {
      return "xml:" + t.slice(3).toLowerCase();
    },
    properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
  });
  s(D1, "caseSensitiveTransform");
  s(y1, "caseInsensitiveTransform");
  x1 = Rn({
    space: "xmlns",
    attributes: { xmlnsxlink: "xmlns:xlink" },
    transform: y1,
    properties: { xmlns: null, xmlnsXLink: null }
  }), E1 = Rn({
    transform(e, t) {
      return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
    },
    properties: {
      ariaActiveDescendant: null,
      ariaAtomic: et,
      ariaAutoComplete: null,
      ariaBusy: et,
      ariaChecked: et,
      ariaColCount: Z,
      ariaColIndex: Z,
      ariaColSpan: Z,
      ariaControls: Ne,
      ariaCurrent: null,
      ariaDescribedBy: Ne,
      ariaDetails: null,
      ariaDisabled: et,
      ariaDropEffect: Ne,
      ariaErrorMessage: null,
      ariaExpanded: et,
      ariaFlowTo: Ne,
      ariaGrabbed: et,
      ariaHasPopup: null,
      ariaHidden: et,
      ariaInvalid: null,
      ariaKeyShortcuts: null,
      ariaLabel: null,
      ariaLabelledBy: Ne,
      ariaLevel: Z,
      ariaLive: null,
      ariaModal: et,
      ariaMultiLine: et,
      ariaMultiSelectable: et,
      ariaOrientation: null,
      ariaOwns: Ne,
      ariaPlaceholder: null,
      ariaPosInSet: Z,
      ariaPressed: et,
      ariaReadOnly: et,
      ariaRelevant: null,
      ariaRequired: et,
      ariaRoleDescription: Ne,
      ariaRowCount: Z,
      ariaRowIndex: Z,
      ariaRowSpan: Z,
      ariaSelected: et,
      ariaSetSize: Z,
      ariaSort: null,
      ariaValueMax: Z,
      ariaValueMin: Z,
      ariaValueNow: Z,
      ariaValueText: null,
      role: null
    }
  }), EO = Rn({
    space: "html",
    attributes: {
      acceptcharset: "accept-charset",
      classname: "class",
      htmlfor: "for",
      httpequiv: "http-equiv"
    },
    transform: y1,
    mustUseProperty: ["checked", "multiple", "muted", "selected"],
    properties: {
      // Standard Properties.
      abbr: null,
      accept: In,
      acceptCharset: Ne,
      accessKey: Ne,
      action: null,
      allow: null,
      allowFullScreen: ge,
      allowPaymentRequest: ge,
      allowUserMedia: ge,
      alt: null,
      as: null,
      async: ge,
      autoCapitalize: null,
      autoComplete: Ne,
      autoFocus: ge,
      autoPlay: ge,
      blocking: Ne,
      capture: ge,
      charSet: null,
      checked: ge,
      cite: null,
      className: Ne,
      cols: Z,
      colSpan: null,
      content: null,
      contentEditable: et,
      controls: ge,
      controlsList: Ne,
      coords: Z | In,
      crossOrigin: null,
      data: null,
      dateTime: null,
      decoding: null,
      default: ge,
      defer: ge,
      dir: null,
      dirName: null,
      disabled: ge,
      download: d1,
      draggable: et,
      encType: null,
      enterKeyHint: null,
      fetchPriority: null,
      form: null,
      formAction: null,
      formEncType: null,
      formMethod: null,
      formNoValidate: ge,
      formTarget: null,
      headers: Ne,
      height: Z,
      hidden: ge,
      high: Z,
      href: null,
      hrefLang: null,
      htmlFor: Ne,
      httpEquiv: Ne,
      id: null,
      imageSizes: null,
      imageSrcSet: null,
      inert: ge,
      inputMode: null,
      integrity: null,
      is: null,
      isMap: ge,
      itemId: null,
      itemProp: Ne,
      itemRef: Ne,
      itemScope: ge,
      itemType: Ne,
      kind: null,
      label: null,
      lang: null,
      language: null,
      list: null,
      loading: null,
      loop: ge,
      low: Z,
      manifest: null,
      max: null,
      maxLength: Z,
      media: null,
      method: null,
      min: null,
      minLength: Z,
      multiple: ge,
      muted: ge,
      name: null,
      nonce: null,
      noModule: ge,
      noValidate: ge,
      onAbort: null,
      onAfterPrint: null,
      onAuxClick: null,
      onBeforeMatch: null,
      onBeforePrint: null,
      onBeforeToggle: null,
      onBeforeUnload: null,
      onBlur: null,
      onCancel: null,
      onCanPlay: null,
      onCanPlayThrough: null,
      onChange: null,
      onClick: null,
      onClose: null,
      onContextLost: null,
      onContextMenu: null,
      onContextRestored: null,
      onCopy: null,
      onCueChange: null,
      onCut: null,
      onDblClick: null,
      onDrag: null,
      onDragEnd: null,
      onDragEnter: null,
      onDragExit: null,
      onDragLeave: null,
      onDragOver: null,
      onDragStart: null,
      onDrop: null,
      onDurationChange: null,
      onEmptied: null,
      onEnded: null,
      onError: null,
      onFocus: null,
      onFormData: null,
      onHashChange: null,
      onInput: null,
      onInvalid: null,
      onKeyDown: null,
      onKeyPress: null,
      onKeyUp: null,
      onLanguageChange: null,
      onLoad: null,
      onLoadedData: null,
      onLoadedMetadata: null,
      onLoadEnd: null,
      onLoadStart: null,
      onMessage: null,
      onMessageError: null,
      onMouseDown: null,
      onMouseEnter: null,
      onMouseLeave: null,
      onMouseMove: null,
      onMouseOut: null,
      onMouseOver: null,
      onMouseUp: null,
      onOffline: null,
      onOnline: null,
      onPageHide: null,
      onPageShow: null,
      onPaste: null,
      onPause: null,
      onPlay: null,
      onPlaying: null,
      onPopState: null,
      onProgress: null,
      onRateChange: null,
      onRejectionHandled: null,
      onReset: null,
      onResize: null,
      onScroll: null,
      onScrollEnd: null,
      onSecurityPolicyViolation: null,
      onSeeked: null,
      onSeeking: null,
      onSelect: null,
      onSlotChange: null,
      onStalled: null,
      onStorage: null,
      onSubmit: null,
      onSuspend: null,
      onTimeUpdate: null,
      onToggle: null,
      onUnhandledRejection: null,
      onUnload: null,
      onVolumeChange: null,
      onWaiting: null,
      onWheel: null,
      open: ge,
      optimum: Z,
      pattern: null,
      ping: Ne,
      placeholder: null,
      playsInline: ge,
      popover: null,
      popoverTarget: null,
      popoverTargetAction: null,
      poster: null,
      preload: null,
      readOnly: ge,
      referrerPolicy: null,
      rel: Ne,
      required: ge,
      reversed: ge,
      rows: Z,
      rowSpan: Z,
      sandbox: Ne,
      scope: null,
      scoped: ge,
      seamless: ge,
      selected: ge,
      shadowRootDelegatesFocus: ge,
      shadowRootMode: null,
      shape: null,
      size: Z,
      sizes: null,
      slot: null,
      span: Z,
      spellCheck: et,
      src: null,
      srcDoc: null,
      srcLang: null,
      srcSet: null,
      start: Z,
      step: null,
      style: null,
      tabIndex: Z,
      target: null,
      title: null,
      translate: null,
      type: null,
      typeMustMatch: ge,
      useMap: null,
      value: et,
      width: Z,
      wrap: null,
      // Legacy.
      // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
      align: null,
      // Several. Use CSS `text-align` instead,
      aLink: null,
      // `<body>`. Use CSS `a:active {color}` instead
      archive: Ne,
      // `<object>`. List of URIs to archives
      axis: null,
      // `<td>` and `<th>`. Use `scope` on `<th>`
      background: null,
      // `<body>`. Use CSS `background-image` instead
      bgColor: null,
      // `<body>` and table elements. Use CSS `background-color` instead
      border: Z,
      // `<table>`. Use CSS `border-width` instead,
      borderColor: null,
      // `<table>`. Use CSS `border-color` instead,
      bottomMargin: Z,
      // `<body>`
      cellPadding: null,
      // `<table>`
      cellSpacing: null,
      // `<table>`
      char: null,
      // Several table elements. When `align=char`, sets the character to align on
      charOff: null,
      // Several table elements. When `char`, offsets the alignment
      classId: null,
      // `<object>`
      clear: null,
      // `<br>`. Use CSS `clear` instead
      code: null,
      // `<object>`
      codeBase: null,
      // `<object>`
      codeType: null,
      // `<object>`
      color: null,
      // `<font>` and `<hr>`. Use CSS instead
      compact: ge,
      // Lists. Use CSS to reduce space between items instead
      declare: ge,
      // `<object>`
      event: null,
      // `<script>`
      face: null,
      // `<font>`. Use CSS instead
      frame: null,
      // `<table>`
      frameBorder: null,
      // `<iframe>`. Use CSS `border` instead
      hSpace: Z,
      // `<img>` and `<object>`
      leftMargin: Z,
      // `<body>`
      link: null,
      // `<body>`. Use CSS `a:link {color: *}` instead
      longDesc: null,
      // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
      lowSrc: null,
      // `<img>`. Use a `<picture>`
      marginHeight: Z,
      // `<body>`
      marginWidth: Z,
      // `<body>`
      noResize: ge,
      // `<frame>`
      noHref: ge,
      // `<area>`. Use no href instead of an explicit `nohref`
      noShade: ge,
      // `<hr>`. Use background-color and height instead of borders
      noWrap: ge,
      // `<td>` and `<th>`
      object: null,
      // `<applet>`
      profile: null,
      // `<head>`
      prompt: null,
      // `<isindex>`
      rev: null,
      // `<link>`
      rightMargin: Z,
      // `<body>`
      rules: null,
      // `<table>`
      scheme: null,
      // `<meta>`
      scrolling: et,
      // `<frame>`. Use overflow in the child context
      standby: null,
      // `<object>`
      summary: null,
      // `<table>`
      text: null,
      // `<body>`. Use CSS `color` instead
      topMargin: Z,
      // `<body>`
      valueType: null,
      // `<param>`
      version: null,
      // `<html>`. Use a doctype.
      vAlign: null,
      // Several. Use CSS `vertical-align` instead
      vLink: null,
      // `<body>`. Use CSS `a:visited {color}` instead
      vSpace: Z,
      // `<img>` and `<object>`
      // Non-standard Properties.
      allowTransparency: null,
      autoCorrect: null,
      autoSave: null,
      disablePictureInPicture: ge,
      disableRemotePlayback: ge,
      prefix: null,
      property: null,
      results: Z,
      security: null,
      unselectable: null
    }
  }), bO = Rn({
    space: "svg",
    attributes: {
      accentHeight: "accent-height",
      alignmentBaseline: "alignment-baseline",
      arabicForm: "arabic-form",
      baselineShift: "baseline-shift",
      capHeight: "cap-height",
      className: "class",
      clipPath: "clip-path",
      clipRule: "clip-rule",
      colorInterpolation: "color-interpolation",
      colorInterpolationFilters: "color-interpolation-filters",
      colorProfile: "color-profile",
      colorRendering: "color-rendering",
      crossOrigin: "crossorigin",
      dataType: "datatype",
      dominantBaseline: "dominant-baseline",
      enableBackground: "enable-background",
      fillOpacity: "fill-opacity",
      fillRule: "fill-rule",
      floodColor: "flood-color",
      floodOpacity: "flood-opacity",
      fontFamily: "font-family",
      fontSize: "font-size",
      fontSizeAdjust: "font-size-adjust",
      fontStretch: "font-stretch",
      fontStyle: "font-style",
      fontVariant: "font-variant",
      fontWeight: "font-weight",
      glyphName: "glyph-name",
      glyphOrientationHorizontal: "glyph-orientation-horizontal",
      glyphOrientationVertical: "glyph-orientation-vertical",
      hrefLang: "hreflang",
      horizAdvX: "horiz-adv-x",
      horizOriginX: "horiz-origin-x",
      horizOriginY: "horiz-origin-y",
      imageRendering: "image-rendering",
      letterSpacing: "letter-spacing",
      lightingColor: "lighting-color",
      markerEnd: "marker-end",
      markerMid: "marker-mid",
      markerStart: "marker-start",
      navDown: "nav-down",
      navDownLeft: "nav-down-left",
      navDownRight: "nav-down-right",
      navLeft: "nav-left",
      navNext: "nav-next",
      navPrev: "nav-prev",
      navRight: "nav-right",
      navUp: "nav-up",
      navUpLeft: "nav-up-left",
      navUpRight: "nav-up-right",
      onAbort: "onabort",
      onActivate: "onactivate",
      onAfterPrint: "onafterprint",
      onBeforePrint: "onbeforeprint",
      onBegin: "onbegin",
      onCancel: "oncancel",
      onCanPlay: "oncanplay",
      onCanPlayThrough: "oncanplaythrough",
      onChange: "onchange",
      onClick: "onclick",
      onClose: "onclose",
      onCopy: "oncopy",
      onCueChange: "oncuechange",
      onCut: "oncut",
      onDblClick: "ondblclick",
      onDrag: "ondrag",
      onDragEnd: "ondragend",
      onDragEnter: "ondragenter",
      onDragExit: "ondragexit",
      onDragLeave: "ondragleave",
      onDragOver: "ondragover",
      onDragStart: "ondragstart",
      onDrop: "ondrop",
      onDurationChange: "ondurationchange",
      onEmptied: "onemptied",
      onEnd: "onend",
      onEnded: "onended",
      onError: "onerror",
      onFocus: "onfocus",
      onFocusIn: "onfocusin",
      onFocusOut: "onfocusout",
      onHashChange: "onhashchange",
      onInput: "oninput",
      onInvalid: "oninvalid",
      onKeyDown: "onkeydown",
      onKeyPress: "onkeypress",
      onKeyUp: "onkeyup",
      onLoad: "onload",
      onLoadedData: "onloadeddata",
      onLoadedMetadata: "onloadedmetadata",
      onLoadStart: "onloadstart",
      onMessage: "onmessage",
      onMouseDown: "onmousedown",
      onMouseEnter: "onmouseenter",
      onMouseLeave: "onmouseleave",
      onMouseMove: "onmousemove",
      onMouseOut: "onmouseout",
      onMouseOver: "onmouseover",
      onMouseUp: "onmouseup",
      onMouseWheel: "onmousewheel",
      onOffline: "onoffline",
      onOnline: "ononline",
      onPageHide: "onpagehide",
      onPageShow: "onpageshow",
      onPaste: "onpaste",
      onPause: "onpause",
      onPlay: "onplay",
      onPlaying: "onplaying",
      onPopState: "onpopstate",
      onProgress: "onprogress",
      onRateChange: "onratechange",
      onRepeat: "onrepeat",
      onReset: "onreset",
      onResize: "onresize",
      onScroll: "onscroll",
      onSeeked: "onseeked",
      onSeeking: "onseeking",
      onSelect: "onselect",
      onShow: "onshow",
      onStalled: "onstalled",
      onStorage: "onstorage",
      onSubmit: "onsubmit",
      onSuspend: "onsuspend",
      onTimeUpdate: "ontimeupdate",
      onToggle: "ontoggle",
      onUnload: "onunload",
      onVolumeChange: "onvolumechange",
      onWaiting: "onwaiting",
      onZoom: "onzoom",
      overlinePosition: "overline-position",
      overlineThickness: "overline-thickness",
      paintOrder: "paint-order",
      panose1: "panose-1",
      pointerEvents: "pointer-events",
      referrerPolicy: "referrerpolicy",
      renderingIntent: "rendering-intent",
      shapeRendering: "shape-rendering",
      stopColor: "stop-color",
      stopOpacity: "stop-opacity",
      strikethroughPosition: "strikethrough-position",
      strikethroughThickness: "strikethrough-thickness",
      strokeDashArray: "stroke-dasharray",
      strokeDashOffset: "stroke-dashoffset",
      strokeLineCap: "stroke-linecap",
      strokeLineJoin: "stroke-linejoin",
      strokeMiterLimit: "stroke-miterlimit",
      strokeOpacity: "stroke-opacity",
      strokeWidth: "stroke-width",
      tabIndex: "tabindex",
      textAnchor: "text-anchor",
      textDecoration: "text-decoration",
      textRendering: "text-rendering",
      transformOrigin: "transform-origin",
      typeOf: "typeof",
      underlinePosition: "underline-position",
      underlineThickness: "underline-thickness",
      unicodeBidi: "unicode-bidi",
      unicodeRange: "unicode-range",
      unitsPerEm: "units-per-em",
      vAlphabetic: "v-alphabetic",
      vHanging: "v-hanging",
      vIdeographic: "v-ideographic",
      vMathematical: "v-mathematical",
      vectorEffect: "vector-effect",
      vertAdvY: "vert-adv-y",
      vertOriginX: "vert-origin-x",
      vertOriginY: "vert-origin-y",
      wordSpacing: "word-spacing",
      writingMode: "writing-mode",
      xHeight: "x-height",
      // These were camelcased in Tiny. Now lowercased in SVG 2
      playbackOrder: "playbackorder",
      timelineBegin: "timelinebegin"
    },
    transform: D1,
    properties: {
      about: Nt,
      accentHeight: Z,
      accumulate: null,
      additive: null,
      alignmentBaseline: null,
      alphabetic: Z,
      amplitude: Z,
      arabicForm: null,
      ascent: Z,
      attributeName: null,
      attributeType: null,
      azimuth: Z,
      bandwidth: null,
      baselineShift: null,
      baseFrequency: null,
      baseProfile: null,
      bbox: null,
      begin: null,
      bias: Z,
      by: null,
      calcMode: null,
      capHeight: Z,
      className: Ne,
      clip: null,
      clipPath: null,
      clipPathUnits: null,
      clipRule: null,
      color: null,
      colorInterpolation: null,
      colorInterpolationFilters: null,
      colorProfile: null,
      colorRendering: null,
      content: null,
      contentScriptType: null,
      contentStyleType: null,
      crossOrigin: null,
      cursor: null,
      cx: null,
      cy: null,
      d: null,
      dataType: null,
      defaultAction: null,
      descent: Z,
      diffuseConstant: Z,
      direction: null,
      display: null,
      dur: null,
      divisor: Z,
      dominantBaseline: null,
      download: ge,
      dx: null,
      dy: null,
      edgeMode: null,
      editable: null,
      elevation: Z,
      enableBackground: null,
      end: null,
      event: null,
      exponent: Z,
      externalResourcesRequired: null,
      fill: null,
      fillOpacity: Z,
      fillRule: null,
      filter: null,
      filterRes: null,
      filterUnits: null,
      floodColor: null,
      floodOpacity: null,
      focusable: null,
      focusHighlight: null,
      fontFamily: null,
      fontSize: null,
      fontSizeAdjust: null,
      fontStretch: null,
      fontStyle: null,
      fontVariant: null,
      fontWeight: null,
      format: null,
      fr: null,
      from: null,
      fx: null,
      fy: null,
      g1: In,
      g2: In,
      glyphName: In,
      glyphOrientationHorizontal: null,
      glyphOrientationVertical: null,
      glyphRef: null,
      gradientTransform: null,
      gradientUnits: null,
      handler: null,
      hanging: Z,
      hatchContentUnits: null,
      hatchUnits: null,
      height: null,
      href: null,
      hrefLang: null,
      horizAdvX: Z,
      horizOriginX: Z,
      horizOriginY: Z,
      id: null,
      ideographic: Z,
      imageRendering: null,
      initialVisibility: null,
      in: null,
      in2: null,
      intercept: Z,
      k: Z,
      k1: Z,
      k2: Z,
      k3: Z,
      k4: Z,
      kernelMatrix: Nt,
      kernelUnitLength: null,
      keyPoints: null,
      // SEMI_COLON_SEPARATED
      keySplines: null,
      // SEMI_COLON_SEPARATED
      keyTimes: null,
      // SEMI_COLON_SEPARATED
      kerning: null,
      lang: null,
      lengthAdjust: null,
      letterSpacing: null,
      lightingColor: null,
      limitingConeAngle: Z,
      local: null,
      markerEnd: null,
      markerMid: null,
      markerStart: null,
      markerHeight: null,
      markerUnits: null,
      markerWidth: null,
      mask: null,
      maskContentUnits: null,
      maskUnits: null,
      mathematical: null,
      max: null,
      media: null,
      mediaCharacterEncoding: null,
      mediaContentEncodings: null,
      mediaSize: Z,
      mediaTime: null,
      method: null,
      min: null,
      mode: null,
      name: null,
      navDown: null,
      navDownLeft: null,
      navDownRight: null,
      navLeft: null,
      navNext: null,
      navPrev: null,
      navRight: null,
      navUp: null,
      navUpLeft: null,
      navUpRight: null,
      numOctaves: null,
      observer: null,
      offset: null,
      onAbort: null,
      onActivate: null,
      onAfterPrint: null,
      onBeforePrint: null,
      onBegin: null,
      onCancel: null,
      onCanPlay: null,
      onCanPlayThrough: null,
      onChange: null,
      onClick: null,
      onClose: null,
      onCopy: null,
      onCueChange: null,
      onCut: null,
      onDblClick: null,
      onDrag: null,
      onDragEnd: null,
      onDragEnter: null,
      onDragExit: null,
      onDragLeave: null,
      onDragOver: null,
      onDragStart: null,
      onDrop: null,
      onDurationChange: null,
      onEmptied: null,
      onEnd: null,
      onEnded: null,
      onError: null,
      onFocus: null,
      onFocusIn: null,
      onFocusOut: null,
      onHashChange: null,
      onInput: null,
      onInvalid: null,
      onKeyDown: null,
      onKeyPress: null,
      onKeyUp: null,
      onLoad: null,
      onLoadedData: null,
      onLoadedMetadata: null,
      onLoadStart: null,
      onMessage: null,
      onMouseDown: null,
      onMouseEnter: null,
      onMouseLeave: null,
      onMouseMove: null,
      onMouseOut: null,
      onMouseOver: null,
      onMouseUp: null,
      onMouseWheel: null,
      onOffline: null,
      onOnline: null,
      onPageHide: null,
      onPageShow: null,
      onPaste: null,
      onPause: null,
      onPlay: null,
      onPlaying: null,
      onPopState: null,
      onProgress: null,
      onRateChange: null,
      onRepeat: null,
      onReset: null,
      onResize: null,
      onScroll: null,
      onSeeked: null,
      onSeeking: null,
      onSelect: null,
      onShow: null,
      onStalled: null,
      onStorage: null,
      onSubmit: null,
      onSuspend: null,
      onTimeUpdate: null,
      onToggle: null,
      onUnload: null,
      onVolumeChange: null,
      onWaiting: null,
      onZoom: null,
      opacity: null,
      operator: null,
      order: null,
      orient: null,
      orientation: null,
      origin: null,
      overflow: null,
      overlay: null,
      overlinePosition: Z,
      overlineThickness: Z,
      paintOrder: null,
      panose1: null,
      path: null,
      pathLength: Z,
      patternContentUnits: null,
      patternTransform: null,
      patternUnits: null,
      phase: null,
      ping: Ne,
      pitch: null,
      playbackOrder: null,
      pointerEvents: null,
      points: null,
      pointsAtX: Z,
      pointsAtY: Z,
      pointsAtZ: Z,
      preserveAlpha: null,
      preserveAspectRatio: null,
      primitiveUnits: null,
      propagate: null,
      property: Nt,
      r: null,
      radius: null,
      referrerPolicy: null,
      refX: null,
      refY: null,
      rel: Nt,
      rev: Nt,
      renderingIntent: null,
      repeatCount: null,
      repeatDur: null,
      requiredExtensions: Nt,
      requiredFeatures: Nt,
      requiredFonts: Nt,
      requiredFormats: Nt,
      resource: null,
      restart: null,
      result: null,
      rotate: null,
      rx: null,
      ry: null,
      scale: null,
      seed: null,
      shapeRendering: null,
      side: null,
      slope: null,
      snapshotTime: null,
      specularConstant: Z,
      specularExponent: Z,
      spreadMethod: null,
      spacing: null,
      startOffset: null,
      stdDeviation: null,
      stemh: null,
      stemv: null,
      stitchTiles: null,
      stopColor: null,
      stopOpacity: null,
      strikethroughPosition: Z,
      strikethroughThickness: Z,
      string: null,
      stroke: null,
      strokeDashArray: Nt,
      strokeDashOffset: null,
      strokeLineCap: null,
      strokeLineJoin: null,
      strokeMiterLimit: Z,
      strokeOpacity: Z,
      strokeWidth: null,
      style: null,
      surfaceScale: Z,
      syncBehavior: null,
      syncBehaviorDefault: null,
      syncMaster: null,
      syncTolerance: null,
      syncToleranceDefault: null,
      systemLanguage: Nt,
      tabIndex: Z,
      tableValues: null,
      target: null,
      targetX: Z,
      targetY: Z,
      textAnchor: null,
      textDecoration: null,
      textRendering: null,
      textLength: null,
      timelineBegin: null,
      title: null,
      transformBehavior: null,
      type: null,
      typeOf: Nt,
      to: null,
      transform: null,
      transformOrigin: null,
      u1: null,
      u2: null,
      underlinePosition: Z,
      underlineThickness: Z,
      unicode: null,
      unicodeBidi: null,
      unicodeRange: null,
      unitsPerEm: Z,
      values: null,
      vAlphabetic: Z,
      vMathematical: Z,
      vectorEffect: null,
      vHanging: Z,
      vIdeographic: Z,
      version: null,
      vertAdvY: Z,
      vertOriginX: Z,
      vertOriginY: Z,
      viewBox: null,
      viewTarget: null,
      visibility: null,
      width: null,
      widths: null,
      wordSpacing: null,
      writingMode: null,
      x: null,
      x1: null,
      x2: null,
      xChannelSelector: null,
      xHeight: Z,
      y: null,
      y1: null,
      y2: null,
      yChannelSelector: null,
      z: null,
      zoomAndPan: null
    }
  }), vO = /^data[-\w.:]+$/i, a1 = /-[a-z]/g, CO = /[A-Z]/g;
  s(wO, "find");
  s(AO, "kebab");
  s(FO, "camelcase");
  SO = {
    classId: "classID",
    dataType: "datatype",
    itemId: "itemID",
    strokeDashArray: "strokeDasharray",
    strokeDashOffset: "strokeDashoffset",
    strokeLineCap: "strokeLinecap",
    strokeLineJoin: "strokeLinejoin",
    strokeMiterLimit: "strokeMiterlimit",
    typeOf: "typeof",
    xLinkActuate: "xlinkActuate",
    xLinkArcRole: "xlinkArcrole",
    xLinkHref: "xlinkHref",
    xLinkRole: "xlinkRole",
    xLinkShow: "xlinkShow",
    xLinkTitle: "xlinkTitle",
    xLinkType: "xlinkType",
    xmlnsXLink: "xmlnsXlink"
  }, _O = f1([g1, m1, x1, E1, EO], "html"), sp = f1([g1, m1, x1, E1, bO], "svg"), ap = b1("end"), up = b1("start");
  s(b1, "point");
  s(op, "position");
  u1 = {}.hasOwnProperty;
  s(kO, "zwitch");
  s(TO, "comment");
  s(BO, "stringify");
  PO = /[$_\p{ID_Start}]/u, IO = /[$_\u{200C}\u{200D}\p{ID_Continue}]/u, OO = /[-$_\u{200C}\u{200D}\p{ID_Continue}]/u, RO = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,
  NO = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, v1 = {};
  s(Gt, "start");
  s(Nn, "cont");
  s(fr, "name");
  s(LO, "stringify2");
  MO = Tu(DO(), 1), jO = MO.default, ep = {}.hasOwnProperty, qO = /[A-Z]/g, $O = /-([a-z])/g, VO = /* @__PURE__ */ new Set(["td", "th"]);
  s(UO, "element");
  s(zO, "parseStyle");
  s(HO, "transformStylesToCssCasing");
  s(C1, "transformStyleToCssCasing");
  s(WO, "toCamel");
  s(JO, "toDash");
  GO = {}.hasOwnProperty, XO = [];
  s(ku, "attachComments");
  s(w1, "walk");
  s(o1, "slice");
  s(lp, "compare");
  s(l1, "mdxExpression");
  s(c1, "mdxJsxElement");
  s(YO, "mdxjsEsm");
  KO = /[ \t\n\f\r]/g;
  s(QO, "whitespace");
  s(h1, "empty");
  s(ZO, "root");
  s(e4, "text");
  t4 = {
    comment: TO,
    doctype: r4,
    element: UO,
    mdxFlowExpression: l1,
    mdxJsxFlowElement: c1,
    mdxJsxTextElement: c1,
    mdxTextExpression: l1,
    mdxjsEsm: YO,
    root: ZO,
    text: e4
  };
  s(r4, "ignore");
  i4 = {}.hasOwnProperty, n4 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]);
  s(s4, "createState");
  s(a4, "invalid");
  s(u4, "unknown");
  s(o4, "all");
  s(l4, "inherit");
  s(A1, "patch");
  s(c4, "createJsxAttributeName");
  s(h4, "createJsxElementName");
  s(F1, "createJsxNameFromString");
  s(Bu, "toEstree");
});

// ../node_modules/@storybook/docs-mdx/node_modules/acorn/dist/acorn.mjs
function dp(e, t) {
  for (var r = 65536, i = 0; i < t.length; i += 2) {
    if (r += t[i], r > e)
      return !1;
    if (r += t[i + 1], r >= e)
      return !0;
  }
  return !1;
}
function Kr(e, t) {
  return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && g4.test(String.fromCharCode(e)) : t ===
  !1 ? !1 : dp(e, P1);
}
function Ln(e, t) {
  return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && D4.test(String.
  fromCharCode(e)) : t === !1 ? !1 : dp(e, P1) || dp(e, p4);
}
function Xt(e, t) {
  return new _e(e, { beforeExpr: !0, binop: t });
}
function Ae(e, t) {
  return t === void 0 && (t = {}), t.keyword = e, yp[e] = new _e(e, t);
}
function Mn(e) {
  return e === 10 || e === 13 || e === 8232 || e === 8233;
}
function O1(e, t, r) {
  r === void 0 && (r = e.length);
  for (var i = t; i < r; i++) {
    var n = e.charCodeAt(i);
    if (Mn(n))
      return i < r - 1 && n === 13 && e.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;
  }
  return -1;
}
function Ci(e) {
  return _1[e] || (_1[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
}
function wi(e) {
  return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
}
function L1(e, t) {
  for (var r = 1, i = 0; ; ) {
    var n = O1(e, i, t);
    if (n < 0)
      return new Vs(r, t - i);
    ++r, i = n;
  }
}
function v4(e) {
  var t = {};
  for (var r in mp)
    t[r] = e && zs(e, r) ? e[r] : mp[r];
  if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!k1 && typeof console == "object" && console.warn && (k1 =
  !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.
  allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
  S1(t.onToken)) {
    var i = t.onToken;
    t.onToken = function(n) {
      return i.push(n);
    };
  }
  return S1(t.onComment) && (t.onComment = C4(t, t.onComment)), t;
}
function C4(e, t) {
  return function(r, i, n, a, u, o) {
    var l = {
      type: r ? "Block" : "Line",
      value: i,
      start: n,
      end: a
    };
    e.locations && (l.loc = new Lu(this, u, o)), e.ranges && (l.range = [n, a]), t.push(l);
  };
}
function vp(e, t) {
  return jn | (e ? xp : 0) | (t ? M1 : 0);
}
function S4(e, t) {
  var r = t.key.name, i = e[r], n = "true";
  return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (n = (t.static ? "s" : "i") + t.kind), i === "iget" && n ===
  "iset" || i === "iset" && n === "iget" || i === "sget" && n === "sset" || i === "sset" && n === "sget" ? (e[r] = "true", !1) : i ? !0 : (e[r] =
  n, !1);
}
function Ou(e, t) {
  var r = e.computed, i = e.key;
  return !r && (i.type === "Identifier" && i.name === t || i.type === "Literal" && i.value === t);
}
function W1(e) {
  return e.type === "Identifier" || e.type === "ParenthesizedExpression" && W1(e.expression);
}
function Dp(e) {
  return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Dp(e.expression) || e.type ===
  "ParenthesizedExpression" && Dp(e.expression);
}
function J1(e, t, r, i) {
  return e.type = t, e.end = r, this.options.locations && (e.loc.end = i), this.options.ranges && (e.range[1] = r), e;
}
function N4(e) {
  var t = nE[e] = {
    binary: Ci(B4[e] + " " + T1),
    binaryOfStrings: Ci(I4[e]),
    nonBinary: {
      General_Category: Ci(T1),
      Script: Ci(R4[e])
    }
  };
  t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.
  nonBinary.scx = t.nonBinary.Script_Extensions;
}
function L4(e) {
  for (var t in e)
    return !0;
  return !1;
}
function sE(e) {
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
}
function M4(e) {
  return Kr(e, !0) || e === 36 || e === 95;
}
function j4(e) {
  return Ln(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
}
function aE(e) {
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
}
function q4(e) {
  return e >= 0 && e <= 1114111;
}
function $4(e) {
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
}
function oE(e) {
  return aE(e) || e === 95;
}
function V4(e) {
  return oE(e) || qu(e);
}
function U4(e) {
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
}
function z4(e) {
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
}
function H4(e) {
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
}
function qu(e) {
  return e >= 48 && e <= 57;
}
function lE(e) {
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
}
function cE(e) {
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
}
function hE(e) {
  return e >= 48 && e <= 55;
}
function W4(e, t) {
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
}
function pE(e) {
  return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
}
var p4, P1, f4, I1, hp, pp, d4, m4, g4, D4, _e, Yt, _t, yp, F, Zt, y4, R1, Kt, N1, x4, E4, zs, S1, _1, b4, Vs, Lu, mp, k1, Us, jn, xp, M1, j1,
q1, Ep, $1, Hs, bp, Iu, Cp, Zr, V1, U1, z1, tt, Br, xt, w4, Mu, ie, wp, A4, F4, $s, gp, H1, er, dr, $e, qn, de, _4, Ru, Ai, k4, ju, Ws, G1, X1,
Y1, K1, Q1, T4, B4, P4, I4, T1, Z1, eE, tE, rE, iE, O4, R4, nE, B1, Pu, fp, re, Nu, Pr, uE, Qr, Qt, Ap, we, fE, J4, dE = ut(() => {
  p4 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14,
  32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7,
  3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9,
  84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7,
  2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0,
  7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3,
  149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499,
  13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], P1 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14,
  29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10,
  21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16,
  3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0,
  9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2,
  24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47,
  21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95,
  7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5,
  2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30,
  18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2,
  290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2,
  3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30,
  7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0,
  3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2,
  0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], f4 = "\u200C\u200D\xB7\u0300-\
\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\
\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\
\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\
\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\
\uFF65", I1 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\
\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\
\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\
\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\
\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\
\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2\
-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",
  hp = {
    3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package pri\
vate protected public short static super synchronized throws transient volatile",
    5: "class enum extends super const export import",
    6: "enum",
    strict: "implements interface let package private protected public static yield",
    strictBind: "eval arguments"
  }, pp = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false\
 instanceof typeof void delete new in this", d4 = {
    5: pp,
    "5module": pp + " export import",
    6: pp + " const class extends export import super"
  }, m4 = /^in(stanceof)?$/, g4 = new RegExp("[" + I1 + "]"), D4 = new RegExp("[" + I1 + f4 + "]");
  s(dp, "isInAstralSet");
  s(Kr, "isIdentifierStart");
  s(Ln, "isIdentifierChar");
  _e = /* @__PURE__ */ s(function(t, r) {
    r === void 0 && (r = {}), this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.
    isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop || null, this.
    updateContext = null;
  }, "TokenType");
  s(Xt, "binop");
  Yt = { beforeExpr: !0 }, _t = { startsExpr: !0 }, yp = {};
  s(Ae, "kw");
  F = {
    num: new _e("num", _t),
    regexp: new _e("regexp", _t),
    string: new _e("string", _t),
    name: new _e("name", _t),
    privateId: new _e("privateId", _t),
    eof: new _e("eof"),
    // Punctuation token types.
    bracketL: new _e("[", { beforeExpr: !0, startsExpr: !0 }),
    bracketR: new _e("]"),
    braceL: new _e("{", { beforeExpr: !0, startsExpr: !0 }),
    braceR: new _e("}"),
    parenL: new _e("(", { beforeExpr: !0, startsExpr: !0 }),
    parenR: new _e(")"),
    comma: new _e(",", Yt),
    semi: new _e(";", Yt),
    colon: new _e(":", Yt),
    dot: new _e("."),
    question: new _e("?", Yt),
    questionDot: new _e("?."),
    arrow: new _e("=>", Yt),
    template: new _e("template"),
    invalidTemplate: new _e("invalidTemplate"),
    ellipsis: new _e("...", Yt),
    backQuote: new _e("`", _t),
    dollarBraceL: new _e("${", { beforeExpr: !0, startsExpr: !0 }),
    // Operators. These carry several kinds of properties to help the
    // parser use them properly (the presence of these properties is
    // what categorizes them as operators).
    //
    // `binop`, when present, specifies that this operator is a binary
    // operator, and will refer to its precedence.
    //
    // `prefix` and `postfix` mark the operator as a prefix or postfix
    // unary operator.
    //
    // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
    // binary operators with a very low precedence, that should result
    // in AssignmentExpression nodes.
    eq: new _e("=", { beforeExpr: !0, isAssign: !0 }),
    assign: new _e("_=", { beforeExpr: !0, isAssign: !0 }),
    incDec: new _e("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
    prefix: new _e("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
    logicalOR: Xt("||", 1),
    logicalAND: Xt("&&", 2),
    bitwiseOR: Xt("|", 3),
    bitwiseXOR: Xt("^", 4),
    bitwiseAND: Xt("&", 5),
    equality: Xt("==/!=/===/!==", 6),
    relational: Xt("</>/<=/>=", 7),
    bitShift: Xt("<</>>/>>>", 8),
    plusMin: new _e("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
    modulo: Xt("%", 10),
    star: Xt("*", 10),
    slash: Xt("/", 10),
    starstar: new _e("**", { beforeExpr: !0 }),
    coalesce: Xt("??", 1),
    // Keyword token types.
    _break: Ae("break"),
    _case: Ae("case", Yt),
    _catch: Ae("catch"),
    _continue: Ae("continue"),
    _debugger: Ae("debugger"),
    _default: Ae("default", Yt),
    _do: Ae("do", { isLoop: !0, beforeExpr: !0 }),
    _else: Ae("else", Yt),
    _finally: Ae("finally"),
    _for: Ae("for", { isLoop: !0 }),
    _function: Ae("function", _t),
    _if: Ae("if"),
    _return: Ae("return", Yt),
    _switch: Ae("switch"),
    _throw: Ae("throw", Yt),
    _try: Ae("try"),
    _var: Ae("var"),
    _const: Ae("const"),
    _while: Ae("while", { isLoop: !0 }),
    _with: Ae("with"),
    _new: Ae("new", { beforeExpr: !0, startsExpr: !0 }),
    _this: Ae("this", _t),
    _super: Ae("super", _t),
    _class: Ae("class", _t),
    _extends: Ae("extends", Yt),
    _export: Ae("export"),
    _import: Ae("import", _t),
    _null: Ae("null", _t),
    _true: Ae("true", _t),
    _false: Ae("false", _t),
    _in: Ae("in", { beforeExpr: !0, binop: 7 }),
    _instanceof: Ae("instanceof", { beforeExpr: !0, binop: 7 }),
    _typeof: Ae("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
    _void: Ae("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
    _delete: Ae("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
  }, Zt = /\r\n?|\n|\u2028|\u2029/, y4 = new RegExp(Zt.source, "g");
  s(Mn, "isNewLine");
  s(O1, "nextLineBreak");
  R1 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kt = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, N1 = Object.prototype, x4 = N1.hasOwnProperty,
  E4 = N1.toString, zs = Object.hasOwn || function(e, t) {
    return x4.call(e, t);
  }, S1 = Array.isArray || function(e) {
    return E4.call(e) === "[object Array]";
  }, _1 = /* @__PURE__ */ Object.create(null);
  s(Ci, "wordsRegexp");
  s(wi, "codePointToString");
  b4 = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Vs = /* @__PURE__ */ s(function(t, r) {
    this.line = t, this.column = r;
  }, "Position");
  Vs.prototype.offset = /* @__PURE__ */ s(function(t) {
    return new Vs(this.line, this.column + t);
  }, "offset");
  Lu = /* @__PURE__ */ s(function(t, r, i) {
    this.start = r, this.end = i, t.sourceFile !== null && (this.source = t.sourceFile);
  }, "SourceLocation");
  s(L1, "getLineInfo");
  mp = {
    // `ecmaVersion` indicates the ECMAScript version to parse. Must be
    // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
    // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
    // (the latest version the library supports). This influences
    // support for strict mode, the set of reserved words, and support
    // for new syntax features.
    ecmaVersion: null,
    // `sourceType` indicates the mode the code should be parsed in.
    // Can be either `"script"` or `"module"`. This influences global
    // strict mode and parsing of `import` and `export` declarations.
    sourceType: "script",
    // `onInsertedSemicolon` can be a callback that will be called when
    // a semicolon is automatically inserted. It will be passed the
    // position of the inserted semicolon as an offset, and if
    // `locations` is enabled, it is given the location as a `{line,
    // column}` object as second argument.
    onInsertedSemicolon: null,
    // `onTrailingComma` is similar to `onInsertedSemicolon`, but for
    // trailing commas.
    onTrailingComma: null,
    // By default, reserved words are only enforced if ecmaVersion >= 5.
    // Set `allowReserved` to a boolean value to explicitly turn this on
    // an off. When this option has the value "never", reserved words
    // and keywords can also not be used as property names.
    allowReserved: null,
    // When enabled, a return at the top level is not considered an
    // error.
    allowReturnOutsideFunction: !1,
    // When enabled, import/export statements are not constrained to
    // appearing at the top of the program, and an import.meta expression
    // in a script isn't considered an error.
    allowImportExportEverywhere: !1,
    // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.
    // When enabled, await identifiers are allowed to appear at the top-level scope,
    // but they are still not allowed in non-async functions.
    allowAwaitOutsideFunction: null,
    // When enabled, super identifiers are not constrained to
    // appearing in methods and do not raise an error when they appear elsewhere.
    allowSuperOutsideMethod: null,
    // When enabled, hashbang directive in the beginning of file is
    // allowed and treated as a line comment. Enabled by default when
    // `ecmaVersion` >= 2023.
    allowHashBang: !1,
    // By default, the parser will verify that private properties are
    // only used in places where they are valid and have been declared.
    // Set this to false to turn such checks off.
    checkPrivateFields: !0,
    // When `locations` is on, `loc` properties holding objects with
    // `start` and `end` properties in `{line, column}` form (with
    // line being 1-based and column 0-based) will be attached to the
    // nodes.
    locations: !1,
    // A function can be passed as `onToken` option, which will
    // cause Acorn to call that function with object in the same
    // format as tokens returned from `tokenizer().getToken()`. Note
    // that you are not allowed to call the parser from the
    // callback—that will corrupt its internal state.
    onToken: null,
    // A function can be passed as `onComment` option, which will
    // cause Acorn to call that function with `(block, text, start,
    // end)` parameters whenever a comment is skipped. `block` is a
    // boolean indicating whether this is a block (`/* */`) comment,
    // `text` is the content of the comment, and `start` and `end` are
    // character offsets that denote the start and end of the comment.
    // When the `locations` option is on, two more parameters are
    // passed, the full `{line, column}` locations of the start and
    // end of the comments. Note that you are not allowed to call the
    // parser from the callback—that will corrupt its internal state.
    // When this option has an array as value, objects representing the
    // comments are pushed to it.
    onComment: null,
    // Nodes have their start and end characters offsets recorded in
    // `start` and `end` properties (directly on the node, rather than
    // the `loc` object, which holds line/column data. To also add a
    // [semi-standardized][range] `range` property holding a `[start,
    // end]` array with the same numbers, set the `ranges` option to
    // `true`.
    //
    // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
    ranges: !1,
    // It is possible to parse multiple files into a single AST by
    // passing the tree produced by parsing the first file as
    // `program` option in subsequent parses. This will add the
    // toplevel forms of the parsed file to the `Program` (top) node
    // of an existing parse tree.
    program: null,
    // When `locations` is on, you can pass this to record the source
    // file in every node's `loc` object.
    sourceFile: null,
    // This value, if given, is stored in every node, whether
    // `locations` is on or off.
    directSourceFile: null,
    // When enabled, parenthesized expressions are represented by
    // (non-standard) ParenthesizedExpression nodes
    preserveParens: !1
  }, k1 = !1;
  s(v4, "getOptions");
  s(C4, "pushComment");
  Us = 1, jn = 2, xp = 4, M1 = 8, j1 = 16, q1 = 32, Ep = 64, $1 = 128, Hs = 256, bp = Us | jn | Hs;
  s(vp, "functionFlags");
  Iu = 0, Cp = 1, Zr = 2, V1 = 3, U1 = 4, z1 = 5, tt = /* @__PURE__ */ s(function(t, r, i) {
    this.options = t = v4(t), this.sourceFile = t.sourceFile, this.keywords = Ci(d4[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5m\
odule" : 5]);
    var n = "";
    t.allowReserved !== !0 && (n = hp[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.
    reservedWords = Ci(n);
    var a = (n ? n + " " : "") + hp.strict;
    this.reservedWordsStrict = Ci(a), this.reservedWordsStrictBind = Ci(a + " " + hp.strictBind), this.input = String(r), this.containsEsc =
    !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
`, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(Zt).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.
    type = F.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc =
    this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0,
    this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.
    potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.
    create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.
    enterScope(Us), this.regexpState = null, this.privateNameStack = [];
  }, "Parser"), Br = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 },
  allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 },
  inClassStaticBlock: { configurable: !0 } };
  tt.prototype.parse = /* @__PURE__ */ s(function() {
    var t = this.options.program || this.startNode();
    return this.nextToken(), this.parseTopLevel(t);
  }, "parse");
  Br.inFunction.get = function() {
    return (this.currentVarScope().flags & jn) > 0;
  };
  Br.inGenerator.get = function() {
    return (this.currentVarScope().flags & M1) > 0 && !this.currentVarScope().inClassFieldInit;
  };
  Br.inAsync.get = function() {
    return (this.currentVarScope().flags & xp) > 0 && !this.currentVarScope().inClassFieldInit;
  };
  Br.canAwait.get = function() {
    for (var e = this.scopeStack.length - 1; e >= 0; e--) {
      var t = this.scopeStack[e];
      if (t.inClassFieldInit || t.flags & Hs)
        return !1;
      if (t.flags & jn)
        return (t.flags & xp) > 0;
    }
    return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
  };
  Br.allowSuper.get = function() {
    var e = this.currentThisScope(), t = e.flags, r = e.inClassFieldInit;
    return (t & Ep) > 0 || r || this.options.allowSuperOutsideMethod;
  };
  Br.allowDirectSuper.get = function() {
    return (this.currentThisScope().flags & $1) > 0;
  };
  Br.treatFunctionsAsVar.get = function() {
    return this.treatFunctionsAsVarInScope(this.currentScope());
  };
  Br.allowNewDotTarget.get = function() {
    var e = this.currentThisScope(), t = e.flags, r = e.inClassFieldInit;
    return (t & (jn | Hs)) > 0 || r;
  };
  Br.inClassStaticBlock.get = function() {
    return (this.currentVarScope().flags & Hs) > 0;
  };
  tt.extend = /* @__PURE__ */ s(function() {
    for (var t = [], r = arguments.length; r--; ) t[r] = arguments[r];
    for (var i = this, n = 0; n < t.length; n++)
      i = t[n](i);
    return i;
  }, "extend");
  tt.parse = /* @__PURE__ */ s(function(t, r) {
    return new this(r, t).parse();
  }, "parse");
  tt.parseExpressionAt = /* @__PURE__ */ s(function(t, r, i) {
    var n = new this(i, t, r);
    return n.nextToken(), n.parseExpression();
  }, "parseExpressionAt");
  tt.tokenizer = /* @__PURE__ */ s(function(t, r) {
    return new this(r, t);
  }, "tokenizer");
  Object.defineProperties(tt.prototype, Br);
  xt = tt.prototype, w4 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
  xt.strictDirective = function(e) {
    if (this.options.ecmaVersion < 5)
      return !1;
    for (; ; ) {
      Kt.lastIndex = e, e += Kt.exec(this.input)[0].length;
      var t = w4.exec(this.input.slice(e));
      if (!t)
        return !1;
      if ((t[1] || t[2]) === "use strict") {
        Kt.lastIndex = e + t[0].length;
        var r = Kt.exec(this.input), i = r.index + r[0].length, n = this.input.charAt(i);
        return n === ";" || n === "}" || Zt.test(r[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(n) || n === "!" && this.input.charAt(i + 1) === "=");
      }
      e += t[0].length, Kt.lastIndex = e, e += Kt.exec(this.input)[0].length, this.input[e] === ";" && e++;
    }
  };
  xt.eat = function(e) {
    return this.type === e ? (this.next(), !0) : !1;
  };
  xt.isContextual = function(e) {
    return this.type === F.name && this.value === e && !this.containsEsc;
  };
  xt.eatContextual = function(e) {
    return this.isContextual(e) ? (this.next(), !0) : !1;
  };
  xt.expectContextual = function(e) {
    this.eatContextual(e) || this.unexpected();
  };
  xt.canInsertSemicolon = function() {
    return this.type === F.eof || this.type === F.braceR || Zt.test(this.input.slice(this.lastTokEnd, this.start));
  };
  xt.insertSemicolon = function() {
    if (this.canInsertSemicolon())
      return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
  };
  xt.semicolon = function() {
    !this.eat(F.semi) && !this.insertSemicolon() && this.unexpected();
  };
  xt.afterTrailingComma = function(e, t) {
    if (this.type === e)
      return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
  };
  xt.expect = function(e) {
    this.eat(e) || this.unexpected();
  };
  xt.unexpected = function(e) {
    this.raise(e ?? this.start, "Unexpected token");
  };
  Mu = /* @__PURE__ */ s(function() {
    this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
  }, "DestructuringErrors");
  xt.checkPatternErrors = function(e, t) {
    if (e) {
      e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
      var r = t ? e.parenthesizedAssign : e.parenthesizedBind;
      r > -1 && this.raiseRecoverable(r, t ? "Assigning to rvalue" : "Parenthesized pattern");
    }
  };
  xt.checkExpressionErrors = function(e, t) {
    if (!e)
      return !1;
    var r = e.shorthandAssign, i = e.doubleProto;
    if (!t)
      return r >= 0 || i >= 0;
    r >= 0 && this.raise(r, "Shorthand property assignments are valid only in destructuring patterns"), i >= 0 && this.raiseRecoverable(i, "\
Redefinition of __proto__ property");
  };
  xt.checkYieldAwaitInDefaultParams = function() {
    this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default va\
lue"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
  };
  xt.isSimpleAssignTarget = function(e) {
    return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExp\
ression";
  };
  ie = tt.prototype;
  ie.parseTopLevel = function(e) {
    var t = /* @__PURE__ */ Object.create(null);
    for (e.body || (e.body = []); this.type !== F.eof; ) {
      var r = this.parseStatement(null, !0, t);
      e.body.push(r);
    }
    if (this.inModule)
      for (var i = 0, n = Object.keys(this.undefinedExports); i < n.length; i += 1) {
        var a = n[i];
        this.raiseRecoverable(this.undefinedExports[a].start, "Export '" + a + "' is not defined");
      }
    return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
  };
  wp = { kind: "loop" }, A4 = { kind: "switch" };
  ie.isLet = function(e) {
    if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
      return !1;
    Kt.lastIndex = this.pos;
    var t = Kt.exec(this.input), r = this.pos + t[0].length, i = this.input.charCodeAt(r);
    if (i === 91 || i === 92)
      return !0;
    if (e)
      return !1;
    if (i === 123 || i > 55295 && i < 56320)
      return !0;
    if (Kr(i, !0)) {
      for (var n = r + 1; Ln(i = this.input.charCodeAt(n), !0); )
        ++n;
      if (i === 92 || i > 55295 && i < 56320)
        return !0;
      var a = this.input.slice(r, n);
      if (!m4.test(a))
        return !0;
    }
    return !1;
  };
  ie.isAsyncFunction = function() {
    if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
      return !1;
    Kt.lastIndex = this.pos;
    var e = Kt.exec(this.input), t = this.pos + e[0].length, r;
    return !Zt.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Ln(r = this.
    input.charCodeAt(t + 8)) || r > 55295 && r < 56320));
  };
  ie.parseStatement = function(e, t, r) {
    var i = this.type, n = this.startNode(), a;
    switch (this.isLet(e) && (i = F._var, a = "let"), i) {
      case F._break:
      case F._continue:
        return this.parseBreakContinueStatement(n, i.keyword);
      case F._debugger:
        return this.parseDebuggerStatement(n);
      case F._do:
        return this.parseDoStatement(n);
      case F._for:
        return this.parseForStatement(n);
      case F._function:
        return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(
        n, !1, !e);
      case F._class:
        return e && this.unexpected(), this.parseClass(n, !0);
      case F._if:
        return this.parseIfStatement(n);
      case F._return:
        return this.parseReturnStatement(n);
      case F._switch:
        return this.parseSwitchStatement(n);
      case F._throw:
        return this.parseThrowStatement(n);
      case F._try:
        return this.parseTryStatement(n);
      case F._const:
      case F._var:
        return a = a || this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(n, a);
      case F._while:
        return this.parseWhileStatement(n);
      case F._with:
        return this.parseWithStatement(n);
      case F.braceL:
        return this.parseBlock(!0, n);
      case F.semi:
        return this.parseEmptyStatement(n);
      case F._export:
      case F._import:
        if (this.options.ecmaVersion > 10 && i === F._import) {
          Kt.lastIndex = this.pos;
          var u = Kt.exec(this.input), o = this.pos + u[0].length, l = this.input.charCodeAt(o);
          if (l === 40 || l === 46)
            return this.parseExpressionStatement(n, this.parseExpression());
        }
        return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top le\
vel"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), i === F._import ? this.parseImport(
        n) : this.parseExport(n, r);
      // If the statement does not start with a statement keyword or a
      // brace, it's an ExpressionStatement or LabeledStatement. We
      // simply start parsing an expression, and afterwards, if the
      // next token is a colon and the expression was a simple
      // Identifier node, we switch to interpreting it as a label.
      default:
        if (this.isAsyncFunction())
          return e && this.unexpected(), this.next(), this.parseFunctionStatement(n, !0, !e);
        var c = this.value, h = this.parseExpression();
        return i === F.name && h.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(n, c, h, e) : this.parseExpressionStatement(
        n, h);
    }
  };
  ie.parseBreakContinueStatement = function(e, t) {
    var r = t === "break";
    this.next(), this.eat(F.semi) || this.insertSemicolon() ? e.label = null : this.type !== F.name ? this.unexpected() : (e.label = this.parseIdent(),
    this.semicolon());
    for (var i = 0; i < this.labels.length; ++i) {
      var n = this.labels[i];
      if ((e.label == null || n.name === e.label.name) && (n.kind != null && (r || n.kind === "loop") || e.label && r))
        break;
    }
    return i === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, r ? "BreakStatement" : "ContinueStatement");
  };
  ie.parseDebuggerStatement = function(e) {
    return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
  };
  ie.parseDoStatement = function(e) {
    return this.next(), this.labels.push(wp), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(F._while), e.test = this.parseParenExpression(),
    this.options.ecmaVersion >= 6 ? this.eat(F.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
  };
  ie.parseForStatement = function(e) {
    this.next();
    var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
    if (this.labels.push(wp), this.enterScope(0), this.expect(F.parenL), this.type === F.semi)
      return t > -1 && this.unexpected(t), this.parseFor(e, null);
    var r = this.isLet();
    if (this.type === F._var || this.type === F._const || r) {
      var i = this.startNode(), n = r ? "let" : this.value;
      return this.next(), this.parseVar(i, !0, n), this.finishNode(i, "VariableDeclaration"), (this.type === F._in || this.options.ecmaVersion >=
      6 && this.isContextual("of")) && i.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === F._in ? t > -1 && this.
      unexpected(t) : e.await = t > -1), this.parseForIn(e, i)) : (t > -1 && this.unexpected(t), this.parseFor(e, i));
    }
    var a = this.isContextual("let"), u = !1, o = this.containsEsc, l = new Mu(), c = this.start, h = t > -1 ? this.parseExprSubscripts(l, "\
await") : this.parseExpression(!0, l);
    return this.type === F._in || (u = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === F._in && this.unexpected(
    t), e.await = !0) : u && this.options.ecmaVersion >= 8 && (h.start === c && !o && h.type === "Identifier" && h.name === "async" ? this.unexpected() :
    this.options.ecmaVersion >= 9 && (e.await = !1)), a && u && this.raise(h.start, "The left-hand side of a for-of loop may not start with \
'let'."), this.toAssignable(h, !1, l), this.checkLValPattern(h), this.parseForIn(e, h)) : (this.checkExpressionErrors(l, !0), t > -1 && this.
    unexpected(t), this.parseFor(e, h));
  };
  ie.parseFunctionStatement = function(e, t, r) {
    return this.next(), this.parseFunction(e, $s | (r ? 0 : gp), !1, t);
  };
  ie.parseIfStatement = function(e) {
    return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(F._else) ? this.
    parseStatement("if") : null, this.finishNode(e, "IfStatement");
  };
  ie.parseReturnStatement = function(e) {
    return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(),
    this.eat(F.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(
    e, "ReturnStatement");
  };
  ie.parseSwitchStatement = function(e) {
    this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(F.braceL), this.labels.push(A4), this.enterScope(0);
    for (var t, r = !1; this.type !== F.braceR; )
      if (this.type === F._case || this.type === F._default) {
        var i = this.type === F._case;
        t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), i ? t.test = this.parseExpression() :
        (r && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), r = !0, t.test = null), this.expect(F.colon);
      } else
        t || this.unexpected(), t.consequent.push(this.parseStatement(null));
    return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
  };
  ie.parseThrowStatement = function(e) {
    return this.next(), Zt.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"),
    e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
  };
  F4 = [];
  ie.parseCatchClauseParam = function() {
    var e = this.parseBindingAtom(), t = e.type === "Identifier";
    return this.enterScope(t ? q1 : 0), this.checkLValPattern(e, t ? U1 : Zr), this.expect(F.parenR), e;
  };
  ie.parseTryStatement = function(e) {
    if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === F._catch) {
      var t = this.startNode();
      this.next(), this.eat(F.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param =
      null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
    }
    return e.finalizer = this.eat(F._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch o\
r finally clause"), this.finishNode(e, "TryStatement");
  };
  ie.parseVarStatement = function(e, t, r) {
    return this.next(), this.parseVar(e, !1, t, r), this.semicolon(), this.finishNode(e, "VariableDeclaration");
  };
  ie.parseWhileStatement = function(e) {
    return this.next(), e.test = this.parseParenExpression(), this.labels.push(wp), e.body = this.parseStatement("while"), this.labels.pop(),
    this.finishNode(e, "WhileStatement");
  };
  ie.parseWithStatement = function(e) {
    return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.
    parseStatement("with"), this.finishNode(e, "WithStatement");
  };
  ie.parseEmptyStatement = function(e) {
    return this.next(), this.finishNode(e, "EmptyStatement");
  };
  ie.parseLabeledStatement = function(e, t, r, i) {
    for (var n = 0, a = this.labels; n < a.length; n += 1) {
      var u = a[n];
      u.name === t && this.raise(r.start, "Label '" + t + "' is already declared");
    }
    for (var o = this.type.isLoop ? "loop" : this.type === F._switch ? "switch" : null, l = this.labels.length - 1; l >= 0; l--) {
      var c = this.labels[l];
      if (c.statementStart === e.start)
        c.statementStart = this.start, c.kind = o;
      else
        break;
    }
    return this.labels.push({ name: t, kind: o, statementStart: this.start }), e.body = this.parseStatement(i ? i.indexOf("label") === -1 ? i +
    "label" : i : "label"), this.labels.pop(), e.label = r, this.finishNode(e, "LabeledStatement");
  };
  ie.parseExpressionStatement = function(e, t) {
    return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
  };
  ie.parseBlock = function(e, t, r) {
    for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(F.braceL), e && this.enterScope(0); this.
    type !== F.braceR; ) {
      var i = this.parseStatement(null);
      t.body.push(i);
    }
    return r && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
  };
  ie.parseFor = function(e, t) {
    return e.init = t, this.expect(F.semi), e.test = this.type === F.semi ? null : this.parseExpression(), this.expect(F.semi), e.update = this.
    type === F.parenR ? null : this.parseExpression(), this.expect(F.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.
    pop(), this.finishNode(e, "ForStatement");
  };
  ie.parseForIn = function(e, t) {
    var r = this.type === F._in;
    return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!r || this.options.ecmaVersion < 8 || this.strict ||
    t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(
      t.start,
      (r ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
    ), e.left = t, e.right = r ? this.parseExpression() : this.parseMaybeAssign(), this.expect(F.parenR), e.body = this.parseStatement("for"),
    this.exitScope(), this.labels.pop(), this.finishNode(e, r ? "ForInStatement" : "ForOfStatement");
  };
  ie.parseVar = function(e, t, r, i) {
    for (e.declarations = [], e.kind = r; ; ) {
      var n = this.startNode();
      if (this.parseVarId(n, r), this.eat(F.eq) ? n.init = this.parseMaybeAssign(t) : !i && r === "const" && !(this.type === F._in || this.options.
      ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !i && n.id.type !== "Identifier" && !(t && (this.type === F._in || this.
      isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : n.init = null, e.declarations.
      push(this.finishNode(n, "VariableDeclarator")), !this.eat(F.comma))
        break;
    }
    return e;
  };
  ie.parseVarId = function(e, t) {
    e.id = this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Cp : Zr, !1);
  };
  $s = 1, gp = 2, H1 = 4;
  ie.parseFunction = function(e, t, r, i, n) {
    this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === F.star && t & gp && this.
    unexpected(), e.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (e.async = !!i), t & $s && (e.id = t & H1 && this.type !==
    F.name ? null : this.parseIdent(), e.id && !(t & gp) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ?
    Cp : Zr : V1));
    var a = this.yieldPos, u = this.awaitPos, o = this.awaitIdentPos;
    return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(vp(e.async, e.generator)), t & $s || (e.id = this.type ===
    F.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, r, !1, n), this.yieldPos = a, this.awaitPos =
    u, this.awaitIdentPos = o, this.finishNode(e, t & $s ? "FunctionDeclaration" : "FunctionExpression");
  };
  ie.parseFunctionParams = function(e) {
    this.expect(F.parenL), e.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
  };
  ie.parseClass = function(e, t) {
    this.next();
    var r = this.strict;
    this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
    var i = this.enterClassBody(), n = this.startNode(), a = !1;
    for (n.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
      var u = this.parseClassElement(e.superClass !== null);
      u && (n.body.push(u), u.type === "MethodDefinition" && u.kind === "constructor" ? (a && this.raiseRecoverable(u.start, "Duplicate cons\
tructor in the same class"), a = !0) : u.key && u.key.type === "PrivateIdentifier" && S4(i, u) && this.raiseRecoverable(u.key.start, "Identi\
fier '#" + u.key.name + "' has already been declared"));
    }
    return this.strict = r, this.next(), e.body = this.finishNode(n, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclar\
ation" : "ClassExpression");
  };
  ie.parseClassElement = function(e) {
    if (this.eat(F.semi))
      return null;
    var t = this.options.ecmaVersion, r = this.startNode(), i = "", n = !1, a = !1, u = "method", o = !1;
    if (this.eatContextual("static")) {
      if (t >= 13 && this.eat(F.braceL))
        return this.parseClassStaticBlock(r), r;
      this.isClassElementNameStart() || this.type === F.star ? o = !0 : i = "static";
    }
    if (r.static = o, !i && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === F.star) && !this.canInsertSemicolon() ?
    a = !0 : i = "async"), !i && (t >= 9 || !a) && this.eat(F.star) && (n = !0), !i && !a && !n) {
      var l = this.value;
      (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? u = l : i = l);
    }
    if (i ? (r.computed = !1, r.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), r.key.name = i, this.finishNode(r.key, "Ide\
ntifier")) : this.parseClassElementName(r), t < 13 || this.type === F.parenL || u !== "method" || n || a) {
      var c = !r.static && Ou(r, "constructor"), h = c && e;
      c && u !== "method" && this.raise(r.key.start, "Constructor can't have get/set modifier"), r.kind = c ? "constructor" : u, this.parseClassMethod(
      r, n, a, h);
    } else
      this.parseClassField(r);
    return r;
  };
  ie.isClassElementNameStart = function() {
    return this.type === F.name || this.type === F.privateId || this.type === F.num || this.type === F.string || this.type === F.bracketL ||
    this.type.keyword;
  };
  ie.parseClassElementName = function(e) {
    this.type === F.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"),
    e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
  };
  ie.parseClassMethod = function(e, t, r, i) {
    var n = e.key;
    e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), r && this.raise(n.start, "Constructor can't be\
 an async method")) : e.static && Ou(e, "prototype") && this.raise(n.start, "Classes may not have a static property named prototype");
    var a = e.value = this.parseMethod(t, r, i);
    return e.kind === "get" && a.params.length !== 0 && this.raiseRecoverable(a.start, "getter should have no params"), e.kind === "set" && a.
    params.length !== 1 && this.raiseRecoverable(a.start, "setter should have exactly one param"), e.kind === "set" && a.params[0].type === "\
RestElement" && this.raiseRecoverable(a.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
  };
  ie.parseClassField = function(e) {
    if (Ou(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ou(e, "prototype") &&
    this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(F.eq)) {
      var t = this.currentThisScope(), r = t.inClassFieldInit;
      t.inClassFieldInit = !0, e.value = this.parseMaybeAssign(), t.inClassFieldInit = r;
    } else
      e.value = null;
    return this.semicolon(), this.finishNode(e, "PropertyDefinition");
  };
  ie.parseClassStaticBlock = function(e) {
    e.body = [];
    var t = this.labels;
    for (this.labels = [], this.enterScope(Hs | Ep); this.type !== F.braceR; ) {
      var r = this.parseStatement(null);
      e.body.push(r);
    }
    return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
  };
  ie.parseClassId = function(e, t) {
    this.type === F.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, Zr, !1)) : (t === !0 && this.unexpected(), e.id = null);
  };
  ie.parseClassSuper = function(e) {
    e.superClass = this.eat(F._extends) ? this.parseExprSubscripts(null, !1) : null;
  };
  ie.enterClassBody = function() {
    var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
    return this.privateNameStack.push(e), e.declared;
  };
  ie.exitClassBody = function() {
    var e = this.privateNameStack.pop(), t = e.declared, r = e.used;
    if (this.options.checkPrivateFields)
      for (var i = this.privateNameStack.length, n = i === 0 ? null : this.privateNameStack[i - 1], a = 0; a < r.length; ++a) {
        var u = r[a];
        zs(t, u.name) || (n ? n.used.push(u) : this.raiseRecoverable(u.start, "Private field '#" + u.name + "' must be declared in an enclos\
ing class"));
      }
  };
  s(S4, "isPrivateNameConflicted");
  s(Ou, "checkKeyName");
  ie.parseExportAllDeclaration = function(e, t) {
    return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported,
    this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== F.string && this.unexpected(), e.source = this.parseExprAtom(),
    this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
  };
  ie.parseExport = function(e, t) {
    if (this.next(), this.eat(F.star))
      return this.parseExportAllDeclaration(e, t);
    if (this.eat(F._default))
      return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "Ex\
portDefaultDeclaration");
    if (this.shouldParseExportStatement())
      e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.
      declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null;
    else {
      if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from"))
        this.type !== F.string && this.unexpected(), e.source = this.parseExprAtom();
      else {
        for (var r = 0, i = e.specifiers; r < i.length; r += 1) {
          var n = i[r];
          this.checkUnreserved(n.local), this.checkLocalExport(n.local), n.local.type === "Literal" && this.raise(n.local.start, "A string l\
iteral cannot be used as an exported binding without `from`.");
        }
        e.source = null;
      }
      this.semicolon();
    }
    return this.finishNode(e, "ExportNamedDeclaration");
  };
  ie.parseExportDeclaration = function(e) {
    return this.parseStatement(null);
  };
  ie.parseExportDefaultDeclaration = function() {
    var e;
    if (this.type === F._function || (e = this.isAsyncFunction())) {
      var t = this.startNode();
      return this.next(), e && this.next(), this.parseFunction(t, $s | H1, !1, e);
    } else if (this.type === F._class) {
      var r = this.startNode();
      return this.parseClass(r, "nullableID");
    } else {
      var i = this.parseMaybeAssign();
      return this.semicolon(), i;
    }
  };
  ie.checkExport = function(e, t, r) {
    e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), zs(e, t) && this.raiseRecoverable(r, "Duplicate export '" +
    t + "'"), e[t] = !0);
  };
  ie.checkPatternExport = function(e, t) {
    var r = t.type;
    if (r === "Identifier")
      this.checkExport(e, t, t.start);
    else if (r === "ObjectPattern")
      for (var i = 0, n = t.properties; i < n.length; i += 1) {
        var a = n[i];
        this.checkPatternExport(e, a);
      }
    else if (r === "ArrayPattern")
      for (var u = 0, o = t.elements; u < o.length; u += 1) {
        var l = o[u];
        l && this.checkPatternExport(e, l);
      }
    else r === "Property" ? this.checkPatternExport(e, t.value) : r === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : r === "Re\
stElement" && this.checkPatternExport(e, t.argument);
  };
  ie.checkVariableExport = function(e, t) {
    if (e)
      for (var r = 0, i = t; r < i.length; r += 1) {
        var n = i[r];
        this.checkPatternExport(e, n.id);
      }
  };
  ie.shouldParseExportStatement = function() {
    return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" ||
    this.isLet() || this.isAsyncFunction();
  };
  ie.parseExportSpecifier = function(e) {
    var t = this.startNode();
    return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(
      e,
      t.exported,
      t.exported.start
    ), this.finishNode(t, "ExportSpecifier");
  };
  ie.parseExportSpecifiers = function(e) {
    var t = [], r = !0;
    for (this.expect(F.braceL); !this.eat(F.braceR); ) {
      if (r)
        r = !1;
      else if (this.expect(F.comma), this.afterTrailingComma(F.braceR))
        break;
      t.push(this.parseExportSpecifier(e));
    }
    return t;
  };
  ie.parseImport = function(e) {
    return this.next(), this.type === F.string ? (e.specifiers = F4, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(),
    this.expectContextual("from"), e.source = this.type === F.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(
    e, "ImportDeclaration");
  };
  ie.parseImportSpecifier = function() {
    var e = this.startNode();
    return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported),
    e.local = e.imported), this.checkLValSimple(e.local, Zr), this.finishNode(e, "ImportSpecifier");
  };
  ie.parseImportDefaultSpecifier = function() {
    var e = this.startNode();
    return e.local = this.parseIdent(), this.checkLValSimple(e.local, Zr), this.finishNode(e, "ImportDefaultSpecifier");
  };
  ie.parseImportNamespaceSpecifier = function() {
    var e = this.startNode();
    return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, Zr), this.finishNode(e, "Imp\
ortNamespaceSpecifier");
  };
  ie.parseImportSpecifiers = function() {
    var e = [], t = !0;
    if (this.type === F.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(F.comma)))
      return e;
    if (this.type === F.star)
      return e.push(this.parseImportNamespaceSpecifier()), e;
    for (this.expect(F.braceL); !this.eat(F.braceR); ) {
      if (t)
        t = !1;
      else if (this.expect(F.comma), this.afterTrailingComma(F.braceR))
        break;
      e.push(this.parseImportSpecifier());
    }
    return e;
  };
  ie.parseModuleExportName = function() {
    if (this.options.ecmaVersion >= 13 && this.type === F.string) {
      var e = this.parseLiteral(this.value);
      return b4.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
    }
    return this.parseIdent(!0);
  };
  ie.adaptDirectivePrologue = function(e) {
    for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t)
      e[t].directive = e[t].expression.raw.slice(1, -1);
  };
  ie.isDirectiveCandidate = function(e) {
    return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value ==
    "string" && // Reject parenthesized strings.
    (this.input[e.start] === '"' || this.input[e.start] === "'");
  };
  er = tt.prototype;
  er.toAssignable = function(e, t, r) {
    if (this.options.ecmaVersion >= 6 && e)
      switch (e.type) {
        case "Identifier":
          this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
          break;
        case "ObjectPattern":
        case "ArrayPattern":
        case "AssignmentPattern":
        case "RestElement":
          break;
        case "ObjectExpression":
          e.type = "ObjectPattern", r && this.checkPatternErrors(r, !0);
          for (var i = 0, n = e.properties; i < n.length; i += 1) {
            var a = n[i];
            this.toAssignable(a, t), a.type === "RestElement" && (a.argument.type === "ArrayPattern" || a.argument.type === "ObjectPattern") &&
            this.raise(a.argument.start, "Unexpected token");
          }
          break;
        case "Property":
          e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
          break;
        case "ArrayExpression":
          e.type = "ArrayPattern", r && this.checkPatternErrors(r, !0), this.toAssignableList(e.elements, t);
          break;
        case "SpreadElement":
          e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "\
Rest elements cannot have a default value");
          break;
        case "AssignmentExpression":
          e.operator !== "=" && this.raise(e.left.end, "Only '=' operator can be used for specifying default value."), e.type = "AssignmentP\
attern", delete e.operator, this.toAssignable(e.left, t);
          break;
        case "ParenthesizedExpression":
          this.toAssignable(e.expression, t, r);
          break;
        case "ChainExpression":
          this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
          break;
        case "MemberExpression":
          if (!t)
            break;
        default:
          this.raise(e.start, "Assigning to rvalue");
      }
    else r && this.checkPatternErrors(r, !0);
    return e;
  };
  er.toAssignableList = function(e, t) {
    for (var r = e.length, i = 0; i < r; i++) {
      var n = e[i];
      n && this.toAssignable(n, t);
    }
    if (r) {
      var a = e[r - 1];
      this.options.ecmaVersion === 6 && t && a && a.type === "RestElement" && a.argument.type !== "Identifier" && this.unexpected(a.argument.
      start);
    }
    return e;
  };
  er.parseSpread = function(e) {
    var t = this.startNode();
    return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
  };
  er.parseRestBinding = function() {
    var e = this.startNode();
    return this.next(), this.options.ecmaVersion === 6 && this.type !== F.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.
    finishNode(e, "RestElement");
  };
  er.parseBindingAtom = function() {
    if (this.options.ecmaVersion >= 6)
      switch (this.type) {
        case F.bracketL:
          var e = this.startNode();
          return this.next(), e.elements = this.parseBindingList(F.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
        case F.braceL:
          return this.parseObj(!0);
      }
    return this.parseIdent();
  };
  er.parseBindingList = function(e, t, r, i) {
    for (var n = [], a = !0; !this.eat(e); )
      if (a ? a = !1 : this.expect(F.comma), t && this.type === F.comma)
        n.push(null);
      else {
        if (r && this.afterTrailingComma(e))
          break;
        if (this.type === F.ellipsis) {
          var u = this.parseRestBinding();
          this.parseBindingListItem(u), n.push(u), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after \
the rest element"), this.expect(e);
          break;
        } else
          n.push(this.parseAssignableListItem(i));
      }
    return n;
  };
  er.parseAssignableListItem = function(e) {
    var t = this.parseMaybeDefault(this.start, this.startLoc);
    return this.parseBindingListItem(t), t;
  };
  er.parseBindingListItem = function(e) {
    return e;
  };
  er.parseMaybeDefault = function(e, t, r) {
    if (r = r || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(F.eq))
      return r;
    var i = this.startNodeAt(e, t);
    return i.left = r, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern");
  };
  er.checkLValSimple = function(e, t, r) {
    t === void 0 && (t = Iu);
    var i = t !== Iu;
    switch (e.type) {
      case "Identifier":
        this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (i ? "Binding " : "Assigning to ") + e.name +
        " in strict mode"), i && (t === Zr && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound nam\
e"), r && (zs(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), r[e.name] = !0), t !== z1 && this.declareName(e.name, t, e.
        start));
        break;
      case "ChainExpression":
        this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
        break;
      case "MemberExpression":
        i && this.raiseRecoverable(e.start, "Binding member expression");
        break;
      case "ParenthesizedExpression":
        return i && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, r);
      default:
        this.raise(e.start, (i ? "Binding" : "Assigning to") + " rvalue");
    }
  };
  er.checkLValPattern = function(e, t, r) {
    switch (t === void 0 && (t = Iu), e.type) {
      case "ObjectPattern":
        for (var i = 0, n = e.properties; i < n.length; i += 1) {
          var a = n[i];
          this.checkLValInnerPattern(a, t, r);
        }
        break;
      case "ArrayPattern":
        for (var u = 0, o = e.elements; u < o.length; u += 1) {
          var l = o[u];
          l && this.checkLValInnerPattern(l, t, r);
        }
        break;
      default:
        this.checkLValSimple(e, t, r);
    }
  };
  er.checkLValInnerPattern = function(e, t, r) {
    switch (t === void 0 && (t = Iu), e.type) {
      case "Property":
        this.checkLValInnerPattern(e.value, t, r);
        break;
      case "AssignmentPattern":
        this.checkLValPattern(e.left, t, r);
        break;
      case "RestElement":
        this.checkLValPattern(e.argument, t, r);
        break;
      default:
        this.checkLValPattern(e, t, r);
    }
  };
  dr = /* @__PURE__ */ s(function(t, r, i, n, a) {
    this.token = t, this.isExpr = !!r, this.preserveSpace = !!i, this.override = n, this.generator = !!a;
  }, "TokContext"), $e = {
    b_stat: new dr("{", !1),
    b_expr: new dr("{", !0),
    b_tmpl: new dr("${", !1),
    p_stat: new dr("(", !1),
    p_expr: new dr("(", !0),
    q_tmpl: new dr("`", !0, !0, function(e) {
      return e.tryReadTemplateToken();
    }),
    f_stat: new dr("function", !1),
    f_expr: new dr("function", !0),
    f_expr_gen: new dr("function", !0, !1, null, !0),
    f_gen: new dr("function", !1, !1, null, !0)
  }, qn = tt.prototype;
  qn.initialContext = function() {
    return [$e.b_stat];
  };
  qn.curContext = function() {
    return this.context[this.context.length - 1];
  };
  qn.braceIsBlock = function(e) {
    var t = this.curContext();
    return t === $e.f_expr || t === $e.f_stat ? !0 : e === F.colon && (t === $e.b_stat || t === $e.b_expr) ? !t.isExpr : e === F._return || e ===
    F.name && this.exprAllowed ? Zt.test(this.input.slice(this.lastTokEnd, this.start)) : e === F._else || e === F.semi || e === F.eof || e ===
    F.parenR || e === F.arrow ? !0 : e === F.braceL ? t === $e.b_stat : e === F._var || e === F._const || e === F.name ? !1 : !this.exprAllowed;
  };
  qn.inGeneratorContext = function() {
    for (var e = this.context.length - 1; e >= 1; e--) {
      var t = this.context[e];
      if (t.token === "function")
        return t.generator;
    }
    return !1;
  };
  qn.updateContext = function(e) {
    var t, r = this.type;
    r.keyword && e === F.dot ? this.exprAllowed = !1 : (t = r.updateContext) ? t.call(this, e) : this.exprAllowed = r.beforeExpr;
  };
  qn.overrideContext = function(e) {
    this.curContext() !== e && (this.context[this.context.length - 1] = e);
  };
  F.parenR.updateContext = F.braceR.updateContext = function() {
    if (this.context.length === 1) {
      this.exprAllowed = !0;
      return;
    }
    var e = this.context.pop();
    e === $e.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
  };
  F.braceL.updateContext = function(e) {
    this.context.push(this.braceIsBlock(e) ? $e.b_stat : $e.b_expr), this.exprAllowed = !0;
  };
  F.dollarBraceL.updateContext = function() {
    this.context.push($e.b_tmpl), this.exprAllowed = !0;
  };
  F.parenL.updateContext = function(e) {
    var t = e === F._if || e === F._for || e === F._with || e === F._while;
    this.context.push(t ? $e.p_stat : $e.p_expr), this.exprAllowed = !0;
  };
  F.incDec.updateContext = function() {
  };
  F._function.updateContext = F._class.updateContext = function(e) {
    e.beforeExpr && e !== F._else && !(e === F.semi && this.curContext() !== $e.p_stat) && !(e === F._return && Zt.test(this.input.slice(this.
    lastTokEnd, this.start))) && !((e === F.colon || e === F.braceL) && this.curContext() === $e.b_stat) ? this.context.push($e.f_expr) : this.
    context.push($e.f_stat), this.exprAllowed = !1;
  };
  F.colon.updateContext = function() {
    this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
  };
  F.backQuote.updateContext = function() {
    this.curContext() === $e.q_tmpl ? this.context.pop() : this.context.push($e.q_tmpl), this.exprAllowed = !1;
  };
  F.star.updateContext = function(e) {
    if (e === F._function) {
      var t = this.context.length - 1;
      this.context[t] === $e.f_expr ? this.context[t] = $e.f_expr_gen : this.context[t] = $e.f_gen;
    }
    this.exprAllowed = !0;
  };
  F.name.updateContext = function(e) {
    var t = !1;
    this.options.ecmaVersion >= 6 && e !== F.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) &&
    (t = !0), this.exprAllowed = t;
  };
  de = tt.prototype;
  de.checkPropClash = function(e, t, r) {
    if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
      var i = e.key, n;
      switch (i.type) {
        case "Identifier":
          n = i.name;
          break;
        case "Literal":
          n = String(i.value);
          break;
        default:
          return;
      }
      var a = e.kind;
      if (this.options.ecmaVersion >= 6) {
        n === "__proto__" && a === "init" && (t.proto && (r ? r.doubleProto < 0 && (r.doubleProto = i.start) : this.raiseRecoverable(i.start,
        "Redefinition of __proto__ property")), t.proto = !0);
        return;
      }
      n = "$" + n;
      var u = t[n];
      if (u) {
        var o;
        a === "init" ? o = this.strict && u.init || u.get || u.set : o = u.init || u[a], o && this.raiseRecoverable(i.start, "Redefinition o\
f property");
      } else
        u = t[n] = {
          init: !1,
          get: !1,
          set: !1
        };
      u[a] = !0;
    }
  };
  de.parseExpression = function(e, t) {
    var r = this.start, i = this.startLoc, n = this.parseMaybeAssign(e, t);
    if (this.type === F.comma) {
      var a = this.startNodeAt(r, i);
      for (a.expressions = [n]; this.eat(F.comma); )
        a.expressions.push(this.parseMaybeAssign(e, t));
      return this.finishNode(a, "SequenceExpression");
    }
    return n;
  };
  de.parseMaybeAssign = function(e, t, r) {
    if (this.isContextual("yield")) {
      if (this.inGenerator)
        return this.parseYield(e);
      this.exprAllowed = !1;
    }
    var i = !1, n = -1, a = -1, u = -1;
    t ? (n = t.parenthesizedAssign, a = t.trailingComma, u = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Mu(), i =
    !0);
    var o = this.start, l = this.startLoc;
    (this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
    var c = this.parseMaybeConditional(e, t);
    if (r && (c = r.call(this, c, o, l)), this.type.isAssign) {
      var h = this.startNodeAt(o, l);
      return h.operator = this.value, this.type === F.eq && (c = this.toAssignable(c, !1, t)), i || (t.parenthesizedAssign = t.trailingComma =
      t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(c) : this.checkLValSimple(
      c), h.left = c, this.next(), h.right = this.parseMaybeAssign(e), u > -1 && (t.doubleProto = u), this.finishNode(h, "AssignmentExpressi\
on");
    } else
      i && this.checkExpressionErrors(t, !0);
    return n > -1 && (t.parenthesizedAssign = n), a > -1 && (t.trailingComma = a), c;
  };
  de.parseMaybeConditional = function(e, t) {
    var r = this.start, i = this.startLoc, n = this.parseExprOps(e, t);
    if (this.checkExpressionErrors(t))
      return n;
    if (this.eat(F.question)) {
      var a = this.startNodeAt(r, i);
      return a.test = n, a.consequent = this.parseMaybeAssign(), this.expect(F.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(
      a, "ConditionalExpression");
    }
    return n;
  };
  de.parseExprOps = function(e, t) {
    var r = this.start, i = this.startLoc, n = this.parseMaybeUnary(t, !1, !1, e);
    return this.checkExpressionErrors(t) || n.start === r && n.type === "ArrowFunctionExpression" ? n : this.parseExprOp(n, r, i, -1, e);
  };
  de.parseExprOp = function(e, t, r, i, n) {
    var a = this.type.binop;
    if (a != null && (!n || this.type !== F._in) && a > i) {
      var u = this.type === F.logicalOR || this.type === F.logicalAND, o = this.type === F.coalesce;
      o && (a = F.logicalAND.binop);
      var l = this.value;
      this.next();
      var c = this.start, h = this.startLoc, p = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, n), c, h, a, n), d = this.buildBinary(t,
      r, e, p, l, u || o);
      return (u && this.type === F.coalesce || o && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.
      start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(d, t, r, i, n);
    }
    return e;
  };
  de.buildBinary = function(e, t, r, i, n, a) {
    i.type === "PrivateIdentifier" && this.raise(i.start, "Private identifier can only be left side of binary expression");
    var u = this.startNodeAt(e, t);
    return u.left = r, u.operator = n, u.right = i, this.finishNode(u, a ? "LogicalExpression" : "BinaryExpression");
  };
  de.parseMaybeUnary = function(e, t, r, i) {
    var n = this.start, a = this.startLoc, u;
    if (this.isContextual("await") && this.canAwait)
      u = this.parseAwait(i), t = !0;
    else if (this.type.prefix) {
      var o = this.startNode(), l = this.type === F.incDec;
      o.operator = this.value, o.prefix = !0, this.next(), o.argument = this.parseMaybeUnary(null, !0, l, i), this.checkExpressionErrors(e, !0),
      l ? this.checkLValSimple(o.argument) : this.strict && o.operator === "delete" && W1(o.argument) ? this.raiseRecoverable(o.start, "Dele\
ting local variable in strict mode") : o.operator === "delete" && Dp(o.argument) ? this.raiseRecoverable(o.start, "Private fields can not be\
 deleted") : t = !0, u = this.finishNode(o, l ? "UpdateExpression" : "UnaryExpression");
    } else if (!t && this.type === F.privateId)
      (i || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), u = this.parsePrivateIdent(), this.
      type !== F._in && this.unexpected();
    else {
      if (u = this.parseExprSubscripts(e, i), this.checkExpressionErrors(e))
        return u;
      for (; this.type.postfix && !this.canInsertSemicolon(); ) {
        var c = this.startNodeAt(n, a);
        c.operator = this.value, c.prefix = !1, c.argument = u, this.checkLValSimple(u), this.next(), u = this.finishNode(c, "UpdateExpressi\
on");
      }
    }
    if (!r && this.eat(F.starstar))
      if (t)
        this.unexpected(this.lastTokStart);
      else
        return this.buildBinary(n, a, u, this.parseMaybeUnary(null, !1, !1, i), "**", !1);
    else
      return u;
  };
  s(W1, "isLocalVariableAccess");
  s(Dp, "isPrivateFieldAccess");
  de.parseExprSubscripts = function(e, t) {
    var r = this.start, i = this.startLoc, n = this.parseExprAtom(e, t);
    if (n.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
      return n;
    var a = this.parseSubscripts(n, r, i, !1, t);
    return e && a.type === "MemberExpression" && (e.parenthesizedAssign >= a.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= a.
    start && (e.parenthesizedBind = -1), e.trailingComma >= a.start && (e.trailingComma = -1)), a;
  };
  de.parseSubscripts = function(e, t, r, i, n) {
    for (var a = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() &&
    e.end - e.start === 5 && this.potentialArrowAt === e.start, u = !1; ; ) {
      var o = this.parseSubscript(e, t, r, i, a, u, n);
      if (o.optional && (u = !0), o === e || o.type === "ArrowFunctionExpression") {
        if (u) {
          var l = this.startNodeAt(t, r);
          l.expression = o, o = this.finishNode(l, "ChainExpression");
        }
        return o;
      }
      e = o;
    }
  };
  de.shouldParseAsyncArrow = function() {
    return !this.canInsertSemicolon() && this.eat(F.arrow);
  };
  de.parseSubscriptAsyncArrow = function(e, t, r, i) {
    return this.parseArrowExpression(this.startNodeAt(e, t), r, !0, i);
  };
  de.parseSubscript = function(e, t, r, i, n, a, u) {
    var o = this.options.ecmaVersion >= 11, l = o && this.eat(F.questionDot);
    i && l && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
    var c = this.eat(F.bracketL);
    if (c || l && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
      var h = this.startNodeAt(t, r);
      h.object = e, c ? (h.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && e.type !== "Super" ? h.
      property = this.parsePrivateIdent() : h.property = this.parseIdent(this.options.allowReserved !== "never"), h.computed = !!c, o && (h.
      optional = l), e = this.finishNode(h, "MemberExpression");
    } else if (!i && this.eat(F.parenL)) {
      var p = new Mu(), d = this.yieldPos, m = this.awaitPos, g = this.awaitIdentPos;
      this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
      var D = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, p);
      if (n && !l && this.shouldParseAsyncArrow())
        return this.checkPatternErrors(p, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos,
        "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = m, this.awaitIdentPos = g, this.parseSubscriptAsyncArrow(
        t, r, D, u);
      this.checkExpressionErrors(p, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = m || this.awaitPos, this.awaitIdentPos = g || this.
      awaitIdentPos;
      var v = this.startNodeAt(t, r);
      v.callee = e, v.arguments = D, o && (v.optional = l), e = this.finishNode(v, "CallExpression");
    } else if (this.type === F.backQuote) {
      (l || a) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
      var y = this.startNodeAt(t, r);
      y.tag = e, y.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(y, "TaggedTemplateExpression");
    }
    return e;
  };
  de.parseExprAtom = function(e, t, r) {
    this.type === F.slash && this.readRegexp();
    var i, n = this.potentialArrowAt === this.start;
    switch (this.type) {
      case F._super:
        return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), i = this.startNode(), this.next(), this.type ===
        F.parenL && !this.allowDirectSuper && this.raise(i.start, "super() call outside constructor of a subclass"), this.type !== F.dot && this.
        type !== F.bracketL && this.type !== F.parenL && this.unexpected(), this.finishNode(i, "Super");
      case F._this:
        return i = this.startNode(), this.next(), this.finishNode(i, "ThisExpression");
      case F.name:
        var a = this.start, u = this.startLoc, o = this.containsEsc, l = this.parseIdent(!1);
        if (this.options.ecmaVersion >= 8 && !o && l.name === "async" && !this.canInsertSemicolon() && this.eat(F._function))
          return this.overrideContext($e.f_expr), this.parseFunction(this.startNodeAt(a, u), 0, !1, !0, t);
        if (n && !this.canInsertSemicolon()) {
          if (this.eat(F.arrow))
            return this.parseArrowExpression(this.startNodeAt(a, u), [l], !1, t);
          if (this.options.ecmaVersion >= 8 && l.name === "async" && this.type === F.name && !o && (!this.potentialArrowInForAwait || this.value !==
          "of" || this.containsEsc))
            return l = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(F.arrow)) && this.unexpected(), this.parseArrowExpression(
            this.startNodeAt(a, u), [l], !0, t);
        }
        return l;
      case F.regexp:
        var c = this.value;
        return i = this.parseLiteral(c.value), i.regex = { pattern: c.pattern, flags: c.flags }, i;
      case F.num:
      case F.string:
        return this.parseLiteral(this.value);
      case F._null:
      case F._true:
      case F._false:
        return i = this.startNode(), i.value = this.type === F._null ? null : this.type === F._true, i.raw = this.type.keyword, this.next(),
        this.finishNode(i, "Literal");
      case F.parenL:
        var h = this.start, p = this.parseParenAndDistinguishExpression(n, t);
        return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(p) && (e.parenthesizedAssign = h), e.parenthesizedBind < 0 && (e.
        parenthesizedBind = h)), p;
      case F.bracketL:
        return i = this.startNode(), this.next(), i.elements = this.parseExprList(F.bracketR, !0, !0, e), this.finishNode(i, "ArrayExpressio\
n");
      case F.braceL:
        return this.overrideContext($e.b_expr), this.parseObj(!1, e);
      case F._function:
        return i = this.startNode(), this.next(), this.parseFunction(i, 0);
      case F._class:
        return this.parseClass(this.startNode(), !1);
      case F._new:
        return this.parseNew();
      case F.backQuote:
        return this.parseTemplate();
      case F._import:
        return this.options.ecmaVersion >= 11 ? this.parseExprImport(r) : this.unexpected();
      default:
        return this.parseExprAtomDefault();
    }
  };
  de.parseExprAtomDefault = function() {
    this.unexpected();
  };
  de.parseExprImport = function(e) {
    var t = this.startNode();
    if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === F.parenL && !e)
      return this.parseDynamicImport(t);
    if (this.type === F.dot) {
      var r = this.startNodeAt(t.start, t.loc && t.loc.start);
      return r.name = "import", t.meta = this.finishNode(r, "Identifier"), this.parseImportMeta(t);
    } else
      this.unexpected();
  };
  de.parseDynamicImport = function(e) {
    if (this.next(), e.source = this.parseMaybeAssign(), !this.eat(F.parenR)) {
      var t = this.start;
      this.eat(F.comma) && this.eat(F.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
    }
    return this.finishNode(e, "ImportExpression");
  };
  de.parseImportMeta = function(e) {
    this.next();
    var t = this.containsEsc;
    return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta prop\
erty for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !==
    "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.
    finishNode(e, "MetaProperty");
  };
  de.parseLiteral = function(e) {
    var t = this.startNode();
    return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.raw.slice(
    0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
  };
  de.parseParenExpression = function() {
    this.expect(F.parenL);
    var e = this.parseExpression();
    return this.expect(F.parenR), e;
  };
  de.shouldParseArrow = function(e) {
    return !this.canInsertSemicolon();
  };
  de.parseParenAndDistinguishExpression = function(e, t) {
    var r = this.start, i = this.startLoc, n, a = this.options.ecmaVersion >= 8;
    if (this.options.ecmaVersion >= 6) {
      this.next();
      var u = this.start, o = this.startLoc, l = [], c = !0, h = !1, p = new Mu(), d = this.yieldPos, m = this.awaitPos, g;
      for (this.yieldPos = 0, this.awaitPos = 0; this.type !== F.parenR; )
        if (c ? c = !1 : this.expect(F.comma), a && this.afterTrailingComma(F.parenR, !0)) {
          h = !0;
          break;
        } else if (this.type === F.ellipsis) {
          g = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === F.comma && this.raiseRecoverable(
            this.start,
            "Comma is not permitted after the rest element"
          );
          break;
        } else
          l.push(this.parseMaybeAssign(!1, p, this.parseParenItem));
      var D = this.lastTokEnd, v = this.lastTokEndLoc;
      if (this.expect(F.parenR), e && this.shouldParseArrow(l) && this.eat(F.arrow))
        return this.checkPatternErrors(p, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = m, this.parseParenArrowList(
        r, i, l, t);
      (!l.length || h) && this.unexpected(this.lastTokStart), g && this.unexpected(g), this.checkExpressionErrors(p, !0), this.yieldPos = d ||
      this.yieldPos, this.awaitPos = m || this.awaitPos, l.length > 1 ? (n = this.startNodeAt(u, o), n.expressions = l, this.finishNodeAt(n,
      "SequenceExpression", D, v)) : n = l[0];
    } else
      n = this.parseParenExpression();
    if (this.options.preserveParens) {
      var y = this.startNodeAt(r, i);
      return y.expression = n, this.finishNode(y, "ParenthesizedExpression");
    } else
      return n;
  };
  de.parseParenItem = function(e) {
    return e;
  };
  de.parseParenArrowList = function(e, t, r, i) {
    return this.parseArrowExpression(this.startNodeAt(e, t), r, !1, i);
  };
  _4 = [];
  de.parseNew = function() {
    this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
    var e = this.startNode();
    if (this.next(), this.options.ecmaVersion >= 6 && this.type === F.dot) {
      var t = this.startNodeAt(e.start, e.loc && e.loc.start);
      t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
      var r = this.containsEsc;
      return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta \
property for new is 'new.target'"), r && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget ||
      this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
    }
    var i = this.start, n = this.startLoc;
    return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), i, n, !0, !1), this.eat(F.parenL) ? e.arguments = this.parseExprList(
    F.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = _4, this.finishNode(e, "NewExpression");
  };
  de.parseTemplateElement = function(e) {
    var t = e.isTagged, r = this.startNode();
    return this.type === F.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), r.
    value = {
      raw: this.value.replace(/\r\n?/g, `
`),
      cooked: null
    }) : r.value = {
      raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
`),
      cooked: this.value
    }, this.next(), r.tail = this.type === F.backQuote, this.finishNode(r, "TemplateElement");
  };
  de.parseTemplate = function(e) {
    e === void 0 && (e = {});
    var t = e.isTagged;
    t === void 0 && (t = !1);
    var r = this.startNode();
    this.next(), r.expressions = [];
    var i = this.parseTemplateElement({ isTagged: t });
    for (r.quasis = [i]; !i.tail; )
      this.type === F.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(F.dollarBraceL), r.expressions.push(this.parseExpression()),
      this.expect(F.braceR), r.quasis.push(i = this.parseTemplateElement({ isTagged: t }));
    return this.next(), this.finishNode(r, "TemplateLiteral");
  };
  de.isAsyncProp = function(e) {
    return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === F.name || this.type === F.num || this.type ===
    F.string || this.type === F.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === F.star) && !Zt.test(this.input.
    slice(this.lastTokEnd, this.start));
  };
  de.parseObj = function(e, t) {
    var r = this.startNode(), i = !0, n = {};
    for (r.properties = [], this.next(); !this.eat(F.braceR); ) {
      if (i)
        i = !1;
      else if (this.expect(F.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(F.braceR))
        break;
      var a = this.parseProperty(e, t);
      e || this.checkPropClash(a, n, t), r.properties.push(a);
    }
    return this.finishNode(r, e ? "ObjectPattern" : "ObjectExpression");
  };
  de.parseProperty = function(e, t) {
    var r = this.startNode(), i, n, a, u;
    if (this.options.ecmaVersion >= 9 && this.eat(F.ellipsis))
      return e ? (r.argument = this.parseIdent(!1), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after\
 the rest element"), this.finishNode(r, "RestElement")) : (r.argument = this.parseMaybeAssign(!1, t), this.type === F.comma && t && t.trailingComma <
      0 && (t.trailingComma = this.start), this.finishNode(r, "SpreadElement"));
    this.options.ecmaVersion >= 6 && (r.method = !1, r.shorthand = !1, (e || t) && (a = this.start, u = this.startLoc), e || (i = this.eat(F.
    star)));
    var o = this.containsEsc;
    return this.parsePropertyName(r), !e && !o && this.options.ecmaVersion >= 8 && !i && this.isAsyncProp(r) ? (n = !0, i = this.options.ecmaVersion >=
    9 && this.eat(F.star), this.parsePropertyName(r)) : n = !1, this.parsePropertyValue(r, e, i, n, a, u, t, o), this.finishNode(r, "Propert\
y");
  };
  de.parseGetterSetter = function(e) {
    e.kind = e.key.name, this.parsePropertyName(e), e.value = this.parseMethod(!1);
    var t = e.kind === "get" ? 0 : 1;
    if (e.value.params.length !== t) {
      var r = e.value.start;
      e.kind === "get" ? this.raiseRecoverable(r, "getter should have no params") : this.raiseRecoverable(r, "setter should have exactly one\
 param");
    } else
      e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest\
 params");
  };
  de.parsePropertyValue = function(e, t, r, i, n, a, u, o) {
    (r || i) && this.type === F.colon && this.unexpected(), this.eat(F.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) :
    this.parseMaybeAssign(!1, u), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === F.parenL ? (t && this.unexpected(), e.kind =
    "init", e.method = !0, e.value = this.parseMethod(r, i)) : !t && !o && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "I\
dentifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== F.comma && this.type !== F.braceR && this.type !== F.eq ? ((r ||
    i) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((r ||
    i) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = n), e.kind =
    "init", t ? e.value = this.parseMaybeDefault(n, a, this.copyNode(e.key)) : this.type === F.eq && u ? (u.shorthandAssign < 0 && (u.shorthandAssign =
    this.start), e.value = this.parseMaybeDefault(n, a, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.shorthand = !0) : this.unexpected();
  };
  de.parsePropertyName = function(e) {
    if (this.options.ecmaVersion >= 6) {
      if (this.eat(F.bracketL))
        return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(F.bracketR), e.key;
      e.computed = !1;
    }
    return e.key = this.type === F.num || this.type === F.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "ne\
ver");
  };
  de.initFunction = function(e) {
    e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
  };
  de.parseMethod = function(e, t, r) {
    var i = this.startNode(), n = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
    return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = e), this.options.ecmaVersion >= 8 && (i.async = !!t), this.
    yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(vp(t, i.generator) | Ep | (r ? $1 : 0)), this.expect(F.parenL),
    i.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(
    i, !1, !0, !1), this.yieldPos = n, this.awaitPos = a, this.awaitIdentPos = u, this.finishNode(i, "FunctionExpression");
  };
  de.parseArrowExpression = function(e, t, r, i) {
    var n = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
    return this.enterScope(vp(r, !1) | j1), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!r), this.yieldPos = 0, this.
    awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, i), this.yieldPos = n, this.
    awaitPos = a, this.awaitIdentPos = u, this.finishNode(e, "ArrowFunctionExpression");
  };
  de.parseFunctionBody = function(e, t, r, i) {
    var n = t && this.type !== F.braceL, a = this.strict, u = !1;
    if (n)
      e.body = this.parseMaybeAssign(i), e.expression = !0, this.checkParams(e, !1);
    else {
      var o = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
      (!a || o) && (u = this.strictDirective(this.end), u && o && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function\
 with non-simple parameter list"));
      var l = this.labels;
      this.labels = [], u && (this.strict = !0), this.checkParams(e, !a && !u && !t && !r && this.isSimpleParamList(e.params)), this.strict &&
      e.id && this.checkLValSimple(e.id, z1), e.body = this.parseBlock(!1, void 0, u && !a), e.expression = !1, this.adaptDirectivePrologue(
      e.body.body), this.labels = l;
    }
    this.exitScope();
  };
  de.isSimpleParamList = function(e) {
    for (var t = 0, r = e; t < r.length; t += 1) {
      var i = r[t];
      if (i.type !== "Identifier")
        return !1;
    }
    return !0;
  };
  de.checkParams = function(e, t) {
    for (var r = /* @__PURE__ */ Object.create(null), i = 0, n = e.params; i < n.length; i += 1) {
      var a = n[i];
      this.checkLValInnerPattern(a, Cp, t ? null : r);
    }
  };
  de.parseExprList = function(e, t, r, i) {
    for (var n = [], a = !0; !this.eat(e); ) {
      if (a)
        a = !1;
      else if (this.expect(F.comma), t && this.afterTrailingComma(e))
        break;
      var u = void 0;
      r && this.type === F.comma ? u = null : this.type === F.ellipsis ? (u = this.parseSpread(i), i && this.type === F.comma && i.trailingComma <
      0 && (i.trailingComma = this.start)) : u = this.parseMaybeAssign(!1, i), n.push(u);
    }
    return n;
  };
  de.checkUnreserved = function(e) {
    var t = e.start, r = e.end, i = e.name;
    if (this.inGenerator && i === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync &&
    i === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().inClassFieldInit &&
    i === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (i === "a\
rguments" || i === "await") && this.raise(t, "Cannot use " + i + " in class static initialization block"), this.keywords.test(i) && this.raise(
    t, "Unexpected keyword '" + i + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, r).indexOf("\\") !== -1)) {
      var n = this.strict ? this.reservedWordsStrict : this.reservedWords;
      n.test(i) && (!this.inAsync && i === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.
      raiseRecoverable(t, "The keyword '" + i + "' is reserved"));
    }
  };
  de.parseIdent = function(e) {
    var t = this.parseIdentNode();
    return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.
    awaitIdentPos = t.start)), t;
  };
  de.parseIdentNode = function() {
    var e = this.startNode();
    return this.type === F.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "\
function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type =
    F.name) : this.unexpected(), e;
  };
  de.parsePrivateIdent = function() {
    var e = this.startNode();
    return this.type === F.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.
    checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an \
enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
  };
  de.parseYield = function(e) {
    this.yieldPos || (this.yieldPos = this.start);
    var t = this.startNode();
    return this.next(), this.type === F.semi || this.canInsertSemicolon() || this.type !== F.star && !this.type.startsExpr ? (t.delegate = !1,
    t.argument = null) : (t.delegate = this.eat(F.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
  };
  de.parseAwait = function(e) {
    this.awaitPos || (this.awaitPos = this.start);
    var t = this.startNode();
    return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
  };
  Ru = tt.prototype;
  Ru.raise = function(e, t) {
    var r = L1(this.input, e);
    t += " (" + r.line + ":" + r.column + ")";
    var i = new SyntaxError(t);
    throw i.pos = e, i.loc = r, i.raisedAt = this.pos, i;
  };
  Ru.raiseRecoverable = Ru.raise;
  Ru.curPosition = function() {
    if (this.options.locations)
      return new Vs(this.curLine, this.pos - this.lineStart);
  };
  Ai = tt.prototype, k4 = /* @__PURE__ */ s(function(t) {
    this.flags = t, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
  }, "Scope");
  Ai.enterScope = function(e) {
    this.scopeStack.push(new k4(e));
  };
  Ai.exitScope = function() {
    this.scopeStack.pop();
  };
  Ai.treatFunctionsAsVarInScope = function(e) {
    return e.flags & jn || !this.inModule && e.flags & Us;
  };
  Ai.declareName = function(e, t, r) {
    var i = !1;
    if (t === Zr) {
      var n = this.currentScope();
      i = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & Us &&
      delete this.undefinedExports[e];
    } else if (t === U1) {
      var a = this.currentScope();
      a.lexical.push(e);
    } else if (t === V1) {
      var u = this.currentScope();
      this.treatFunctionsAsVar ? i = u.lexical.indexOf(e) > -1 : i = u.lexical.indexOf(e) > -1 || u.var.indexOf(e) > -1, u.functions.push(e);
    } else
      for (var o = this.scopeStack.length - 1; o >= 0; --o) {
        var l = this.scopeStack[o];
        if (l.lexical.indexOf(e) > -1 && !(l.flags & q1 && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(
        e) > -1) {
          i = !0;
          break;
        }
        if (l.var.push(e), this.inModule && l.flags & Us && delete this.undefinedExports[e], l.flags & bp)
          break;
      }
    i && this.raiseRecoverable(r, "Identifier '" + e + "' has already been declared");
  };
  Ai.checkLocalExport = function(e) {
    this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
  };
  Ai.currentScope = function() {
    return this.scopeStack[this.scopeStack.length - 1];
  };
  Ai.currentVarScope = function() {
    for (var e = this.scopeStack.length - 1; ; e--) {
      var t = this.scopeStack[e];
      if (t.flags & bp)
        return t;
    }
  };
  Ai.currentThisScope = function() {
    for (var e = this.scopeStack.length - 1; ; e--) {
      var t = this.scopeStack[e];
      if (t.flags & bp && !(t.flags & j1))
        return t;
    }
  };
  ju = /* @__PURE__ */ s(function(t, r, i) {
    this.type = "", this.start = r, this.end = 0, t.options.locations && (this.loc = new Lu(t, i)), t.options.directSourceFile && (this.sourceFile =
    t.options.directSourceFile), t.options.ranges && (this.range = [r, 0]);
  }, "Node"), Ws = tt.prototype;
  Ws.startNode = function() {
    return new ju(this, this.start, this.startLoc);
  };
  Ws.startNodeAt = function(e, t) {
    return new ju(this, e, t);
  };
  s(J1, "finishNodeAt");
  Ws.finishNode = function(e, t) {
    return J1.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
  };
  Ws.finishNodeAt = function(e, t, r, i) {
    return J1.call(this, e, t, r, i);
  };
  Ws.copyNode = function(e) {
    var t = new ju(this, e.start, this.startLoc);
    for (var r in e)
      t[r] = e[r];
    return t;
  };
  G1 = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_Wh\
en_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT C\
hanges_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modi\
fier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Op\
erator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_\
Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STer\
m Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC\
 XID_Start XIDS", X1 = G1 + " Extended_Pictographic", Y1 = X1, K1 = Y1 + " EBase EComp EMod EPres ExtPict", Q1 = K1, T4 = Q1, B4 = {
    9: G1,
    10: X1,
    11: Y1,
    12: K1,
    13: Q1,
    14: T4
  }, P4 = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequen\
ce RGI_Emoji", I4 = {
    9: "",
    10: "",
    11: "",
    12: "",
    13: "",
    14: P4
  }, T1 = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Num\
ber Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_L\
etter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C \
Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z S\
pace_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Z1 = "Adlam Adlm Ahom Anatol\
ian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks B\
opomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham\
 Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egypti\
an_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru\
 Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phl\
i Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khud\
awadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam \
Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hierog\
lyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Og\
ham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old\
_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahl\
avi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Som\
peng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri\
 Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wa\
ra Yi Yiii Zanabazar_Square Zanb", eE = Z1 + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian \
Sogo Sogdian Sogd", tE = eE + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", rE = tE + " Chorasmian Chrs Diak Div\
es_Akuru Khitan_Small_Script Kits Yezi Yezidi", iE = rE + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", O4 = iE + " H\
rkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", R4 = {
    9: Z1,
    10: eE,
    11: tE,
    12: rE,
    13: iE,
    14: O4
  }, nE = {};
  s(N4, "buildUnicodeData");
  for (Pu = 0, fp = [9, 10, 11, 12, 13, 14]; Pu < fp.length; Pu += 1)
    B1 = fp[Pu], N4(B1);
  re = tt.prototype, Nu = /* @__PURE__ */ s(function(t, r) {
    this.parent = t, this.base = r || this;
  }, "BranchID");
  Nu.prototype.separatedFrom = /* @__PURE__ */ s(function(t) {
    for (var r = this; r; r = r.parent)
      for (var i = t; i; i = i.parent)
        if (r.base === i.base && r !== i)
          return !0;
    return !1;
  }, "separatedFrom");
  Nu.prototype.sibling = /* @__PURE__ */ s(function() {
    return new Nu(this.parent, this.base);
  }, "sibling");
  Pr = /* @__PURE__ */ s(function(t) {
    this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.
    ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = nE[t.options.ecmaVersion >= 14 ? 14 :
    t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.
    pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference =
    0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
  }, "RegExpValidationState");
  Pr.prototype.reset = /* @__PURE__ */ s(function(t, r, i) {
    var n = i.indexOf("v") !== -1, a = i.indexOf("u") !== -1;
    this.start = t | 0, this.source = r + "", this.flags = i, n && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV =
    !0, this.switchN = !0) : (this.switchU = a && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = a && this.parser.options.
    ecmaVersion >= 9);
  }, "reset");
  Pr.prototype.raise = /* @__PURE__ */ s(function(t) {
    this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
  }, "raise");
  Pr.prototype.at = /* @__PURE__ */ s(function(t, r) {
    r === void 0 && (r = !1);
    var i = this.source, n = i.length;
    if (t >= n)
      return -1;
    var a = i.charCodeAt(t);
    if (!(r || this.switchU) || a <= 55295 || a >= 57344 || t + 1 >= n)
      return a;
    var u = i.charCodeAt(t + 1);
    return u >= 56320 && u <= 57343 ? (a << 10) + u - 56613888 : a;
  }, "at");
  Pr.prototype.nextIndex = /* @__PURE__ */ s(function(t, r) {
    r === void 0 && (r = !1);
    var i = this.source, n = i.length;
    if (t >= n)
      return n;
    var a = i.charCodeAt(t), u;
    return !(r || this.switchU) || a <= 55295 || a >= 57344 || t + 1 >= n || (u = i.charCodeAt(t + 1)) < 56320 || u > 57343 ? t + 1 : t + 2;
  }, "nextIndex");
  Pr.prototype.current = /* @__PURE__ */ s(function(t) {
    return t === void 0 && (t = !1), this.at(this.pos, t);
  }, "current");
  Pr.prototype.lookahead = /* @__PURE__ */ s(function(t) {
    return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
  }, "lookahead");
  Pr.prototype.advance = /* @__PURE__ */ s(function(t) {
    t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
  }, "advance");
  Pr.prototype.eat = /* @__PURE__ */ s(function(t, r) {
    return r === void 0 && (r = !1), this.current(r) === t ? (this.advance(r), !0) : !1;
  }, "eat");
  Pr.prototype.eatChars = /* @__PURE__ */ s(function(t, r) {
    r === void 0 && (r = !1);
    for (var i = this.pos, n = 0, a = t; n < a.length; n += 1) {
      var u = a[n], o = this.at(i, r);
      if (o === -1 || o !== u)
        return !1;
      i = this.nextIndex(i, r);
    }
    return this.pos = i, !0;
  }, "eatChars");
  re.validateRegExpFlags = function(e) {
    for (var t = e.validFlags, r = e.flags, i = !1, n = !1, a = 0; a < r.length; a++) {
      var u = r.charAt(a);
      t.indexOf(u) === -1 && this.raise(e.start, "Invalid regular expression flag"), r.indexOf(u, a + 1) > -1 && this.raise(e.start, "Duplic\
ate regular expression flag"), u === "u" && (i = !0), u === "v" && (n = !0);
    }
    this.options.ecmaVersion >= 15 && i && n && this.raise(e.start, "Invalid regular expression flag");
  };
  s(L4, "hasProp");
  re.validateRegExpPattern = function(e) {
    this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && L4(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
  };
  re.regexp_pattern = function(e) {
    e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference =
    0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.
    pos !== e.source.length && (e.eat(
      41
      /* ) */
    ) && e.raise("Unmatched ')'"), (e.eat(
      93
      /* ] */
    ) || e.eat(
      125
      /* } */
    )) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
    for (var t = 0, r = e.backReferenceNames; t < r.length; t += 1) {
      var i = r[t];
      e.groupNames[i] || e.raise("Invalid named capture referenced");
    }
  };
  re.regexp_disjunction = function(e) {
    var t = this.options.ecmaVersion >= 16;
    for (t && (e.branchID = new Nu(e.branchID, null)), this.regexp_alternative(e); e.eat(
      124
      /* | */
    ); )
      t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
    t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(
      123
      /* { */
    ) && e.raise("Lone quantifier brackets");
  };
  re.regexp_alternative = function(e) {
    for (; e.pos < e.source.length && this.regexp_eatTerm(e); )
      ;
  };
  re.regexp_eatTerm = function(e) {
    return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid qua\
ntifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
  };
  re.regexp_eatAssertion = function(e) {
    var t = e.pos;
    if (e.lastAssertionIsQuantifiable = !1, e.eat(
      94
      /* ^ */
    ) || e.eat(
      36
      /* $ */
    ))
      return !0;
    if (e.eat(
      92
      /* \ */
    )) {
      if (e.eat(
        66
        /* B */
      ) || e.eat(
        98
        /* b */
      ))
        return !0;
      e.pos = t;
    }
    if (e.eat(
      40
      /* ( */
    ) && e.eat(
      63
      /* ? */
    )) {
      var r = !1;
      if (this.options.ecmaVersion >= 9 && (r = e.eat(
        60
        /* < */
      )), e.eat(
        61
        /* = */
      ) || e.eat(
        33
        /* ! */
      ))
        return this.regexp_disjunction(e), e.eat(
          41
          /* ) */
        ) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !r, !0;
    }
    return e.pos = t, !1;
  };
  re.regexp_eatQuantifier = function(e, t) {
    return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(
      63
      /* ? */
    ), !0) : !1;
  };
  re.regexp_eatQuantifierPrefix = function(e, t) {
    return e.eat(
      42
      /* * */
    ) || e.eat(
      43
      /* + */
    ) || e.eat(
      63
      /* ? */
    ) || this.regexp_eatBracedQuantifier(e, t);
  };
  re.regexp_eatBracedQuantifier = function(e, t) {
    var r = e.pos;
    if (e.eat(
      123
      /* { */
    )) {
      var i = 0, n = -1;
      if (this.regexp_eatDecimalDigits(e) && (i = e.lastIntValue, e.eat(
        44
        /* , */
      ) && this.regexp_eatDecimalDigits(e) && (n = e.lastIntValue), e.eat(
        125
        /* } */
      )))
        return n !== -1 && n < i && !t && e.raise("numbers out of order in {} quantifier"), !0;
      e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = r;
    }
    return !1;
  };
  re.regexp_eatAtom = function(e) {
    return this.regexp_eatPatternCharacters(e) || e.eat(
      46
      /* . */
    ) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(
    e);
  };
  re.regexp_eatReverseSolidusAtomEscape = function(e) {
    var t = e.pos;
    if (e.eat(
      92
      /* \ */
    )) {
      if (this.regexp_eatAtomEscape(e))
        return !0;
      e.pos = t;
    }
    return !1;
  };
  re.regexp_eatUncapturingGroup = function(e) {
    var t = e.pos;
    if (e.eat(
      40
      /* ( */
    )) {
      if (e.eat(
        63
        /* ? */
      ) && e.eat(
        58
        /* : */
      )) {
        if (this.regexp_disjunction(e), e.eat(
          41
          /* ) */
        ))
          return !0;
        e.raise("Unterminated group");
      }
      e.pos = t;
    }
    return !1;
  };
  re.regexp_eatCapturingGroup = function(e) {
    if (e.eat(
      40
      /* ( */
    )) {
      if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(
      e), e.eat(
        41
        /* ) */
      ))
        return e.numCapturingParens += 1, !0;
      e.raise("Unterminated group");
    }
    return !1;
  };
  re.regexp_eatExtendedAtom = function(e) {
    return e.eat(
      46
      /* . */
    ) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(
    e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
  };
  re.regexp_eatInvalidBracedQuantifier = function(e) {
    return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
  };
  re.regexp_eatSyntaxCharacter = function(e) {
    var t = e.current();
    return sE(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
  };
  s(sE, "isSyntaxCharacter");
  re.regexp_eatPatternCharacters = function(e) {
    for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !sE(r); )
      e.advance();
    return e.pos !== t;
  };
  re.regexp_eatExtendedPatternCharacter = function(e) {
    var t = e.current();
    return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
  };
  re.regexp_groupSpecifier = function(e) {
    if (e.eat(
      63
      /* ? */
    )) {
      this.regexp_eatGroupName(e) || e.raise("Invalid group");
      var t = this.options.ecmaVersion >= 16, r = e.groupNames[e.lastStringValue];
      if (r)
        if (t)
          for (var i = 0, n = r; i < n.length; i += 1) {
            var a = n[i];
            a.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
          }
        else
          e.raise("Duplicate capture group name");
      t ? (r || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
    }
  };
  re.regexp_eatGroupName = function(e) {
    if (e.lastStringValue = "", e.eat(
      60
      /* < */
    )) {
      if (this.regexp_eatRegExpIdentifierName(e) && e.eat(
        62
        /* > */
      ))
        return !0;
      e.raise("Invalid capture group name");
    }
    return !1;
  };
  re.regexp_eatRegExpIdentifierName = function(e) {
    if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
      for (e.lastStringValue += wi(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
        e.lastStringValue += wi(e.lastIntValue);
      return !0;
    }
    return !1;
  };
  re.regexp_eatRegExpIdentifierStart = function(e) {
    var t = e.pos, r = this.options.ecmaVersion >= 11, i = e.current(r);
    return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue), M4(i) ? (e.lastIntValue = i, !0) :
    (e.pos = t, !1);
  };
  s(M4, "isRegExpIdentifierStart");
  re.regexp_eatRegExpIdentifierPart = function(e) {
    var t = e.pos, r = this.options.ecmaVersion >= 11, i = e.current(r);
    return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue), j4(i) ? (e.lastIntValue = i, !0) :
    (e.pos = t, !1);
  };
  s(j4, "isRegExpIdentifierPart");
  re.regexp_eatAtomEscape = function(e) {
    return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.
    regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
  };
  re.regexp_eatBackReference = function(e) {
    var t = e.pos;
    if (this.regexp_eatDecimalEscape(e)) {
      var r = e.lastIntValue;
      if (e.switchU)
        return r > e.maxBackReference && (e.maxBackReference = r), !0;
      if (r <= e.numCapturingParens)
        return !0;
      e.pos = t;
    }
    return !1;
  };
  re.regexp_eatKGroupName = function(e) {
    if (e.eat(
      107
      /* k */
    )) {
      if (this.regexp_eatGroupName(e))
        return e.backReferenceNames.push(e.lastStringValue), !0;
      e.raise("Invalid named reference");
    }
    return !1;
  };
  re.regexp_eatCharacterEscape = function(e) {
    return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(
    e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(
    e);
  };
  re.regexp_eatCControlLetter = function(e) {
    var t = e.pos;
    if (e.eat(
      99
      /* c */
    )) {
      if (this.regexp_eatControlLetter(e))
        return !0;
      e.pos = t;
    }
    return !1;
  };
  re.regexp_eatZero = function(e) {
    return e.current() === 48 && !qu(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
  };
  re.regexp_eatControlEscape = function(e) {
    var t = e.current();
    return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue =
    11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
  };
  re.regexp_eatControlLetter = function(e) {
    var t = e.current();
    return aE(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
  };
  s(aE, "isControlLetter");
  re.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
    t === void 0 && (t = !1);
    var r = e.pos, i = t || e.switchU;
    if (e.eat(
      117
      /* u */
    )) {
      if (this.regexp_eatFixedHexDigits(e, 4)) {
        var n = e.lastIntValue;
        if (i && n >= 55296 && n <= 56319) {
          var a = e.pos;
          if (e.eat(
            92
            /* \ */
          ) && e.eat(
            117
            /* u */
          ) && this.regexp_eatFixedHexDigits(e, 4)) {
            var u = e.lastIntValue;
            if (u >= 56320 && u <= 57343)
              return e.lastIntValue = (n - 55296) * 1024 + (u - 56320) + 65536, !0;
          }
          e.pos = a, e.lastIntValue = n;
        }
        return !0;
      }
      if (i && e.eat(
        123
        /* { */
      ) && this.regexp_eatHexDigits(e) && e.eat(
        125
        /* } */
      ) && q4(e.lastIntValue))
        return !0;
      i && e.raise("Invalid unicode escape"), e.pos = r;
    }
    return !1;
  };
  s(q4, "isValidUnicode");
  re.regexp_eatIdentityEscape = function(e) {
    if (e.switchU)
      return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(
        47
        /* / */
      ) ? (e.lastIntValue = 47, !0) : !1;
    var t = e.current();
    return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
  };
  re.regexp_eatDecimalEscape = function(e) {
    e.lastIntValue = 0;
    var t = e.current();
    if (t >= 49 && t <= 57) {
      do
        e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
      while ((t = e.current()) >= 48 && t <= 57);
      return !0;
    }
    return !1;
  };
  uE = 0, Qr = 1, Qt = 2;
  re.regexp_eatCharacterClassEscape = function(e) {
    var t = e.current();
    if ($4(t))
      return e.lastIntValue = -1, e.advance(), Qr;
    var r = !1;
    if (e.switchU && this.options.ecmaVersion >= 9 && ((r = t === 80) || t === 112)) {
      e.lastIntValue = -1, e.advance();
      var i;
      if (e.eat(
        123
        /* { */
      ) && (i = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(
        125
        /* } */
      ))
        return r && i === Qt && e.raise("Invalid property name"), i;
      e.raise("Invalid property name");
    }
    return uE;
  };
  s($4, "isCharacterClassEscape");
  re.regexp_eatUnicodePropertyValueExpression = function(e) {
    var t = e.pos;
    if (this.regexp_eatUnicodePropertyName(e) && e.eat(
      61
      /* = */
    )) {
      var r = e.lastStringValue;
      if (this.regexp_eatUnicodePropertyValue(e)) {
        var i = e.lastStringValue;
        return this.regexp_validateUnicodePropertyNameAndValue(e, r, i), Qr;
      }
    }
    if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
      var n = e.lastStringValue;
      return this.regexp_validateUnicodePropertyNameOrValue(e, n);
    }
    return uE;
  };
  re.regexp_validateUnicodePropertyNameAndValue = function(e, t, r) {
    zs(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(r) || e.raise("Invalid p\
roperty value");
  };
  re.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
    if (e.unicodeProperties.binary.test(t))
      return Qr;
    if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
      return Qt;
    e.raise("Invalid property name");
  };
  re.regexp_eatUnicodePropertyName = function(e) {
    var t = 0;
    for (e.lastStringValue = ""; oE(t = e.current()); )
      e.lastStringValue += wi(t), e.advance();
    return e.lastStringValue !== "";
  };
  s(oE, "isUnicodePropertyNameCharacter");
  re.regexp_eatUnicodePropertyValue = function(e) {
    var t = 0;
    for (e.lastStringValue = ""; V4(t = e.current()); )
      e.lastStringValue += wi(t), e.advance();
    return e.lastStringValue !== "";
  };
  s(V4, "isUnicodePropertyValueCharacter");
  re.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
    return this.regexp_eatUnicodePropertyValue(e);
  };
  re.regexp_eatCharacterClass = function(e) {
    if (e.eat(
      91
      /* [ */
    )) {
      var t = e.eat(
        94
        /* ^ */
      ), r = this.regexp_classContents(e);
      return e.eat(
        93
        /* ] */
      ) || e.raise("Unterminated character class"), t && r === Qt && e.raise("Negated character class may contain strings"), !0;
    }
    return !1;
  };
  re.regexp_classContents = function(e) {
    return e.current() === 93 ? Qr : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Qr);
  };
  re.regexp_nonEmptyClassRanges = function(e) {
    for (; this.regexp_eatClassAtom(e); ) {
      var t = e.lastIntValue;
      if (e.eat(
        45
        /* - */
      ) && this.regexp_eatClassAtom(e)) {
        var r = e.lastIntValue;
        e.switchU && (t === -1 || r === -1) && e.raise("Invalid character class"), t !== -1 && r !== -1 && t > r && e.raise("Range out of or\
der in character class");
      }
    }
  };
  re.regexp_eatClassAtom = function(e) {
    var t = e.pos;
    if (e.eat(
      92
      /* \ */
    )) {
      if (this.regexp_eatClassEscape(e))
        return !0;
      if (e.switchU) {
        var r = e.current();
        (r === 99 || hE(r)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
      }
      e.pos = t;
    }
    var i = e.current();
    return i !== 93 ? (e.lastIntValue = i, e.advance(), !0) : !1;
  };
  re.regexp_eatClassEscape = function(e) {
    var t = e.pos;
    if (e.eat(
      98
      /* b */
    ))
      return e.lastIntValue = 8, !0;
    if (e.switchU && e.eat(
      45
      /* - */
    ))
      return e.lastIntValue = 45, !0;
    if (!e.switchU && e.eat(
      99
      /* c */
    )) {
      if (this.regexp_eatClassControlLetter(e))
        return !0;
      e.pos = t;
    }
    return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
  };
  re.regexp_classSetExpression = function(e) {
    var t = Qr, r;
    if (!this.regexp_eatClassSetRange(e)) if (r = this.regexp_eatClassSetOperand(e)) {
      r === Qt && (t = Qt);
      for (var i = e.pos; e.eatChars(
        [38, 38]
        /* && */
      ); ) {
        if (e.current() !== 38 && (r = this.regexp_eatClassSetOperand(e))) {
          r !== Qt && (t = Qr);
          continue;
        }
        e.raise("Invalid character in character class");
      }
      if (i !== e.pos)
        return t;
      for (; e.eatChars(
        [45, 45]
        /* -- */
      ); )
        this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
      if (i !== e.pos)
        return t;
    } else
      e.raise("Invalid character in character class");
    for (; ; )
      if (!this.regexp_eatClassSetRange(e)) {
        if (r = this.regexp_eatClassSetOperand(e), !r)
          return t;
        r === Qt && (t = Qt);
      }
  };
  re.regexp_eatClassSetRange = function(e) {
    var t = e.pos;
    if (this.regexp_eatClassSetCharacter(e)) {
      var r = e.lastIntValue;
      if (e.eat(
        45
        /* - */
      ) && this.regexp_eatClassSetCharacter(e)) {
        var i = e.lastIntValue;
        return r !== -1 && i !== -1 && r > i && e.raise("Range out of order in character class"), !0;
      }
      e.pos = t;
    }
    return !1;
  };
  re.regexp_eatClassSetOperand = function(e) {
    return this.regexp_eatClassSetCharacter(e) ? Qr : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
  };
  re.regexp_eatNestedClass = function(e) {
    var t = e.pos;
    if (e.eat(
      91
      /* [ */
    )) {
      var r = e.eat(
        94
        /* ^ */
      ), i = this.regexp_classContents(e);
      if (e.eat(
        93
        /* ] */
      ))
        return r && i === Qt && e.raise("Negated character class may contain strings"), i;
      e.pos = t;
    }
    if (e.eat(
      92
      /* \ */
    )) {
      var n = this.regexp_eatCharacterClassEscape(e);
      if (n)
        return n;
      e.pos = t;
    }
    return null;
  };
  re.regexp_eatClassStringDisjunction = function(e) {
    var t = e.pos;
    if (e.eatChars(
      [92, 113]
      /* \q */
    )) {
      if (e.eat(
        123
        /* { */
      )) {
        var r = this.regexp_classStringDisjunctionContents(e);
        if (e.eat(
          125
          /* } */
        ))
          return r;
      } else
        e.raise("Invalid escape");
      e.pos = t;
    }
    return null;
  };
  re.regexp_classStringDisjunctionContents = function(e) {
    for (var t = this.regexp_classString(e); e.eat(
      124
      /* | */
    ); )
      this.regexp_classString(e) === Qt && (t = Qt);
    return t;
  };
  re.regexp_classString = function(e) {
    for (var t = 0; this.regexp_eatClassSetCharacter(e); )
      t++;
    return t === 1 ? Qr : Qt;
  };
  re.regexp_eatClassSetCharacter = function(e) {
    var t = e.pos;
    if (e.eat(
      92
      /* \ */
    ))
      return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(
        98
        /* b */
      ) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
    var r = e.current();
    return r < 0 || r === e.lookahead() && U4(r) || z4(r) ? !1 : (e.advance(), e.lastIntValue = r, !0);
  };
  s(U4, "isClassSetReservedDoublePunctuatorCharacter");
  s(z4, "isClassSetSyntaxCharacter");
  re.regexp_eatClassSetReservedPunctuator = function(e) {
    var t = e.current();
    return H4(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
  };
  s(H4, "isClassSetReservedPunctuator");
  re.regexp_eatClassControlLetter = function(e) {
    var t = e.current();
    return qu(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
  };
  re.regexp_eatHexEscapeSequence = function(e) {
    var t = e.pos;
    if (e.eat(
      120
      /* x */
    )) {
      if (this.regexp_eatFixedHexDigits(e, 2))
        return !0;
      e.switchU && e.raise("Invalid escape"), e.pos = t;
    }
    return !1;
  };
  re.regexp_eatDecimalDigits = function(e) {
    var t = e.pos, r = 0;
    for (e.lastIntValue = 0; qu(r = e.current()); )
      e.lastIntValue = 10 * e.lastIntValue + (r - 48), e.advance();
    return e.pos !== t;
  };
  s(qu, "isDecimalDigit");
  re.regexp_eatHexDigits = function(e) {
    var t = e.pos, r = 0;
    for (e.lastIntValue = 0; lE(r = e.current()); )
      e.lastIntValue = 16 * e.lastIntValue + cE(r), e.advance();
    return e.pos !== t;
  };
  s(lE, "isHexDigit");
  s(cE, "hexToInt");
  re.regexp_eatLegacyOctalEscapeSequence = function(e) {
    if (this.regexp_eatOctalDigit(e)) {
      var t = e.lastIntValue;
      if (this.regexp_eatOctalDigit(e)) {
        var r = e.lastIntValue;
        t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + r * 8 + e.lastIntValue : e.lastIntValue = t * 8 + r;
      } else
        e.lastIntValue = t;
      return !0;
    }
    return !1;
  };
  re.regexp_eatOctalDigit = function(e) {
    var t = e.current();
    return hE(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
  };
  s(hE, "isOctalDigit");
  re.regexp_eatFixedHexDigits = function(e, t) {
    var r = e.pos;
    e.lastIntValue = 0;
    for (var i = 0; i < t; ++i) {
      var n = e.current();
      if (!lE(n))
        return e.pos = r, !1;
      e.lastIntValue = 16 * e.lastIntValue + cE(n), e.advance();
    }
    return !0;
  };
  Ap = /* @__PURE__ */ s(function(t) {
    this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Lu(t, t.startLoc,
    t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
  }, "Token"), we = tt.prototype;
  we.next = function(e) {
    !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.
    options.onToken && this.options.onToken(new Ap(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.
    endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
  };
  we.getToken = function() {
    return this.next(), new Ap(this);
  };
  typeof Symbol < "u" && (we[Symbol.iterator] = function() {
    var e = this;
    return {
      next: /* @__PURE__ */ s(function() {
        var t = e.getToken();
        return {
          done: t.type === F.eof,
          value: t
        };
      }, "next")
    };
  });
  we.nextToken = function() {
    var e = this.curContext();
    if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()),
    this.pos >= this.input.length)
      return this.finishToken(F.eof);
    if (e.override)
      return e.override(this);
    this.readToken(this.fullCharCodeAtPos());
  };
  we.readToken = function(e) {
    return Kr(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
  };
  we.fullCharCodeAtPos = function() {
    var e = this.input.charCodeAt(this.pos);
    if (e <= 55295 || e >= 56320)
      return e;
    var t = this.input.charCodeAt(this.pos + 1);
    return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
  };
  we.skipBlockComment = function() {
    var e = this.options.onComment && this.curPosition(), t = this.pos, r = this.input.indexOf("*/", this.pos += 2);
    if (r === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = r + 2, this.options.locations)
      for (var i = void 0, n = t; (i = O1(this.input, n, this.pos)) > -1; )
        ++this.curLine, n = this.lineStart = i;
    this.options.onComment && this.options.onComment(
      !0,
      this.input.slice(t + 2, r),
      t,
      this.pos,
      e,
      this.curPosition()
    );
  };
  we.skipLineComment = function(e) {
    for (var t = this.pos, r = this.options.onComment && this.curPosition(), i = this.input.charCodeAt(this.pos += e); this.pos < this.input.
    length && !Mn(i); )
      i = this.input.charCodeAt(++this.pos);
    this.options.onComment && this.options.onComment(
      !1,
      this.input.slice(t + e, this.pos),
      t,
      this.pos,
      r,
      this.curPosition()
    );
  };
  we.skipSpace = function() {
    e: for (; this.pos < this.input.length; ) {
      var e = this.input.charCodeAt(this.pos);
      switch (e) {
        case 32:
        case 160:
          ++this.pos;
          break;
        case 13:
          this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
        case 10:
        case 8232:
        case 8233:
          ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
          break;
        case 47:
          switch (this.input.charCodeAt(this.pos + 1)) {
            case 42:
              this.skipBlockComment();
              break;
            case 47:
              this.skipLineComment(2);
              break;
            default:
              break e;
          }
          break;
        default:
          if (e > 8 && e < 14 || e >= 5760 && R1.test(String.fromCharCode(e)))
            ++this.pos;
          else
            break e;
      }
    }
  };
  we.finishToken = function(e, t) {
    this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
    var r = this.type;
    this.type = e, this.value = t, this.updateContext(r);
  };
  we.readToken_dot = function() {
    var e = this.input.charCodeAt(this.pos + 1);
    if (e >= 48 && e <= 57)
      return this.readNumber(!0);
    var t = this.input.charCodeAt(this.pos + 2);
    return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(F.ellipsis)) : (++this.pos, this.finishToken(
    F.dot));
  };
  we.readToken_slash = function() {
    var e = this.input.charCodeAt(this.pos + 1);
    return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
  };
  we.readToken_mult_modulo_exp = function(e) {
    var t = this.input.charCodeAt(this.pos + 1), r = 1, i = e === 42 ? F.star : F.modulo;
    return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++r, i = F.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ?
    this.finishOp(F.assign, r + 1) : this.finishOp(i, r);
  };
  we.readToken_pipe_amp = function(e) {
    var t = this.input.charCodeAt(this.pos + 1);
    if (t === e) {
      if (this.options.ecmaVersion >= 12) {
        var r = this.input.charCodeAt(this.pos + 2);
        if (r === 61)
          return this.finishOp(F.assign, 3);
      }
      return this.finishOp(e === 124 ? F.logicalOR : F.logicalAND, 2);
    }
    return t === 61 ? this.finishOp(F.assign, 2) : this.finishOp(e === 124 ? F.bitwiseOR : F.bitwiseAND, 1);
  };
  we.readToken_caret = function() {
    var e = this.input.charCodeAt(this.pos + 1);
    return e === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.bitwiseXOR, 1);
  };
  we.readToken_plus_min = function(e) {
    var t = this.input.charCodeAt(this.pos + 1);
    return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || Zt.test(this.input.
    slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(F.incDec, 2) : t === 61 ?
    this.finishOp(F.assign, 2) : this.finishOp(F.plusMin, 1);
  };
  we.readToken_lt_gt = function(e) {
    var t = this.input.charCodeAt(this.pos + 1), r = 1;
    return t === e ? (r = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + r) === 61 ? this.
    finishOp(F.assign, r + 1) : this.finishOp(F.bitShift, r)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) ===
    45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (r = 2),
    this.finishOp(F.relational, r));
  };
  we.readToken_eq_excl = function(e) {
    var t = this.input.charCodeAt(this.pos + 1);
    return t === 61 ? this.finishOp(F.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >=
    6 ? (this.pos += 2, this.finishToken(F.arrow)) : this.finishOp(e === 61 ? F.eq : F.prefix, 1);
  };
  we.readToken_question = function() {
    var e = this.options.ecmaVersion;
    if (e >= 11) {
      var t = this.input.charCodeAt(this.pos + 1);
      if (t === 46) {
        var r = this.input.charCodeAt(this.pos + 2);
        if (r < 48 || r > 57)
          return this.finishOp(F.questionDot, 2);
      }
      if (t === 63) {
        if (e >= 12) {
          var i = this.input.charCodeAt(this.pos + 2);
          if (i === 61)
            return this.finishOp(F.assign, 3);
        }
        return this.finishOp(F.coalesce, 2);
      }
    }
    return this.finishOp(F.question, 1);
  };
  we.readToken_numberSign = function() {
    var e = this.options.ecmaVersion, t = 35;
    if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Kr(t, !0) || t === 92))
      return this.finishToken(F.privateId, this.readWord1());
    this.raise(this.pos, "Unexpected character '" + wi(t) + "'");
  };
  we.getTokenFromCode = function(e) {
    switch (e) {
      // The interpretation of a dot depends on whether it is followed
      // by a digit or another two dots.
      case 46:
        return this.readToken_dot();
      // Punctuation tokens.
      case 40:
        return ++this.pos, this.finishToken(F.parenL);
      case 41:
        return ++this.pos, this.finishToken(F.parenR);
      case 59:
        return ++this.pos, this.finishToken(F.semi);
      case 44:
        return ++this.pos, this.finishToken(F.comma);
      case 91:
        return ++this.pos, this.finishToken(F.bracketL);
      case 93:
        return ++this.pos, this.finishToken(F.bracketR);
      case 123:
        return ++this.pos, this.finishToken(F.braceL);
      case 125:
        return ++this.pos, this.finishToken(F.braceR);
      case 58:
        return ++this.pos, this.finishToken(F.colon);
      case 96:
        if (this.options.ecmaVersion < 6)
          break;
        return ++this.pos, this.finishToken(F.backQuote);
      case 48:
        var t = this.input.charCodeAt(this.pos + 1);
        if (t === 120 || t === 88)
          return this.readRadixNumber(16);
        if (this.options.ecmaVersion >= 6) {
          if (t === 111 || t === 79)
            return this.readRadixNumber(8);
          if (t === 98 || t === 66)
            return this.readRadixNumber(2);
        }
      // Anything else beginning with a digit is an integer, octal
      // number, or float.
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 57:
        return this.readNumber(!1);
      // Quotes produce strings.
      case 34:
      case 39:
        return this.readString(e);
      // Operators are parsed inline in tiny state machines. '=' (61) is
      // often referred to. `finishOp` simply skips the amount of
      // characters it is given as second argument, and returns a token
      // of the type given by its first argument.
      case 47:
        return this.readToken_slash();
      case 37:
      case 42:
        return this.readToken_mult_modulo_exp(e);
      case 124:
      case 38:
        return this.readToken_pipe_amp(e);
      case 94:
        return this.readToken_caret();
      case 43:
      case 45:
        return this.readToken_plus_min(e);
      case 60:
      case 62:
        return this.readToken_lt_gt(e);
      case 61:
      case 33:
        return this.readToken_eq_excl(e);
      case 63:
        return this.readToken_question();
      case 126:
        return this.finishOp(F.prefix, 1);
      case 35:
        return this.readToken_numberSign();
    }
    this.raise(this.pos, "Unexpected character '" + wi(e) + "'");
  };
  we.finishOp = function(e, t) {
    var r = this.input.slice(this.pos, this.pos + t);
    return this.pos += t, this.finishToken(e, r);
  };
  we.readRegexp = function() {
    for (var e, t, r = this.pos; ; ) {
      this.pos >= this.input.length && this.raise(r, "Unterminated regular expression");
      var i = this.input.charAt(this.pos);
      if (Zt.test(i) && this.raise(r, "Unterminated regular expression"), e)
        e = !1;
      else {
        if (i === "[")
          t = !0;
        else if (i === "]" && t)
          t = !1;
        else if (i === "/" && !t)
          break;
        e = i === "\\";
      }
      ++this.pos;
    }
    var n = this.input.slice(r, this.pos);
    ++this.pos;
    var a = this.pos, u = this.readWord1();
    this.containsEsc && this.unexpected(a);
    var o = this.regexpState || (this.regexpState = new Pr(this));
    o.reset(r, n, u), this.validateRegExpFlags(o), this.validateRegExpPattern(o);
    var l = null;
    try {
      l = new RegExp(n, u);
    } catch {
    }
    return this.finishToken(F.regexp, { pattern: n, flags: u, value: l });
  };
  we.readInt = function(e, t, r) {
    for (var i = this.options.ecmaVersion >= 12 && t === void 0, n = r && this.input.charCodeAt(this.pos) === 48, a = this.pos, u = 0, o = 0,
    l = 0, c = t ?? 1 / 0; l < c; ++l, ++this.pos) {
      var h = this.input.charCodeAt(this.pos), p = void 0;
      if (i && h === 95) {
        n && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), o === 95 && this.raiseRecoverable(
        this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not \
allowed at the first of digits"), o = h;
        continue;
      }
      if (h >= 97 ? p = h - 97 + 10 : h >= 65 ? p = h - 65 + 10 : h >= 48 && h <= 57 ? p = h - 48 : p = 1 / 0, p >= e)
        break;
      o = h, u = u * e + p;
    }
    return i && o === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a ||
    t != null && this.pos - a !== t ? null : u;
  };
  s(W4, "stringToNumber");
  s(pE, "stringToBigInt");
  we.readRadixNumber = function(e) {
    var t = this.pos;
    this.pos += 2;
    var r = this.readInt(e);
    return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(
    this.pos) === 110 ? (r = pE(this.input.slice(t, this.pos)), ++this.pos) : Kr(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifi\
er directly after number"), this.finishToken(F.num, r);
  };
  we.readNumber = function(e) {
    var t = this.pos;
    !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
    var r = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
    r && this.strict && this.raise(t, "Invalid number");
    var i = this.input.charCodeAt(this.pos);
    if (!r && !e && this.options.ecmaVersion >= 11 && i === 110) {
      var n = pE(this.input.slice(t, this.pos));
      return ++this.pos, Kr(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, n);
    }
    r && /[89]/.test(this.input.slice(t, this.pos)) && (r = !1), i === 46 && !r && (++this.pos, this.readInt(10), i = this.input.charCodeAt(
    this.pos)), (i === 69 || i === 101) && !r && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(
    10) === null && this.raise(t, "Invalid number")), Kr(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
    var a = W4(this.input.slice(t, this.pos), r);
    return this.finishToken(F.num, a);
  };
  we.readCodePoint = function() {
    var e = this.input.charCodeAt(this.pos), t;
    if (e === 123) {
      this.options.ecmaVersion < 6 && this.unexpected();
      var r = ++this.pos;
      t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(r, "Code point \
out of bounds");
    } else
      t = this.readHexChar(4);
    return t;
  };
  we.readString = function(e) {
    for (var t = "", r = ++this.pos; ; ) {
      this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
      var i = this.input.charCodeAt(this.pos);
      if (i === e)
        break;
      i === 92 ? (t += this.input.slice(r, this.pos), t += this.readEscapedChar(!1), r = this.pos) : i === 8232 || i === 8233 ? (this.options.
      ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.
      lineStart = this.pos)) : (Mn(i) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
    }
    return t += this.input.slice(r, this.pos++), this.finishToken(F.string, t);
  };
  fE = {};
  we.tryReadTemplateToken = function() {
    this.inTemplateElement = !0;
    try {
      this.readTmplToken();
    } catch (e) {
      if (e === fE)
        this.readInvalidTemplateToken();
      else
        throw e;
    }
    this.inTemplateElement = !1;
  };
  we.invalidStringToken = function(e, t) {
    if (this.inTemplateElement && this.options.ecmaVersion >= 9)
      throw fE;
    this.raise(e, t);
  };
  we.readTmplToken = function() {
    for (var e = "", t = this.pos; ; ) {
      this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
      var r = this.input.charCodeAt(this.pos);
      if (r === 96 || r === 36 && this.input.charCodeAt(this.pos + 1) === 123)
        return this.pos === this.start && (this.type === F.template || this.type === F.invalidTemplate) ? r === 36 ? (this.pos += 2, this.finishToken(
        F.dollarBraceL)) : (++this.pos, this.finishToken(F.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(F.template, e));
      if (r === 92)
        e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
      else if (Mn(r)) {
        switch (e += this.input.slice(t, this.pos), ++this.pos, r) {
          case 13:
            this.input.charCodeAt(this.pos) === 10 && ++this.pos;
          case 10:
            e += `
`;
            break;
          default:
            e += String.fromCharCode(r);
            break;
        }
        this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
      } else
        ++this.pos;
    }
  };
  we.readInvalidTemplateToken = function() {
    for (; this.pos < this.input.length; this.pos++)
      switch (this.input[this.pos]) {
        case "\\":
          ++this.pos;
          break;
        case "$":
          if (this.input[this.pos + 1] !== "{")
            break;
        // fall through
        case "`":
          return this.finishToken(F.invalidTemplate, this.input.slice(this.start, this.pos));
        case "\r":
          this.input[this.pos + 1] === `
` && ++this.pos;
        // fall through
        case `
`:
        case "\u2028":
        case "\u2029":
          ++this.curLine, this.lineStart = this.pos + 1;
          break;
      }
    this.raise(this.start, "Unterminated template");
  };
  we.readEscapedChar = function(e) {
    var t = this.input.charCodeAt(++this.pos);
    switch (++this.pos, t) {
      case 110:
        return `
`;
      // 'n' -> '\n'
      case 114:
        return "\r";
      // 'r' -> '\r'
      case 120:
        return String.fromCharCode(this.readHexChar(2));
      // 'x'
      case 117:
        return wi(this.readCodePoint());
      // 'u'
      case 116:
        return "	";
      // 't' -> '\t'
      case 98:
        return "\b";
      // 'b' -> '\b'
      case 118:
        return "\v";
      // 'v' -> '\u000b'
      case 102:
        return "\f";
      // 'f' -> '\f'
      case 13:
        this.input.charCodeAt(this.pos) === 10 && ++this.pos;
      // '\r\n'
      case 10:
        return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
      case 56:
      case 57:
        if (this.strict && this.invalidStringToken(
          this.pos - 1,
          "Invalid escape sequence"
        ), e) {
          var r = this.pos - 1;
          this.invalidStringToken(
            r,
            "Invalid escape sequence in template string"
          );
        }
      default:
        if (t >= 48 && t <= 55) {
          var i = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], n = parseInt(i, 8);
          return n > 255 && (i = i.slice(0, -1), n = parseInt(i, 8)), this.pos += i.length - 1, t = this.input.charCodeAt(this.pos), (i !== "\
0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(
            this.pos - 1 - i.length,
            e ? "Octal literal in template string" : "Octal literal in strict mode"
          ), String.fromCharCode(n);
        }
        return Mn(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
    }
  };
  we.readHexChar = function(e) {
    var t = this.pos, r = this.readInt(16, e);
    return r === null && this.invalidStringToken(t, "Bad character escape sequence"), r;
  };
  we.readWord1 = function() {
    this.containsEsc = !1;
    for (var e = "", t = !0, r = this.pos, i = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
      var n = this.fullCharCodeAtPos();
      if (Ln(n, i))
        this.pos += n <= 65535 ? 1 : 2;
      else if (n === 92) {
        this.containsEsc = !0, e += this.input.slice(r, this.pos);
        var a = this.pos;
        this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.
        pos;
        var u = this.readCodePoint();
        (t ? Kr : Ln)(u, i) || this.invalidStringToken(a, "Invalid Unicode escape"), e += wi(u), r = this.pos;
      } else
        break;
      t = !1;
    }
    return e + this.input.slice(r, this.pos);
  };
  we.readWord = function() {
    var e = this.readWord1(), t = F.name;
    return this.keywords.test(e) && (t = yp[e]), this.finishToken(t, e);
  };
  J4 = "8.12.1";
  tt.acorn = {
    Parser: tt,
    version: J4,
    defaultOptions: mp,
    Position: Vs,
    SourceLocation: Lu,
    getLineInfo: L1,
    Node: ju,
    TokenType: _e,
    tokTypes: F,
    keywordTypes: yp,
    TokContext: dr,
    tokContexts: $e,
    isIdentifierChar: Ln,
    isIdentifierStart: Kr,
    Token: Ap,
    isNewLine: Mn,
    lineBreak: Zt,
    lineBreakG: y4,
    nonASCIIwhitespace: R1
  };
});

// ../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
var nv = {};
di(nv, {
  compile: () => ev,
  compileSync: () => tv,
  createProcessor: () => rf,
  evaluate: () => iM,
  evaluateSync: () => nM,
  nodeTypes: () => Zb,
  run: () => nf,
  runSync: () => iv
});
import { default as Ir } from "path";
import { default as K4 } from "process";
import { fileURLToPath as Q4 } from "url";
function rr(e) {
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? mE(e.position) : "start" in e || "end" in e ? mE(e) : "line" in e ||
  "column" in e ? $p(e) : "";
}
function $p(e) {
  return gE(e && e.line) + ":" + gE(e && e.column);
}
function mE(e) {
  return $p(e && e.start) + "-" + $p(e && e.end);
}
function gE(e) {
  return e && typeof e == "number" ? e : 1;
}
function DE(e) {
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
  e.auth === void 0);
}
function Sp(e, t) {
  if (e && e.includes(Ir.sep))
    throw new Error(
      "`" + t + "` cannot be a path: did not expect `" + Ir.sep + "`"
    );
}
function _p(e, t) {
  if (!e)
    throw new Error("`" + t + "` cannot be empty");
}
function yE(e, t) {
  if (!e)
    throw new Error("Setting `" + t + "` requires `path` to be set too");
}
function Z4(e) {
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
}
function gb(e, t) {
  let r = i5(e) ? e : new mb(e), { format: i, ...n } = t || {};
  return {
    file: r,
    options: {
      format: i === "md" || i === "mdx" ? i : r.extname && (n.mdExtensions || r5).includes(r.extname) ? "md" : "mdx",
      ...n
    }
  };
}
function i5(e) {
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
}
function n5() {
  return {
    enter: {
      mdxFlowExpression: a5,
      mdxTextExpression: u5
    },
    exit: {
      mdxFlowExpression: xE,
      mdxFlowExpressionChunk: EE,
      mdxTextExpression: xE,
      mdxTextExpressionChunk: EE
    }
  };
}
function s5() {
  return {
    handlers: {
      mdxFlowExpression: bE,
      mdxTextExpression: bE
    },
    unsafe: [
      { character: "{", inConstruct: ["phrasing"] },
      { atBreak: !0, character: "{" }
    ]
  };
}
function a5(e) {
  this.enter({ type: "mdxFlowExpression", value: "" }, e), this.buffer();
}
function u5(e) {
  this.enter({ type: "mdxTextExpression", value: "" }, e), this.buffer();
}
function xE(e) {
  let t = this.resume(), r = e.estree, i = this.stack[this.stack.length - 1];
  i.type === "mdxFlowExpression" || i.type, this.exit(e), i.value = t, r && (i.data = { estree: r });
}
function EE(e) {
  this.config.enter.data.call(this, e), this.config.exit.data.call(this, e);
}
function bE(e) {
  return "{" + (e.value || "") + "}";
}
function vE(e, t) {
  let r = String(e);
  if (typeof t != "string")
    throw new TypeError("Expected character");
  let i = 0, n = r.indexOf(t);
  for (; n !== -1; )
    i++, n = r.indexOf(t, n + t.length);
  return i;
}
function Db(e) {
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
  return t >= 48 && t <= 57;
}
function l5(e) {
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
  return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;
}
function c5(e) {
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
  return t >= 97 && t <= 122 || t >= 65 && t <= 90;
}
function wE(e) {
  return c5(e) || Db(e);
}
function Ys(e) {
  return h5.call(AE, e) ? AE[e] : !1;
}
function f5(e, t = {}) {
  let r = typeof t.additional == "string" ? t.additional.charCodeAt(0) : t.additional, i = [], n = 0, a = -1, u = "", o, l;
  t.position && ("start" in t.position || "indent" in t.position ? (l = t.position.indent, o = t.position.start) : o = t.position);
  let c = (o ? o.line : 0) || 1, h = (o ? o.column : 0) || 1, p = m(), d;
  for (n--; ++n <= e.length; )
    if (d === 10 && (h = (l ? l[a] : 0) || 1), d = e.charCodeAt(n), d === 38) {
      let v = e.charCodeAt(n + 1);
      if (v === 9 || v === 10 || v === 12 || v === 32 || v === 38 || v === 60 || Number.isNaN(v) || r && v === r) {
        u += $n(d), h++;
        continue;
      }
      let y = n + 1, C = y, S = y, T;
      if (v === 35) {
        S = ++C;
        let V = e.charCodeAt(S);
        V === 88 || V === 120 ? (T = "hexadecimal", S = ++C) : T = "decimal";
      } else
        T = "named";
      let j = "", w = "", A = "", P = T === "named" ? wE : T === "decimal" ? Db : l5;
      for (S--; ++S <= e.length; ) {
        let V = e.charCodeAt(S);
        if (!P(V))
          break;
        A += $n(V), T === "named" && o5.includes(A) && (j = A, w = Ys(A));
      }
      let k = e.charCodeAt(S) === 59;
      if (k) {
        S++;
        let V = T === "named" ? Ys(A) : !1;
        V && (j = A, w = V);
      }
      let $ = 1 + S - y, M = "";
      if (!(!k && t.nonTerminated === !1))
        if (!A)
          T !== "named" && g(4, $);
        else if (T === "named") {
          if (k && !w)
            g(5, 1);
          else if (j !== A && (S = C + j.length, $ = 1 + S - C, k = !1), !k) {
            let V = j ? 1 : 3;
            if (t.attribute) {
              let U = e.charCodeAt(S);
              U === 61 ? (g(V, $), w = "") : wE(U) ? w = "" : g(V, $);
            } else
              g(V, $);
          }
          M = w;
        } else {
          k || g(2, $);
          let V = Number.parseInt(
            A,
            T === "hexadecimal" ? 16 : 10
          );
          if (d5(V))
            g(7, $), M = $n(
              65533
              /* `�` */
            );
          else if (V in CE)
            g(6, $), M = CE[V];
          else {
            let U = "";
            m5(V) && g(6, $), V > 65535 && (V -= 65536, U += $n(V >>> 10 | 55296), V = 56320 | V & 1023), M = U + $n(V);
          }
        }
      if (M) {
        D(), p = m(), n = S - 1, h += S - y + 1, i.push(M);
        let V = m();
        V.offset++, t.reference && t.reference.call(
          t.referenceContext,
          M,
          { start: p, end: V },
          e.slice(y - 1, S)
        ), p = V;
      } else
        A = e.slice(y - 1, S), u += A, h += A.length, n = S - 1;
    } else
      d === 10 && (c++, a++, h = 0), Number.isNaN(d) ? D() : (u += $n(d), h++);
  return i.join("");
  function m() {
    return {
      line: c,
      column: h,
      offset: n + ((o ? o.offset : 0) || 0)
    };
  }
  function g(v, y) {
    let C;
    t.warning && (C = m(), C.column += y, C.offset += y, t.warning.call(
      t.warningContext,
      p5[v],
      C,
      v
    ));
  }
  function D() {
    u && (i.push(u), t.text && t.text.call(t.textContext, u, {
      start: p,
      end: m()
    }), u = "");
  }
}
function d5(e) {
  return e >= 55296 && e <= 57343 || e > 1114111;
}
function m5(e) {
  return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e &
  65535) === 65534;
}
function g5(e, t) {
  if (e = e.replace(
    t.subset ? D5(t.subset) : /["&'<>`]/g,
    i
  ), t.subset || t.escapeOnly)
    return e;
  return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, r).replace(
    // eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
    /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,
    i
  );
  function r(n, a, u) {
    return t.format(
      (n.charCodeAt(0) - 55296) * 1024 + n.charCodeAt(1) - 56320 + 65536,
      u.charCodeAt(a + 2),
      t
    );
  }
  function i(n, a, u) {
    return t.format(
      n.charCodeAt(0),
      u.charCodeAt(a + 1),
      t
    );
  }
}
function D5(e) {
  let t = [], r = -1;
  for (; ++r < e.length; )
    t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"));
  return new RegExp("(?:" + t.join("|") + ")", "g");
}
function y5(e) {
  return "&#x" + e.toString(16).toUpperCase() + ";";
}
function x5(e, t) {
  return g5(e, Object.assign({ format: y5 }, t));
}
function E5() {
  return {
    canContainEols: ["mdxJsxTextElement"],
    enter: {
      mdxJsxFlowTag: r,
      mdxJsxFlowTagClosingMarker: i,
      mdxJsxFlowTagAttribute: h,
      mdxJsxFlowTagExpressionAttribute: p,
      mdxJsxFlowTagAttributeValueLiteral: e,
      mdxJsxFlowTagAttributeValueExpression: e,
      mdxJsxFlowTagSelfClosingMarker: a,
      mdxJsxTextTag: r,
      mdxJsxTextTagClosingMarker: i,
      mdxJsxTextTagAttribute: h,
      mdxJsxTextTagExpressionAttribute: p,
      mdxJsxTextTagAttributeValueLiteral: e,
      mdxJsxTextTagAttributeValueExpression: e,
      mdxJsxTextTagSelfClosingMarker: a
    },
    exit: {
      mdxJsxFlowTagClosingMarker: u,
      mdxJsxFlowTagNamePrimary: o,
      mdxJsxFlowTagNameMember: l,
      mdxJsxFlowTagNameLocal: c,
      mdxJsxFlowTagExpressionAttribute: d,
      mdxJsxFlowTagExpressionAttributeValue: t,
      mdxJsxFlowTagAttributeNamePrimary: m,
      mdxJsxFlowTagAttributeNameLocal: g,
      mdxJsxFlowTagAttributeValueLiteral: D,
      mdxJsxFlowTagAttributeValueLiteralValue: t,
      mdxJsxFlowTagAttributeValueExpression: v,
      mdxJsxFlowTagAttributeValueExpressionValue: t,
      mdxJsxFlowTagSelfClosingMarker: y,
      mdxJsxFlowTag: C,
      mdxJsxTextTagClosingMarker: u,
      mdxJsxTextTagNamePrimary: o,
      mdxJsxTextTagNameMember: l,
      mdxJsxTextTagNameLocal: c,
      mdxJsxTextTagExpressionAttribute: d,
      mdxJsxTextTagExpressionAttributeValue: t,
      mdxJsxTextTagAttributeNamePrimary: m,
      mdxJsxTextTagAttributeNameLocal: g,
      mdxJsxTextTagAttributeValueLiteral: D,
      mdxJsxTextTagAttributeValueLiteralValue: t,
      mdxJsxTextTagAttributeValueExpression: v,
      mdxJsxTextTagAttributeValueExpressionValue: t,
      mdxJsxTextTagSelfClosingMarker: y,
      mdxJsxTextTag: C
    }
  };
  function e() {
    this.buffer();
  }
  function t(w) {
    this.config.enter.data.call(this, w), this.config.exit.data.call(this, w);
  }
  function r(w) {
    let A = {
      name: void 0,
      attributes: [],
      close: !1,
      selfClosing: !1,
      start: w.start,
      end: w.end
    };
    this.data.mdxJsxTagStack || (this.data.mdxJsxTagStack = []), this.data.mdxJsxTag = A, this.buffer();
  }
  function i(w) {
    let A = this.data.mdxJsxTagStack;
    if (A.length === 0)
      throw new Te(
        "Unexpected closing slash `/` in tag, expected an open tag first",
        { start: w.start, end: w.end },
        "mdast-util-mdx-jsx:unexpected-closing-slash"
      );
  }
  function n(w) {
    let A = this.data.mdxJsxTag;
    if (A.close)
      throw new Te(
        "Unexpected attribute in closing tag, expected the end of the tag",
        { start: w.start, end: w.end },
        "mdast-util-mdx-jsx:unexpected-attribute"
      );
  }
  function a(w) {
    let A = this.data.mdxJsxTag;
    if (A.close)
      throw new Te(
        "Unexpected self-closing slash `/` in closing tag, expected the end of the tag",
        { start: w.start, end: w.end },
        "mdast-util-mdx-jsx:unexpected-self-closing-slash"
      );
  }
  function u() {
    let w = this.data.mdxJsxTag;
    w.close = !0;
  }
  function o(w) {
    let A = this.data.mdxJsxTag;
    A.name = this.sliceSerialize(w);
  }
  function l(w) {
    let A = this.data.mdxJsxTag;
    A.name += "." + this.sliceSerialize(w);
  }
  function c(w) {
    let A = this.data.mdxJsxTag;
    A.name += ":" + this.sliceSerialize(w);
  }
  function h(w) {
    let A = this.data.mdxJsxTag;
    n.call(this, w), A.attributes.push({ type: "mdxJsxAttribute", name: "", value: null });
  }
  function p(w) {
    let A = this.data.mdxJsxTag;
    n.call(this, w), A.attributes.push({ type: "mdxJsxExpressionAttribute", value: "" }), this.buffer();
  }
  function d(w) {
    let A = this.data.mdxJsxTag;
    let P = A.attributes[A.attributes.length - 1];
    P.type;
    let k = w.estree;
    P.value = this.resume(), k && (P.data = { estree: k });
  }
  function m(w) {
    let A = this.data.mdxJsxTag;
    let P = A.attributes[A.attributes.length - 1];
    P.type, P.name = this.sliceSerialize(w);
  }
  function g(w) {
    let A = this.data.mdxJsxTag;
    let P = A.attributes[A.attributes.length - 1];
    P.type, P.name += ":" + this.sliceSerialize(w);
  }
  function D() {
    let w = this.data.mdxJsxTag;
    w.attributes[w.attributes.length - 1].value = f5(
      this.resume(),
      { nonTerminated: !1 }
    );
  }
  function v(w) {
    let A = this.data.mdxJsxTag;
    let P = A.attributes[A.attributes.length - 1];
    P.type;
    let k = { type: "mdxJsxAttributeValueExpression", value: this.resume() }, $ = w.estree;
    $ && (k.data = { estree: $ }), P.value = k;
  }
  function y() {
    let w = this.data.mdxJsxTag;
    w.selfClosing = !0;
  }
  function C(w) {
    let A = this.data.mdxJsxTag;
    let P = this.data.mdxJsxTagStack;
    let k = P[P.length - 1];
    if (A.close && k.name !== A.name)
      throw new Te(
        "Unexpected closing tag `" + j(A) + "`, expected corresponding closing tag for `" + j(k) + "` (" + rr(k) + ")",
        { start: w.start, end: w.end },
        "mdast-util-mdx-jsx:end-tag-mismatch"
      );
    this.resume(), A.close ? P.pop() : this.enter(
      {
        type: w.type === "mdxJsxTextTag" ? "mdxJsxTextElement" : "mdxJsxFlowElement",
        name: A.name || null,
        attributes: A.attributes,
        children: []
      },
      w,
      S
    ), A.selfClosing || A.close ? this.exit(w, T) : P.push(A);
  }
  function S(w, A) {
    let P = this.data.mdxJsxTag;
    let k = w ? " before the end of `" + w.type + "`" : "", $ = w ? { start: w.start, end: w.end } : void 0;
    throw new Te(
      "Expected a closing tag for `" + j(P) + "` (" + rr({ start: A.start, end: A.end }) + ")" + k,
      $,
      "mdast-util-mdx-jsx:end-tag-mismatch"
    );
  }
  function T(w, A) {
    let P = this.data.mdxJsxTag;
    throw new Te(
      "Expected the closing tag `" + j(P) + "` either after the end of `" + A.type + "` (" + rr(A.end) + ") or another opening tag after the\
 start of `" + A.type + "` (" + rr(A.start) + ")",
      { start: w.start, end: w.end },
      "mdast-util-mdx-jsx:end-tag-mismatch"
    );
  }
  function j(w) {
    return "<" + (w.close ? "/" : "") + (w.name || "") + ">";
  }
}
function b5(e) {
  let t = e || {}, r = t.quote || '"', i = t.quoteSmart || !1, n = t.tightSelfClosing || !1, a = t.printWidth || Number.POSITIVE_INFINITY, u = r ===
  '"' ? "'" : '"';
  if (r !== '"' && r !== "'")
    throw new Error(
      "Cannot serialize attribute values with `" + r + "` for `options.quote`, expected `\"`, or `'`"
    );
  return o.peek = C5, {
    handlers: {
      mdxJsxFlowElement: o,
      mdxJsxTextElement: o
    },
    unsafe: [
      { character: "<", inConstruct: ["phrasing"] },
      { atBreak: !0, character: "<" }
    ],
    // Always generate fenced code (never indented code).
    fences: !0,
    // Always generate links with resources (never autolinks).
    resourceLink: !0
  };
  function o(l, c, h, p) {
    let d = l.type === "mdxJsxFlowElement", m = l.name ? !l.children || l.children.length === 0 : !1, g = xb(h), D = Eb(g), v = h.createTracker(
    p), y = h.createTracker(p), C = [], S = (d ? D : "") + "<" + (l.name || ""), T = h.enter(l.type);
    if (v.move(S), y.move(S), l.attributes && l.attributes.length > 0) {
      if (!l.name)
        throw new Error("Cannot serialize fragment w/ attributes");
      let k = -1;
      for (; ++k < l.attributes.length; ) {
        let $ = l.attributes[k], M;
        if ($.type === "mdxJsxExpressionAttribute")
          M = "{" + ($.value || "") + "}";
        else {
          if (!$.name)
            throw new Error("Cannot serialize attribute w/o name");
          let V = $.value, U = $.name, G = "";
          if (V != null)
            if (typeof V == "object")
              G = "{" + (V.value || "") + "}";
            else {
              let R = i && vE(V, r) > vE(V, u) ? u : r;
              G = R + x5(V, { subset: [R] }) + R;
            }
          M = U + (G ? "=" : "") + G;
        }
        C.push(M);
      }
    }
    let j = !1, w = C.join(" ");
    // Block:
    d && // Including a line ending (expressions).
    (/\r?\n|\r/.test(w) || // Current position (including `<tag`).
    v.current().now.column + // -1 because columns, +1 for ` ` before attributes.
    // Attributes joined by spaces.
    w.length + // ` />`.
    (m ? n ? 2 : 3 : 1) > a) && (j = !0);
    let A = v, P = S;
    if (j) {
      A = y;
      let k = -1;
      for (; ++k < C.length; )
        C[k] = D + yb + C[k];
      P += A.move(
        `
` + C.join(`
`) + `
` + D
      );
    } else w && (P += A.move(" " + w));
    return m && (P += A.move(
      (n || j ? "" : " ") + "/"
    )), P += A.move(">"), l.children && l.children.length > 0 && (l.type === "mdxJsxTextElement" ? P += A.move(
      // @ts-expect-error: `containerPhrasing` is typed correctly, but TS
      // generates *hardcoded* types, which means that our dynamically added
      // directives are not present.
      // At some point, TS should fix that, and `from-markdown` should be fine.
      h.containerPhrasing(l, {
        ...A.current(),
        before: ">",
        after: "<"
      })
    ) : (A.shift(2), P += A.move(`
`), P += A.move(v5(l, h, A.current())), P += A.move(`
`))), m || (P += A.move(
      (d ? D : "") + "</" + (l.name || "") + ">"
    )), T(), P;
  }
  s(o, "mdxElement");
}
function v5(e, t, r) {
  let i = t.indexStack, n = e.children, a = t.createTracker(r), u = Eb(xb(t)), o = [], l = -1;
  for (i.push(-1); ++l < n.length; ) {
    let c = n[l];
    i[i.length - 1] = l;
    let h = { before: `
`, after: `
`, ...a.current() }, p = t.handle(c, e, t, h), d = c.type === "mdxJsxFlowElement" ? p : t.indentLines(p, function(m, g, D) {
      return (D ? "" : u) + m;
    });
    o.push(a.move(d)), c.type !== "list" && (t.bulletLastUsed = void 0), l < n.length - 1 && o.push(a.move(`

`));
  }
  return i.pop(), o.join("");
}
function xb(e) {
  let t = 0;
  for (let r of e.stack)
    r === "mdxJsxFlowElement" && t++;
  return t;
}
function Eb(e) {
  return yb.repeat(e);
}
function C5() {
  return "<";
}
function w5() {
  return {
    enter: { mdxjsEsm: F5 },
    exit: { mdxjsEsm: S5, mdxjsEsmData: _5 }
  };
}
function A5() {
  return { handlers: { mdxjsEsm: k5 } };
}
function F5(e) {
  this.enter({ type: "mdxjsEsm", value: "" }, e), this.buffer();
}
function S5(e) {
  let t = this.resume(), r = this.stack[this.stack.length - 1];
  r.type, this.exit(e);
  let i = e.estree;
  r.value = t, i && (r.data = { estree: i });
}
function _5(e) {
  this.config.enter.data.call(this, e), this.config.exit.data.call(this, e);
}
function k5(e) {
  return e.value || "";
}
function T5() {
  return [
    n5(),
    E5(),
    w5()
  ];
}
function B5(e) {
  return {
    extensions: [
      s5(),
      b5(e),
      A5()
    ]
  };
}
function Vp(e) {
  return (
    // Special whitespace codes (which have negative values), C0 and Control
    // character DEL
    e !== null && (e < 32 || e === 127)
  );
}
function ne(e) {
  return e !== null && e < -2;
}
function Qe(e) {
  return e !== null && (e < 0 || e === 32);
}
function Fe(e) {
  return e === -2 || e === -1 || e === 32;
}
function N5(e) {
  return bb(e) || I5(e);
}
function ki(e) {
  return t;
  function t(r) {
    return r !== null && r > -1 && e.test(String.fromCharCode(r));
  }
}
function L5(e) {
  return "\x1B[33m" + e + "\x1B[39m";
}
function $5(e, t) {
  let r, i;
  typeof t == "function" ? r = t : t && typeof t == "object" && (t.enter && (r = t.enter), t.leave && (i = t.leave)), n(e, void 0, void 0, [])();
  function n(a, u, o, l) {
    return Tp(a) && (c.displayName = "node (" + L5(a.type) + ")"), c;
    function c() {
      let h = r ? FE(r(a, u, o, l)) : [];
      if (h[0] === kp)
        return h;
      if (h[0] !== q5) {
        let p;
        for (p in a)
          if (M5.call(a, p) && a[p] && typeof a[p] == "object" && // @ts-expect-error: custom esast extension.
          p !== "data" && // @ts-expect-error: custom esast extension.
          p !== "position") {
            let d = l.concat(a), m = a[p];
            if (Array.isArray(m)) {
              let g = (
                /** @type {Array<unknown>} */
                m
              ), D = 0;
              for (; D > -1 && D < g.length; ) {
                let v = g[D];
                if (Tp(v)) {
                  let y = n(
                    v,
                    p,
                    D,
                    d
                  )();
                  if (y[0] === kp)
                    return y;
                  D = typeof y[1] == "number" ? y[1] : D + 1;
                } else
                  D++;
              }
            } else if (Tp(m)) {
              let g = n(m, p, void 0, d)();
              if (g[0] === kp)
                return g;
            }
          }
      }
      return i ? FE(i(a, u, o, l)) : h;
    }
    s(c, "visit3");
  }
  s(n, "build");
}
function FE(e) {
  return Array.isArray(e) ? e : typeof e == "number" ? [j5, e] : [e];
}
function Tp(e) {
  return !!(e && typeof e == "object" && "type" in e && typeof e.type == "string" && e.type.length > 0);
}
function vb(e, t) {
  let r = t.prefix || "", i = t.suffix || "", n = Object.assign({}, t.acornOptions), a = [], u = [], o = n.onComment, l = n.onToken, c = !1,
  h, p, d = Object.assign({}, n, {
    onComment: a,
    preserveParens: !0
  });
  l && (d.onToken = u);
  let m = V5(e, t.tokenTypes), g = m.value, D = r + g + i, v = t.expression && SE(g);
  if (v && !t.allowEmpty)
    throw new Te("Unexpected empty expression", {
      place: C(0),
      ruleId: "unexpected-empty-expression",
      source: "micromark-extension-mdx-expression"
    });
  try {
    h = t.expression && !v ? t.acorn.parseExpressionAt(D, 0, d) : t.acorn.parse(D, d);
  } catch (S) {
    let T = (
      /** @type {AcornError} */
      S
    ), j = C(T.pos);
    T.message = String(T.message).replace(/ \(\d+:\d+\)$/, ""), T.pos = j.offset, T.loc = {
      line: j.line,
      column: j.column - 1
    }, p = T, c = T.raisedAt >= r.length + g.length || // Broken comments are raised at their start, not their end.
    T.message === "Unterminated comment";
  }
  if (h && t.expression && !v)
    if (SE(D.slice(h.end, D.length - i.length)))
      h = {
        type: "Program",
        start: 0,
        end: r.length + g.length,
        // @ts-expect-error: It’s good.
        body: [{
          type: "ExpressionStatement",
          expression: h,
          start: 0,
          end: r.length + g.length
        }],
        sourceType: "module",
        comments: []
      };
    else {
      let S = C(h.end), T = (
        /** @type {AcornError} */
        new Error("Unexpected content after expression")
      );
      T.pos = S.offset, T.loc = {
        line: S.line,
        column: S.column - 1
      }, p = T, h = void 0;
    }
  if (h) {
    if (h.comments = a, $5(h, function(S, T, j, w) {
      let A = (
        /** @type {AcornNode | Array<AcornNode>} */
        w[w.length - 1]
      ), P = T;
      S.type === "ParenthesizedExpression" && A && P && (typeof j == "number" && (A = A[P], P = j), A[P] = S.expression), y(S);
    }), Array.isArray(o))
      o.push(...a);
    else if (typeof o == "function")
      for (let S of a)
        o(S.type === "Block", S.value, S.start, S.end, S.loc.start, S.loc.end);
    for (let S of u)
      S.end <= r.length || S.start - r.length >= g.length || (y(S), Array.isArray(l) ? l.push(S) : l(S));
  }
  return {
    estree: h,
    error: p,
    swallow: c
  };
  function y(S) {
    let T = C(S.start), j = C(S.end);
    S.start = T.offset, S.end = j.offset, S.loc = {
      start: {
        line: T.line,
        column: T.column - 1,
        offset: T.offset
      },
      end: {
        line: j.line,
        column: j.column - 1,
        offset: j.offset
      }
    }, S.range = [S.start, S.end];
  }
  function C(S) {
    let T = S - r.length;
    T < 0 ? T = 0 : T > g.length && (T = g.length);
    let j = U5(m.stops, T);
    return j || (j = {
      line: t.start.line,
      column: t.start.column,
      offset: t.start.offset
    }), j;
  }
}
function SE(e) {
  return /^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g, ""));
}
function V5(e, t) {
  let r = {
    value: "",
    stops: []
  }, i = -1;
  for (; ++i < e.length; ) {
    let n = e[i];
    if (n[0] === "enter") {
      let a = n[1].type;
      if (a === "lineEnding" || t.includes(a)) {
        let u = n[2].sliceStream(n[1]);
        for (; u.length > 0 && u[0] === -1; )
          u.shift();
        let o = z5(u);
        r.stops.push([r.value.length, n[1].start]), r.value += o, r.stops.push([r.value.length, n[1].end]);
      }
    }
  }
  return r;
}
function U5(e, t) {
  let r = 0;
  for (; r < e.length && e[r][0] <= t; )
    r += 1;
  if (r === 0)
    return;
  let [i, n] = e[r - 1], a = t - i;
  return {
    line: n.line,
    column: n.column + a,
    offset: n.offset + a
  };
}
function z5(e) {
  let t = -1, r = [], i;
  for (; ++t < e.length; ) {
    let n = e[t], a;
    if (typeof n == "string")
      a = n;
    else
      switch (n) {
        case -5: {
          a = "\r";
          break;
        }
        case -4: {
          a = `
`;
          break;
        }
        case -3: {
          a = `\r
`;
          break;
        }
        case -2: {
          a = "	";
          break;
        }
        case -1: {
          if (i)
            continue;
          a = " ";
          break;
        }
        default:
          a = String.fromCharCode(n);
      }
    i = n === -2, r.push(a);
  }
  return r.join("");
}
function ti(e) {
  let t = e || {}, r = t.loc || {}, i = t.range || [void 0, void 0], n = _E(r.start, i[0] || t.start), a = _E(r.end, i[1] || t.end);
  if (n && a)
    return { start: n, end: a };
}
function _E(e, t) {
  if (e && typeof e == "object") {
    let r = "line" in e ? Bp(e.line) : void 0, i = "column" in e ? Bp(e.column) : void 0;
    if (r && i !== void 0)
      return {
        line: r,
        column: i + 1,
        offset: Bp(t)
      };
  }
}
function Bp(e) {
  return typeof e == "number" && e > -1 ? e : void 0;
}
function Ju(e, t, r, i, n, a, u, o, l, c, h) {
  let p = this, d = this.events.length + 3, m = 0, g, D;
  return v;
  function v(T) {
    return e.enter(r), e.enter(i), e.consume(T), e.exit(i), g = p.now(), y;
  }
  function y(T) {
    if (T === null) {
      if (D)
        throw D;
      let j = new Te(
        "Unexpected end of file in expression, expected a corresponding closing brace for `{`",
        {
          place: p.now(),
          ruleId: "unexpected-eof",
          source: "micromark-extension-mdx-expression"
        }
      );
      throw j.url = Jn + H5, j;
    }
    if (ne(T))
      return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), S;
    if (T === 125 && m === 0) {
      let j = a ? X5.call(
        p,
        a,
        u,
        n,
        d,
        g,
        c || !1,
        l || !1
      ) : {
        type: "ok",
        estree: void 0
      };
      if (j.type === "ok") {
        e.enter(i), e.consume(T), e.exit(i);
        let w = e.exit(r);
        return o && j.estree && Object.assign(w, {
          estree: j.estree
        }), t;
      }
      return D = j.message, e.enter(n), e.consume(T), C;
    }
    return e.enter(n), C(T);
  }
  function C(T) {
    return T === 125 && m === 0 || T === null || ne(T) ? (e.exit(n), y(T)) : (T === 123 && !a ? m += 1 : T === 125 && (m -= 1), e.consume(T),
    C);
  }
  function S(T) {
    let j = p.now();
    if (j.line !== g.line && !h && p.parser.lazy[j.line]) {
      let w = new Te(
        "Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a \
list, etc",
        {
          place: p.now(),
          ruleId: "unexpected-lazy",
          source: "micromark-extension-mdx-expression"
        }
      );
      throw w.url = Jn + W5, w;
    }
    return y(T);
  }
}
function X5(e, t, r, i, n, a, u) {
  let o = vb(this.events.slice(i), {
    acorn: e,
    tokenTypes: [r],
    acornOptions: t,
    start: n,
    expression: !0,
    allowEmpty: a,
    prefix: u ? "({" : "",
    suffix: u ? "})" : ""
  }), l = o.estree;
  if (u && l) {
    let c = l.body[0];
    if (c.type !== "ExpressionStatement" || c.expression.type !== "ObjectExpression") {
      let h = ti(c), p = new Te(
        "Unexpected `" + c.type + "` in code: expected an object spread (`{...spread}`)",
        {
          place: h.start,
          ruleId: "non-spread",
          source: "micromark-extension-mdx-expression"
        }
      );
      throw p.url = Jn + kE, p;
    }
    if (c.expression.properties[1]) {
      let h = ti(c.expression.properties[1]), p = new Te(
        "Unexpected extra content in spread: only a single spread is supported",
        {
          place: h.start,
          ruleId: "spread-extra",
          source: "micromark-extension-mdx-expression"
        }
      );
      throw p.url = Jn + J5, p;
    }
    if (c.expression.properties[0] && c.expression.properties[0].type !== "SpreadElement") {
      let h = ti(c.expression.properties[0]), p = new Te(
        "Unexpected `" + c.expression.properties[0].type + "` in code: only spread elements are supported",
        {
          place: h.start,
          ruleId: "non-spread",
          source: "micromark-extension-mdx-expression"
        }
      );
      throw p.url = Jn + kE, p;
    }
  }
  if (o.error) {
    let c = new Te("Could not parse expression with acorn", {
      cause: o.error,
      place: {
        line: o.error.loc.line,
        column: o.error.loc.column + 1,
        offset: o.error.pos
      },
      ruleId: "acorn",
      source: "micromark-extension-mdx-expression"
    });
    return c.url = Jn + G5, {
      type: "nok",
      message: c
    };
  }
  return {
    type: "ok",
    estree: l
  };
}
function Pe(e, t, r, i) {
  let n = i ? i - 1 : Number.POSITIVE_INFINITY, a = 0;
  return u;
  function u(l) {
    return Fe(l) ? (e.enter(r), o(l)) : t(l);
  }
  function o(l) {
    return Fe(l) && a++ < n ? (e.consume(l), o) : (e.exit(r), t(l));
  }
}
function Y5(e) {
  let t = e || {}, r = t.addResult, i = t.acorn, n = t.spread, a = t.allowEmpty, u;
  if (a == null && (a = !0), i) {
    if (!i.parseExpressionAt)
      throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");
    u = Object.assign({
      ecmaVersion: 2024,
      sourceType: "module"
    }, t.acornOptions);
  } else if (t.acornOptions || t.addResult)
    throw new Error("Expected an `acorn` instance passed in as `options.acorn`");
  return {
    flow: {
      123: {
        name: "mdxFlowExpression",
        tokenize: o,
        concrete: !0
      }
    },
    text: {
      123: {
        name: "mdxTextExpression",
        tokenize: l
      }
    }
  };
  function o(c, h, p) {
    let d = this;
    return m;
    function m(y) {
      return g(y);
    }
    function g(y) {
      return Ju.call(d, c, D, "mdxFlowExpression", "mdxFlowExpressionMarker", "mdxFlowExpressionChunk", i, u, r, n, a)(y);
    }
    function D(y) {
      return Fe(y) ? Pe(c, v, "whitespace")(y) : v(y);
    }
    function v(y) {
      let C = d.parser.constructs.flow[60], T = (Array.isArray(C) ? C : (
        /* c8 ignore next 3 -- always a list when normalized. */
        C ? [C] : []
      )).find(function(j) {
        return j.name === "mdxJsxFlowTag";
      });
      return y === 60 && T ? c.attempt(T, v, p)(y) : y === null || ne(y) ? h(y) : p(y);
    }
  }
  function l(c, h) {
    let p = this;
    return d;
    function d(m) {
      return Ju.call(p, c, h, "mdxTextExpression", "mdxTextExpressionMarker", "mdxTextExpressionChunk", i, u, r, n, a, !0)(m);
    }
  }
}
function Cb(e, t, r, i, n, a, u, o, l, c, h, p, d, m, g, D, v, y, C, S, T, j, w, A, P, k, $, M, V, U, G, R) {
  let N = this, z, Q;
  return te;
  function te(b) {
    return e.enter(o), e.enter(l), e.consume(b), e.exit(l), I;
  }
  function I(b) {
    return Qe(b) ? r(b) : (z = he, E(b));
  }
  function he(b) {
    if (b === 47)
      return e.enter(c), e.consume(b), e.exit(c), z = xe, E;
    if (b === 62)
      return wt(b);
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(p), e.enter(d), e.consume(b), L;
    O(b, "before name", "a character that can start a name, such as a letter, `$`, or `_`" + (b === 33 ? " (note: to create a comment in MDX\
, use `{/* text */}`)" : ""));
  }
  function xe(b) {
    if (b === 62)
      return wt(b);
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(p), e.enter(d), e.consume(b), L;
    O(b, "before name", "a character that can start a name, such as a letter, `$`, or `_`" + (b === 42 || b === 47 ? " (note: JS comments in\
 JSX tags are not supported in MDX)" : ""));
  }
  function L(b) {
    if (b !== null && b >= 0 && Nn(b, {
      jsx: !0
    }))
      return e.consume(b), L;
    if (b === 46 || b === 47 || b === 58 || b === 62 || b === 123 || Qe(b) || ei(b))
      return e.exit(d), z = Se, E(b);
    O(b, "in name", "a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag" + (b === 64 ?
    " (note: to create a link in MDX, use `[text](url)`)" : ""));
  }
  function Se(b) {
    if (b === 46)
      return e.enter(m), e.consume(b), e.exit(m), z = Ie, E;
    if (b === 58)
      return e.enter(D), e.consume(b), e.exit(D), z = Oe, E;
    if (b === 47 || b === 62 || b === 123 || b !== null && b >= 0 && Gt(b))
      return e.exit(p), K(b);
    O(b, "after name", "a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the en\
d of the tag");
  }
  function Ie(b) {
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(g), e.consume(b), ue;
    O(b, "before member name", "a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; o\
r the end of the tag");
  }
  function ue(b) {
    if (b !== null && b >= 0 && Nn(b, {
      jsx: !0
    }))
      return e.consume(b), ue;
    if (b === 46 || b === 47 || b === 62 || b === 123 || Qe(b) || ei(b))
      return e.exit(g), z = at, E(b);
    O(b, "in member name", "a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag" + (b ===
    64 ? " (note: to create a link in MDX, use `[text](url)`)" : ""));
  }
  function at(b) {
    if (b === 46)
      return e.enter(m), e.consume(b), e.exit(m), z = Ie, E;
    if (b === 47 || b === 62 || b === 123 || b !== null && b >= 0 && Gt(b))
      return e.exit(p), K(b);
    O(b, "after member name", "a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or\
 the end of the tag");
  }
  function Oe(b) {
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(v), e.consume(b), ee;
    O(b, "before local name", "a character that can start a name, such as a letter, `$`, or `_`" + (b === 43 || b !== null && b > 46 && b < 58 ?
    " (note: to create a link in MDX, use `[text](url)`)" : ""));
  }
  function ee(b) {
    if (b !== null && b >= 0 && Nn(b, {
      jsx: !0
    }))
      return e.consume(b), ee;
    if (b === 47 || b === 62 || b === 123 || Qe(b) || ei(b))
      return e.exit(v), z = De, E(b);
    O(b, "in local name", "a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag");
  }
  function De(b) {
    if (b === 47 || b === 62 || b === 123 || b !== null && b >= 0 && Gt(b))
      return e.exit(p), K(b);
    O(b, "after local name", "a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or \
the end of the tag");
  }
  function K(b) {
    if (b === 47)
      return e.enter(h), e.consume(b), e.exit(h), z = ce, E;
    if (b === 62)
      return wt(b);
    if (b === 123)
      return Ju.call(N, e, le, y, C, S, i, n, a, !0, !1, u)(b);
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(T), e.enter(j), e.enter(w), e.consume(b), ke;
    O(b, "before attribute name", "a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes\
; or the end of the tag");
  }
  function le(b) {
    return z = K, E(b);
  }
  function ke(b) {
    if (b !== null && b >= 0 && Nn(b, {
      jsx: !0
    }))
      return e.consume(b), ke;
    if (b === 47 || b === 58 || b === 61 || b === 62 || b === 123 || Qe(b) || ei(b))
      return e.exit(w), z = Xe, E(b);
    O(b, "in attribute name", "an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace befor\
e attributes; or the end of the tag");
  }
  function Xe(b) {
    if (b === 58)
      return e.enter(A), e.consume(b), e.exit(A), z = Re, E;
    if (b === 61)
      return e.exit(j), e.enter(k), e.consume(b), e.exit(k), z = or, E;
    if (b === 47 || b === 62 || b === 123 || Qe(b) || ei(b) || b !== null && b >= 0 && Gt(b))
      return e.exit(j), e.exit(T), z = K, E(b);
    O(b, "after attribute name", "a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or\
 the end of the tag");
  }
  function Re(b) {
    if (b !== null && b >= 0 && Gt(b))
      return e.enter(P), e.consume(b), Vt;
    O(b, "before local attribute name", "a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a va\
lue; or the end of the tag");
  }
  function Vt(b) {
    if (b !== null && b >= 0 && Nn(b, {
      jsx: !0
    }))
      return e.consume(b), Vt;
    if (b === 47 || b === 61 || b === 62 || b === 123 || Qe(b) || ei(b))
      return e.exit(P), e.exit(j), z = vr, E(b);
    O(b, "in local attribute name", "an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace\
 before attributes; or the end of the tag");
  }
  function vr(b) {
    if (b === 61)
      return e.enter(k), e.consume(b), e.exit(k), z = or, E;
    if (b === 47 || b === 62 || b === 123 || b !== null && b >= 0 && Gt(b))
      return e.exit(T), K(b);
    O(b, "after local attribute name", "a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a val\
ue; or the end of the tag");
  }
  function or(b) {
    if (b === 34 || b === 39)
      return e.enter($), e.enter(M), e.consume(b), e.exit(M), Q = b, fi;
    if (b === 123)
      return Ju.call(N, e, zi, U, G, R, i, n, a, !1, !1, u)(b);
    O(b, "before attribute value", "a character that can start an attribute value, such as `\"`, `'`, or `{`" + (b === 60 ? " (note: to use \
an element or fragment as a prop value in MDX, use `{<element />}`)" : ""));
  }
  function zi(b) {
    return e.exit(T), z = K, E(b);
  }
  function fi(b) {
    return b === null && O(b, "in attribute value", "a corresponding closing quote `" + String.fromCodePoint(Q) + "`"), b === Q ? (e.enter(M),
    e.consume(b), e.exit(M), e.exit($), e.exit(T), Q = void 0, z = K, E) : ne(b) ? (z = fi, E(b)) : (e.enter(V), yn(b));
  }
  function yn(b) {
    return b === null || b === Q || ne(b) ? (e.exit(V), fi(b)) : (e.consume(b), yn);
  }
  function ce(b) {
    if (b === 62)
      return wt(b);
    O(b, "after self-closing slash", "`>` to end the tag" + (b === 42 || b === 47 ? " (note: JS comments in JSX tags are not supported in MD\
X)" : ""));
  }
  function wt(b) {
    return e.enter(l), e.consume(b), e.exit(l), e.exit(o), t;
  }
  function E(b) {
    return ne(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), _) : Fe(b) || ei(b) ? (e.enter("esWhitespace"), x(b)) : z(b);
  }
  function x(b) {
    return ne(b) ? (e.exit("esWhitespace"), E(b)) : Fe(b) || ei(b) ? (e.consume(b), x) : (e.exit("esWhitespace"), z(b));
  }
  function _(b) {
    if (!u && N.parser.lazy[N.now().line]) {
      let q = new Te("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a l\
ist, etc", N.now(), "micromark-extension-mdx-jsx:unexpected-lazy");
      throw q.url = TE + "#unexpected-lazy-line-in-container-expected-line-to-be", q;
    }
    return E(b);
  }
  function O(b, q, W) {
    let J = new Te("Unexpected " + (b === null ? "end of file" : "character `" + (b === 96 ? "` ` `" : String.fromCodePoint(b)) + "` (" + K5(
    b) + ")") + " " + q + ", expected " + W, N.now(), "micromark-extension-mdx-jsx:unexpected-" + (b === null ? "eof" : "character"));
    throw J.url = TE + (b === null ? "#unexpected-end-of-file-at-expected-expect" : "#unexpected-character-at-expected-expect"), J;
  }
}
function K5(e) {
  return "U+" + e.toString(16).toUpperCase().padStart(4, "0");
}
function Q5(e, t) {
  return {
    name: "mdxJsxTextTag",
    tokenize: r
  };
  function r(i, n, a) {
    return Cb.call(this, i, n, a, e, t.acornOptions, t.addResult, !0, "mdxJsxTextTag", "mdxJsxTextTagMarker", "mdxJsxTextTagClosingMarker", "\
mdxJsxTextTagSelfClosingMarker", "mdxJsxTextTagName", "mdxJsxTextTagNamePrimary", "mdxJsxTextTagNameMemberMarker", "mdxJsxTextTagNameMember",
    "mdxJsxTextTagNamePrefixMarker", "mdxJsxTextTagNameLocal", "mdxJsxTextTagExpressionAttribute", "mdxJsxTextTagExpressionAttributeMarker",
    "mdxJsxTextTagExpressionAttributeValue", "mdxJsxTextTagAttribute", "mdxJsxTextTagAttributeName", "mdxJsxTextTagAttributeNamePrimary", "m\
dxJsxTextTagAttributeNamePrefixMarker", "mdxJsxTextTagAttributeNameLocal", "mdxJsxTextTagAttributeInitializerMarker", "mdxJsxTextTagAttribut\
eValueLiteral", "mdxJsxTextTagAttributeValueLiteralMarker", "mdxJsxTextTagAttributeValueLiteralValue", "mdxJsxTextTagAttributeValueExpressio\
n", "mdxJsxTextTagAttributeValueExpressionMarker", "mdxJsxTextTagAttributeValueExpressionValue");
  }
}
function Z5(e, t) {
  return {
    name: "mdxJsxFlowTag",
    tokenize: r,
    concrete: !0
  };
  function r(i, n, a) {
    let u = this;
    return o;
    function o(p) {
      return l(p);
    }
    function l(p) {
      return Cb.call(u, i, c, a, e, t.acornOptions, t.addResult, !1, "mdxJsxFlowTag", "mdxJsxFlowTagMarker", "mdxJsxFlowTagClosingMarker", "\
mdxJsxFlowTagSelfClosingMarker", "mdxJsxFlowTagName", "mdxJsxFlowTagNamePrimary", "mdxJsxFlowTagNameMemberMarker", "mdxJsxFlowTagNameMember",
      "mdxJsxFlowTagNamePrefixMarker", "mdxJsxFlowTagNameLocal", "mdxJsxFlowTagExpressionAttribute", "mdxJsxFlowTagExpressionAttributeMarker",
      "mdxJsxFlowTagExpressionAttributeValue", "mdxJsxFlowTagAttribute", "mdxJsxFlowTagAttributeName", "mdxJsxFlowTagAttributeNamePrimary", "\
mdxJsxFlowTagAttributeNamePrefixMarker", "mdxJsxFlowTagAttributeNameLocal", "mdxJsxFlowTagAttributeInitializerMarker", "mdxJsxFlowTagAttribu\
teValueLiteral", "mdxJsxFlowTagAttributeValueLiteralMarker", "mdxJsxFlowTagAttributeValueLiteralValue", "mdxJsxFlowTagAttributeValueExpressi\
on", "mdxJsxFlowTagAttributeValueExpressionMarker", "mdxJsxFlowTagAttributeValueExpressionValue")(p);
    }
    function c(p) {
      return Fe(p) ? Pe(i, h, "whitespace")(p) : h(p);
    }
    function h(p) {
      let d = u.parser.constructs.flow[123], g = (Array.isArray(d) ? d : d ? [d] : []).find((D) => D.name === "mdxFlowExpression");
      return p === 60 ? (
        // We can’t just say: fine. Lines of blocks have to be parsed until an eol/eof.
        o(p)
      ) : p === 123 && g ? i.attempt(g, h, a)(p) : p === null || ne(p) ? n(p) : a(p);
    }
  }
}
function eR(e) {
  let t = e || {}, r = t.acorn, i;
  if (r) {
    if (!r.parse || !r.parseExpressionAt)
      throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");
    i = Object.assign({
      ecmaVersion: 2024,
      sourceType: "module"
    }, t.acornOptions, {
      locations: !0
    });
  } else if (t.acornOptions || t.addResult)
    throw new Error("Expected an `acorn` instance passed in as `options.acorn`");
  return {
    flow: {
      60: Z5(r || void 0, {
        acornOptions: i,
        addResult: t.addResult || void 0
      })
    },
    text: {
      60: Q5(r || void 0, {
        acornOptions: i,
        addResult: t.addResult || void 0
      })
    }
  };
}
function tR() {
  return {
    disable: { null: ["autolink", "codeIndented", "htmlFlow", "htmlText"] }
  };
}
function Or(e, t, r, i) {
  let n = e.length, a = 0, u;
  if (t < 0 ? t = -t > n ? 0 : n + t : t = t > n ? n : t, r = r > 0 ? r : 0, i.length < 1e4)
    u = Array.from(i), u.unshift(t, r), e.splice(...u);
  else
    for (r && e.splice(t, r); a < i.length; )
      u = i.slice(a, a + 1e4), u.unshift(t, 0), e.splice(...u), a += 1e4, t += 1e4;
}
function tr(e, t) {
  return e.length > 0 ? (Or(e, e.length, 0, t), e) : t;
}
function BE(e) {
  if (e === null || Qe(e) || ei(e))
    return 1;
  if (N5(e))
    return 2;
}
function Gp(e, t, r) {
  let i = [], n = -1;
  for (; ++n < e.length; ) {
    let a = e[n].resolveAll;
    a && !i.includes(a) && (t = a(t, r), i.push(a));
  }
  return t;
}
function rR(e, t) {
  let r = -1, i, n, a, u, o, l, c, h;
  for (; ++r < e.length; )
    if (e[r][0] === "enter" && e[r][1].type === "attentionSequence" && e[r][1]._close) {
      for (i = r; i--; )
        if (e[i][0] === "exit" && e[i][1].type === "attentionSequence" && e[i][1]._open && // If the markers are the same:
        t.sliceSerialize(e[i][1]).charCodeAt(0) === t.sliceSerialize(e[r][1]).charCodeAt(0)) {
          if ((e[i][1]._close || e[r][1]._open) && (e[r][1].end.offset - e[r][1].start.offset) % 3 && !((e[i][1].end.offset - e[i][1].start.
          offset + e[r][1].end.offset - e[r][1].start.offset) % 3))
            continue;
          l = e[i][1].end.offset - e[i][1].start.offset > 1 && e[r][1].end.offset - e[r][1].start.offset > 1 ? 2 : 1;
          let p = Object.assign({}, e[i][1].end), d = Object.assign({}, e[r][1].start);
          PE(p, -l), PE(d, l), u = {
            type: l > 1 ? "strongSequence" : "emphasisSequence",
            start: p,
            end: Object.assign({}, e[i][1].end)
          }, o = {
            type: l > 1 ? "strongSequence" : "emphasisSequence",
            start: Object.assign({}, e[r][1].start),
            end: d
          }, a = {
            type: l > 1 ? "strongText" : "emphasisText",
            start: Object.assign({}, e[i][1].end),
            end: Object.assign({}, e[r][1].start)
          }, n = {
            type: l > 1 ? "strong" : "emphasis",
            start: Object.assign({}, u.start),
            end: Object.assign({}, o.end)
          }, e[i][1].end = Object.assign({}, u.start), e[r][1].start = Object.assign({}, o.end), c = [], e[i][1].end.offset - e[i][1].start.
          offset && (c = tr(c, [
            ["enter", e[i][1], t],
            ["exit", e[i][1], t]
          ])), c = tr(c, [
            ["enter", n, t],
            ["enter", u, t],
            ["exit", u, t],
            ["enter", a, t]
          ]), c = tr(
            c,
            Gp(
              t.parser.constructs.insideSpan.null,
              e.slice(i + 1, r),
              t
            )
          ), c = tr(c, [
            ["exit", a, t],
            ["enter", o, t],
            ["exit", o, t],
            ["exit", n, t]
          ]), e[r][1].end.offset - e[r][1].start.offset ? (h = 2, c = tr(c, [
            ["enter", e[r][1], t],
            ["exit", e[r][1], t]
          ])) : h = 0, Or(e, i - 1, r - i + 3, c), r = i + c.length - h - 2;
          break;
        }
    }
  for (r = -1; ++r < e.length; )
    e[r][1].type === "attentionSequence" && (e[r][1].type = "data");
  return e;
}
function iR(e, t) {
  let r = this.parser.constructs.attentionMarkers.null, i = this.previous, n = BE(i), a;
  return u;
  function u(l) {
    return a = l, e.enter("attentionSequence"), o(l);
  }
  function o(l) {
    if (l === a)
      return e.consume(l), o;
    let c = e.exit("attentionSequence"), h = BE(l), p = !h || h === 2 && n || r.includes(l), d = !n || n === 2 && h || r.includes(i);
    return c._open = !!(a === 42 ? p : p && (n || !d)), c._close = !!(a === 42 ? d : d && (h || !p)), t(l);
  }
}
function PE(e, t) {
  e.column += t, e.offset += t, e._bufferIndex += t;
}
function sR(e, t, r) {
  let i = 0;
  return n;
  function n(m) {
    return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
  }
  function a(m) {
    return gr(m) ? (e.consume(m), u) : c(m);
  }
  function u(m) {
    return m === 43 || m === 45 || m === 46 || Lt(m) ? (i = 1, o(m)) : c(m);
  }
  function o(m) {
    return m === 58 ? (e.consume(m), i = 0, l) : (m === 43 || m === 45 || m === 46 || Lt(m)) && i++ < 32 ? (e.consume(m), o) : (i = 0, c(m));
  }
  function l(m) {
    return m === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) :
    m === null || m === 32 || m === 60 || Vp(m) ? r(m) : (e.consume(m), l);
  }
  function c(m) {
    return m === 64 ? (e.consume(m), h) : O5(m) ? (e.consume(m), c) : r(m);
  }
  function h(m) {
    return Lt(m) ? p(m) : r(m);
  }
  function p(m) {
    return m === 46 ? (e.consume(m), i = 0, h) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.
    consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : d(m);
  }
  function d(m) {
    if ((m === 45 || Lt(m)) && i++ < 63) {
      let g = m === 45 ? d : p;
      return e.consume(m), g;
    }
    return r(m);
  }
}
function aR(e, t, r) {
  return i;
  function i(a) {
    return Fe(a) ? Pe(e, n, "linePrefix")(a) : n(a);
  }
  function n(a) {
    return a === null || ne(a) ? t(a) : r(a);
  }
}
function uR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    if (u === 62) {
      let o = i.containerState;
      return o.open || (e.enter("blockQuote", {
        _container: !0
      }), o.open = !0), e.enter("blockQuotePrefix"), e.enter("blockQuoteMarker"), e.consume(u), e.exit("blockQuoteMarker"), a;
    }
    return r(u);
  }
  function a(u) {
    return Fe(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) :
    (e.exit("blockQuotePrefix"), t(u));
  }
}
function oR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return Fe(u) ? Pe(
      e,
      a,
      "linePrefix",
      i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
    )(u) : a(u);
  }
  function a(u) {
    return e.attempt(wb, t, r)(u);
  }
}
function lR(e) {
  e.exit("blockQuote");
}
function cR(e, t, r) {
  return i;
  function i(a) {
    return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(a), e.exit("escapeMarker"), n;
  }
  function n(a) {
    return bb(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : r(a);
  }
}
function hR(e, t, r) {
  let i = this, n = 0, a, u;
  return o;
  function o(p) {
    return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), l;
  }
  function l(p) {
    return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("c\
haracterReferenceValue"), a = 31, u = Lt, h(p));
  }
  function c(p) {
    return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecima\
l"), e.enter("characterReferenceValue"), a = 6, u = R5, h) : (e.enter("characterReferenceValue"), a = 7, u = Up, h(p));
  }
  function h(p) {
    if (p === 59 && n) {
      let d = e.exit("characterReferenceValue");
      return u === Lt && !Ys(i.sliceSerialize(d)) ? r(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMar\
ker"), e.exit("characterReference"), t);
    }
    return u(p) && n++ < a ? (e.consume(p), h) : r(p);
  }
}
function pR(e, t, r) {
  let i = this, n = {
    tokenize: j,
    partial: !0
  }, a = 0, u = 0, o;
  return l;
  function l(w) {
    return c(w);
  }
  function c(w) {
    let A = i.events[i.events.length - 1];
    return a = A && A[1].type === "linePrefix" ? A[2].sliceSerialize(A[1], !0).length : 0, o = w, e.enter("codeFenced"), e.enter("codeFenced\
Fence"), e.enter("codeFencedFenceSequence"), h(w);
  }
  function h(w) {
    return w === o ? (u++, e.consume(w), h) : u < 3 ? r(w) : (e.exit("codeFencedFenceSequence"), Fe(w) ? Pe(e, p, "whitespace")(w) : p(w));
  }
  function p(w) {
    return w === null || ne(w) ? (e.exit("codeFencedFence"), i.interrupt ? t(w) : e.check(IE, D, T)(w)) : (e.enter("codeFencedFenceInfo"), e.
    enter("chunkString", {
      contentType: "string"
    }), d(w));
  }
  function d(w) {
    return w === null || ne(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(w)) : Fe(w) ? (e.exit("chunkString"), e.exit("code\
FencedFenceInfo"), Pe(e, m, "whitespace")(w)) : w === 96 && w === o ? r(w) : (e.consume(w), d);
  }
  function m(w) {
    return w === null || ne(w) ? p(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
      contentType: "string"
    }), g(w));
  }
  function g(w) {
    return w === null || ne(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(w)) : w === 96 && w === o ? r(w) : (e.consume(w), g);
  }
  function D(w) {
    return e.attempt(n, T, v)(w);
  }
  function v(w) {
    return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), y;
  }
  function y(w) {
    return a > 0 && Fe(w) ? Pe(
      e,
      C,
      "linePrefix",
      a + 1
    )(w) : C(w);
  }
  function C(w) {
    return w === null || ne(w) ? e.check(IE, D, T)(w) : (e.enter("codeFlowValue"), S(w));
  }
  function S(w) {
    return w === null || ne(w) ? (e.exit("codeFlowValue"), C(w)) : (e.consume(w), S);
  }
  function T(w) {
    return e.exit("codeFenced"), t(w);
  }
  function j(w, A, P) {
    let k = 0;
    return $;
    function $(R) {
      return w.enter("lineEnding"), w.consume(R), w.exit("lineEnding"), M;
    }
    function M(R) {
      return w.enter("codeFencedFence"), Fe(R) ? Pe(
        w,
        V,
        "linePrefix",
        i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
      )(R) : V(R);
    }
    function V(R) {
      return R === o ? (w.enter("codeFencedFenceSequence"), U(R)) : P(R);
    }
    function U(R) {
      return R === o ? (k++, w.consume(R), U) : k >= u ? (w.exit("codeFencedFenceSequence"), Fe(R) ? Pe(w, G, "whitespace")(R) : G(R)) : P(R);
    }
    function G(R) {
      return R === null || ne(R) ? (w.exit("codeFencedFence"), A(R)) : P(R);
    }
  }
}
function fR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return u === null ? r(u) : (e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), a);
  }
  function a(u) {
    return i.parser.lazy[i.now().line] ? r(u) : t(u);
  }
}
function mR(e, t, r) {
  let i = this;
  return n;
  function n(c) {
    return e.enter("codeIndented"), Pe(e, a, "linePrefix", 5)(c);
  }
  function a(c) {
    let h = i.events[i.events.length - 1];
    return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? u(c) : r(c);
  }
  function u(c) {
    return c === null ? l(c) : ne(c) ? e.attempt(dR, u, l)(c) : (e.enter("codeFlowValue"), o(c));
  }
  function o(c) {
    return c === null || ne(c) ? (e.exit("codeFlowValue"), u(c)) : (e.consume(c), o);
  }
  function l(c) {
    return e.exit("codeIndented"), t(c);
  }
}
function gR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return i.parser.lazy[i.now().line] ? r(u) : ne(u) ? (e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), n) : Pe(e, a, "linePrefi\
x", 5)(u);
  }
  function a(u) {
    let o = i.events[i.events.length - 1];
    return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? t(u) : ne(u) ? n(u) : r(u);
  }
}
function yR(e) {
  let t = e.length - 4, r = 3, i, n;
  if ((e[r][1].type === "lineEnding" || e[r][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
    for (i = r; ++i < t; )
      if (e[i][1].type === "codeTextData") {
        e[r][1].type = "codeTextPadding", e[t][1].type = "codeTextPadding", r += 2, t -= 2;
        break;
      }
  }
  for (i = r - 1, t++; ++i <= t; )
    n === void 0 ? i !== t && e[i][1].type !== "lineEnding" && (n = i) : (i === t || e[i][1].type === "lineEnding") && (e[n][1].type = "code\
TextData", i !== n + 2 && (e[n][1].end = e[i - 1][1].end, e.splice(n + 2, i - n - 2), t -= i - n - 2, i = n + 2), n = void 0);
  return e;
}
function xR(e) {
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
}
function ER(e, t, r) {
  let i = this, n = 0, a, u;
  return o;
  function o(d) {
    return e.enter("codeText"), e.enter("codeTextSequence"), l(d);
  }
  function l(d) {
    return d === 96 ? (e.consume(d), n++, l) : (e.exit("codeTextSequence"), c(d));
  }
  function c(d) {
    return d === null ? r(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), c) : d === 96 ? (u = e.enter("codeTextSequence"),
    a = 0, p(d)) : ne(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("codeTextData"), h(d));
  }
  function h(d) {
    return d === null || d === 32 || d === 96 || ne(d) ? (e.exit("codeTextData"), c(d)) : (e.consume(d), h);
  }
  function p(d) {
    return d === 96 ? (e.consume(d), a++, p) : a === n ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (u.type = "codeTextData", h(
    d));
  }
}
function Sb(e) {
  let t = {}, r = -1, i, n, a, u, o, l, c;
  for (; ++r < e.length; ) {
    for (; r in t; )
      r = t[r];
    if (i = e[r], r && i[1].type === "chunkFlow" && e[r - 1][1].type === "listItemPrefix" && (l = i[1]._tokenizer.events, a = 0, a < l.length &&
    l[a][1].type === "lineEndingBlank" && (a += 2), a < l.length && l[a][1].type === "content"))
      for (; ++a < l.length && l[a][1].type !== "content"; )
        l[a][1].type === "chunkText" && (l[a][1]._isInFirstContentOfListItem = !0, a++);
    if (i[0] === "enter")
      i[1].contentType && (Object.assign(t, bR(e, r)), r = t[r], c = !0);
    else if (i[1]._container) {
      for (a = r, n = void 0; a-- && (u = e[a], u[1].type === "lineEnding" || u[1].type === "lineEndingBlank"); )
        u[0] === "enter" && (n && (e[n][1].type = "lineEndingBlank"), u[1].type = "lineEnding", n = a);
      n && (i[1].end = Object.assign({}, e[n][1].start), o = e.slice(n, r), o.unshift(i), Or(e, n, r - n + 1, o));
    }
  }
  return !c;
}
function bR(e, t) {
  let r = e[t][1], i = e[t][2], n = t - 1, a = [], u = r._tokenizer || i.parser[r.contentType](r.start), o = u.events, l = [], c = {}, h, p,
  d = -1, m = r, g = 0, D = 0, v = [D];
  for (; m; ) {
    for (; e[++n][1] !== m; )
      ;
    a.push(n), m._tokenizer || (h = i.sliceStream(m), m.next || h.push(null), p && u.defineSkip(m.start), m._isInFirstContentOfListItem && (u.
    _gfmTasklistFirstContentOfListItem = !0), u.write(h), m._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)),
    p = m, m = m.next;
  }
  for (m = r; ++d < o.length; )
    // Find a void token that includes a break.
    o[d][0] === "exit" && o[d - 1][0] === "enter" && o[d][1].type === o[d - 1][1].type && o[d][1].start.line !== o[d][1].end.line && (D = d +
    1, v.push(D), m._tokenizer = void 0, m.previous = void 0, m = m.next);
  for (u.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : v.pop(), d = v.length; d--; ) {
    let y = o.slice(v[d], v[d + 1]), C = a.pop();
    l.unshift([C, C + y.length - 1]), Or(e, C, 2, y);
  }
  for (d = -1; ++d < l.length; )
    c[g + l[d][0]] = g + l[d][1], g += l[d][1] - l[d][0] - 1;
  return c;
}
function wR(e) {
  return Sb(e), e;
}
function AR(e, t) {
  let r;
  return i;
  function i(o) {
    return e.enter("content"), r = e.enter("chunkContent", {
      contentType: "content"
    }), n(o);
  }
  function n(o) {
    return o === null ? a(o) : ne(o) ? e.check(
      CR,
      u,
      a
    )(o) : (e.consume(o), n);
  }
  function a(o) {
    return e.exit("chunkContent"), e.exit("content"), t(o);
  }
  function u(o) {
    return e.consume(o), e.exit("chunkContent"), r.next = e.enter("chunkContent", {
      contentType: "content",
      previous: r
    }), r = r.next, n;
  }
}
function FR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), Pe(e, a, "linePrefix");
  }
  function a(u) {
    if (u === null || ne(u))
      return r(u);
    let o = i.events[i.events.length - 1];
    return !i.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >=
    4 ? t(u) : e.interrupt(i.parser.constructs.flow, r, t)(u);
  }
}
function _b(e, t, r, i, n, a, u, o, l) {
  let c = l || Number.POSITIVE_INFINITY, h = 0;
  return p;
  function p(y) {
    return y === 60 ? (e.enter(i), e.enter(n), e.enter(a), e.consume(y), e.exit(a), d) : y === null || y === 32 || y === 41 || Vp(y) ? r(y) :
    (e.enter(i), e.enter(u), e.enter(o), e.enter("chunkString", {
      contentType: "string"
    }), D(y));
  }
  function d(y) {
    return y === 62 ? (e.enter(a), e.consume(y), e.exit(a), e.exit(n), e.exit(i), t) : (e.enter(o), e.enter("chunkString", {
      contentType: "string"
    }), m(y));
  }
  function m(y) {
    return y === 62 ? (e.exit("chunkString"), e.exit(o), d(y)) : y === null || y === 60 || ne(y) ? r(y) : (e.consume(y), y === 92 ? g : m);
  }
  function g(y) {
    return y === 60 || y === 62 || y === 92 ? (e.consume(y), m) : m(y);
  }
  function D(y) {
    return !h && (y === null || y === 41 || Qe(y)) ? (e.exit("chunkString"), e.exit(o), e.exit(u), e.exit(i), t(y)) : h < c && y === 40 ? (e.
    consume(y), h++, D) : y === 41 ? (e.consume(y), h--, D) : y === null || y === 32 || y === 40 || Vp(y) ? r(y) : (e.consume(y), y === 92 ?
    v : D);
  }
  function v(y) {
    return y === 40 || y === 41 || y === 92 ? (e.consume(y), D) : D(y);
  }
}
function kb(e, t, r, i, n, a) {
  let u = this, o = 0, l;
  return c;
  function c(m) {
    return e.enter(i), e.enter(n), e.consume(m), e.exit(n), e.enter(a), h;
  }
  function h(m) {
    return o > 999 || m === null || m === 91 || m === 93 && !l || // To do: remove in the future once we’ve switched from
    // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
    // which doesn’t need this.
    // Hidden footnotes hook.
    /* c8 ignore next 3 */
    m === 94 && !o && "_hiddenFootnoteSupport" in u.parser.constructs ? r(m) : m === 93 ? (e.exit(a), e.enter(n), e.consume(m), e.exit(n), e.
    exit(i), t) : ne(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), h) : (e.enter("chunkString", {
      contentType: "string"
    }), p(m));
  }
  function p(m) {
    return m === null || m === 91 || m === 93 || ne(m) || o++ > 999 ? (e.exit("chunkString"), h(m)) : (e.consume(m), l || (l = !Fe(m)), m ===
    92 ? d : p);
  }
  function d(m) {
    return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, p) : p(m);
  }
}
function Tb(e, t, r, i, n, a) {
  let u;
  return o;
  function o(d) {
    return d === 34 || d === 39 || d === 40 ? (e.enter(i), e.enter(n), e.consume(d), e.exit(n), u = d === 40 ? 41 : d, l) : r(d);
  }
  function l(d) {
    return d === u ? (e.enter(n), e.consume(d), e.exit(n), e.exit(i), t) : (e.enter(a), c(d));
  }
  function c(d) {
    return d === u ? (e.exit(a), l(u)) : d === null ? r(d) : ne(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Pe(e, c, "l\
inePrefix")) : (e.enter("chunkString", {
      contentType: "string"
    }), h(d));
  }
  function h(d) {
    return d === u || d === null || ne(d) ? (e.exit("chunkString"), c(d)) : (e.consume(d), d === 92 ? p : h);
  }
  function p(d) {
    return d === u || d === 92 ? (e.consume(d), h) : h(d);
  }
}
function Gs(e, t) {
  let r;
  return i;
  function i(n) {
    return ne(n) ? (e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), r = !0, i) : Fe(n) ? Pe(
      e,
      i,
      r ? "linePrefix" : "lineSuffix"
    )(n) : t(n);
  }
}
function Gn(e) {
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
}
function kR(e, t, r) {
  let i = this, n;
  return a;
  function a(m) {
    return e.enter("definition"), u(m);
  }
  function u(m) {
    return kb.call(
      i,
      e,
      o,
      // Note: we don’t need to reset the way `markdown-rs` does.
      r,
      "definitionLabel",
      "definitionLabelMarker",
      "definitionLabelString"
    )(m);
  }
  function o(m) {
    return n = Gn(
      i.sliceSerialize(i.events[i.events.length - 1][1]).slice(1, -1)
    ), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : r(m);
  }
  function l(m) {
    return Qe(m) ? Gs(e, c)(m) : c(m);
  }
  function c(m) {
    return _b(
      e,
      h,
      // Note: we don’t need to reset the way `markdown-rs` does.
      r,
      "definitionDestination",
      "definitionDestinationLiteral",
      "definitionDestinationLiteralMarker",
      "definitionDestinationRaw",
      "definitionDestinationString"
    )(m);
  }
  function h(m) {
    return e.attempt(_R, p, p)(m);
  }
  function p(m) {
    return Fe(m) ? Pe(e, d, "whitespace")(m) : d(m);
  }
  function d(m) {
    return m === null || ne(m) ? (e.exit("definition"), i.parser.defined.push(n), t(m)) : r(m);
  }
}
function TR(e, t, r) {
  return i;
  function i(o) {
    return Qe(o) ? Gs(e, n)(o) : r(o);
  }
  function n(o) {
    return Tb(
      e,
      a,
      r,
      "definitionTitle",
      "definitionTitleMarker",
      "definitionTitleString"
    )(o);
  }
  function a(o) {
    return Fe(o) ? Pe(e, u, "whitespace")(o) : u(o);
  }
  function u(o) {
    return o === null || ne(o) ? t(o) : r(o);
  }
}
function PR(e, t, r) {
  return i;
  function i(a) {
    return e.enter("hardBreakEscape"), e.consume(a), n;
  }
  function n(a) {
    return ne(a) ? (e.exit("hardBreakEscape"), t(a)) : r(a);
  }
}
function OR(e, t) {
  let r = e.length - 2, i = 3, n, a;
  return e[i][1].type === "whitespace" && (i += 2), r - 2 > i && e[r][1].type === "whitespace" && (r -= 2), e[r][1].type === "atxHeadingSequ\
ence" && (i === r - 1 || r - 4 > i && e[r - 2][1].type === "whitespace") && (r -= i + 1 === r ? 2 : 4), r > i && (n = {
    type: "atxHeadingText",
    start: e[i][1].start,
    end: e[r][1].end
  }, a = {
    type: "chunkText",
    start: e[i][1].start,
    end: e[r][1].end,
    contentType: "text"
  }, Or(e, i, r - i + 1, [
    ["enter", n, t],
    ["enter", a, t],
    ["exit", a, t],
    ["exit", n, t]
  ])), e;
}
function RR(e, t, r) {
  let i = 0;
  return n;
  function n(h) {
    return e.enter("atxHeading"), a(h);
  }
  function a(h) {
    return e.enter("atxHeadingSequence"), u(h);
  }
  function u(h) {
    return h === 35 && i++ < 6 ? (e.consume(h), u) : h === null || Qe(h) ? (e.exit("atxHeadingSequence"), o(h)) : r(h);
  }
  function o(h) {
    return h === 35 ? (e.enter("atxHeadingSequence"), l(h)) : h === null || ne(h) ? (e.exit("atxHeading"), t(h)) : Fe(h) ? Pe(e, o, "whitesp\
ace")(h) : (e.enter("atxHeadingText"), c(h));
  }
  function l(h) {
    return h === 35 ? (e.consume(h), l) : (e.exit("atxHeadingSequence"), o(h));
  }
  function c(h) {
    return h === null || h === 35 || Qe(h) ? (e.exit("atxHeadingText"), o(h)) : (e.consume(h), c);
  }
}
function qR(e) {
  let t = e.length;
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
    ;
  return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t -
  2, 2)), e;
}
function $R(e, t, r) {
  let i = this, n, a, u, o, l;
  return c;
  function c(L) {
    return h(L);
  }
  function h(L) {
    return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(L), p;
  }
  function p(L) {
    return L === 33 ? (e.consume(L), d) : L === 47 ? (e.consume(L), a = !0, D) : L === 63 ? (e.consume(L), n = 3, i.interrupt ? t : I) : gr(
    L) ? (e.consume(L), u = String.fromCharCode(L), v) : r(L);
  }
  function d(L) {
    return L === 45 ? (e.consume(L), n = 2, m) : L === 91 ? (e.consume(L), n = 5, o = 0, g) : gr(L) ? (e.consume(L), n = 4, i.interrupt ? t :
    I) : r(L);
  }
  function m(L) {
    return L === 45 ? (e.consume(L), i.interrupt ? t : I) : r(L);
  }
  function g(L) {
    let Se = "CDATA[";
    return L === Se.charCodeAt(o++) ? (e.consume(L), o === Se.length ? i.interrupt ? t : V : g) : r(L);
  }
  function D(L) {
    return gr(L) ? (e.consume(L), u = String.fromCharCode(L), v) : r(L);
  }
  function v(L) {
    if (L === null || L === 47 || L === 62 || Qe(L)) {
      let Se = L === 47, Ie = u.toLowerCase();
      return !Se && !a && RE.includes(Ie) ? (n = 1, i.interrupt ? t(L) : V(L)) : NR.includes(u.toLowerCase()) ? (n = 6, Se ? (e.consume(L), y) :
      i.interrupt ? t(L) : V(L)) : (n = 7, i.interrupt && !i.parser.lazy[i.now().line] ? r(L) : a ? C(L) : S(L));
    }
    return L === 45 || Lt(L) ? (e.consume(L), u += String.fromCharCode(L), v) : r(L);
  }
  function y(L) {
    return L === 62 ? (e.consume(L), i.interrupt ? t : V) : r(L);
  }
  function C(L) {
    return Fe(L) ? (e.consume(L), C) : $(L);
  }
  function S(L) {
    return L === 47 ? (e.consume(L), $) : L === 58 || L === 95 || gr(L) ? (e.consume(L), T) : Fe(L) ? (e.consume(L), S) : $(L);
  }
  function T(L) {
    return L === 45 || L === 46 || L === 58 || L === 95 || Lt(L) ? (e.consume(L), T) : j(L);
  }
  function j(L) {
    return L === 61 ? (e.consume(L), w) : Fe(L) ? (e.consume(L), j) : S(L);
  }
  function w(L) {
    return L === null || L === 60 || L === 61 || L === 62 || L === 96 ? r(L) : L === 34 || L === 39 ? (e.consume(L), l = L, A) : Fe(L) ? (e.
    consume(L), w) : P(L);
  }
  function A(L) {
    return L === l ? (e.consume(L), l = null, k) : L === null || ne(L) ? r(L) : (e.consume(L), A);
  }
  function P(L) {
    return L === null || L === 34 || L === 39 || L === 47 || L === 60 || L === 61 || L === 62 || L === 96 || Qe(L) ? j(L) : (e.consume(L), P);
  }
  function k(L) {
    return L === 47 || L === 62 || Fe(L) ? S(L) : r(L);
  }
  function $(L) {
    return L === 62 ? (e.consume(L), M) : r(L);
  }
  function M(L) {
    return L === null || ne(L) ? V(L) : Fe(L) ? (e.consume(L), M) : r(L);
  }
  function V(L) {
    return L === 45 && n === 2 ? (e.consume(L), N) : L === 60 && n === 1 ? (e.consume(L), z) : L === 62 && n === 4 ? (e.consume(L), he) : L ===
    63 && n === 3 ? (e.consume(L), I) : L === 93 && n === 5 ? (e.consume(L), te) : ne(L) && (n === 6 || n === 7) ? (e.exit("htmlFlowData"), e.
    check(
      MR,
      xe,
      U
    )(L)) : L === null || ne(L) ? (e.exit("htmlFlowData"), U(L)) : (e.consume(L), V);
  }
  function U(L) {
    return e.check(
      jR,
      G,
      xe
    )(L);
  }
  function G(L) {
    return e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), R;
  }
  function R(L) {
    return L === null || ne(L) ? U(L) : (e.enter("htmlFlowData"), V(L));
  }
  function N(L) {
    return L === 45 ? (e.consume(L), I) : V(L);
  }
  function z(L) {
    return L === 47 ? (e.consume(L), u = "", Q) : V(L);
  }
  function Q(L) {
    if (L === 62) {
      let Se = u.toLowerCase();
      return RE.includes(Se) ? (e.consume(L), he) : V(L);
    }
    return gr(L) && u.length < 8 ? (e.consume(L), u += String.fromCharCode(L), Q) : V(L);
  }
  function te(L) {
    return L === 93 ? (e.consume(L), I) : V(L);
  }
  function I(L) {
    return L === 62 ? (e.consume(L), he) : L === 45 && n === 2 ? (e.consume(L), I) : V(L);
  }
  function he(L) {
    return L === null || ne(L) ? (e.exit("htmlFlowData"), xe(L)) : (e.consume(L), he);
  }
  function xe(L) {
    return e.exit("htmlFlow"), t(L);
  }
}
function VR(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return ne(u) ? (e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), a) : r(u);
  }
  function a(u) {
    return i.parser.lazy[i.now().line] ? r(u) : t(u);
  }
}
function UR(e, t, r) {
  return i;
  function i(n) {
    return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), e.attempt(Qs, t, r);
  }
}
function HR(e, t, r) {
  let i = this, n, a, u;
  return o;
  function o(I) {
    return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(I), l;
  }
  function l(I) {
    return I === 33 ? (e.consume(I), c) : I === 47 ? (e.consume(I), j) : I === 63 ? (e.consume(I), S) : gr(I) ? (e.consume(I), P) : r(I);
  }
  function c(I) {
    return I === 45 ? (e.consume(I), h) : I === 91 ? (e.consume(I), a = 0, g) : gr(I) ? (e.consume(I), C) : r(I);
  }
  function h(I) {
    return I === 45 ? (e.consume(I), m) : r(I);
  }
  function p(I) {
    return I === null ? r(I) : I === 45 ? (e.consume(I), d) : ne(I) ? (u = p, z(I)) : (e.consume(I), p);
  }
  function d(I) {
    return I === 45 ? (e.consume(I), m) : p(I);
  }
  function m(I) {
    return I === 62 ? N(I) : I === 45 ? d(I) : p(I);
  }
  function g(I) {
    let he = "CDATA[";
    return I === he.charCodeAt(a++) ? (e.consume(I), a === he.length ? D : g) : r(I);
  }
  function D(I) {
    return I === null ? r(I) : I === 93 ? (e.consume(I), v) : ne(I) ? (u = D, z(I)) : (e.consume(I), D);
  }
  function v(I) {
    return I === 93 ? (e.consume(I), y) : D(I);
  }
  function y(I) {
    return I === 62 ? N(I) : I === 93 ? (e.consume(I), y) : D(I);
  }
  function C(I) {
    return I === null || I === 62 ? N(I) : ne(I) ? (u = C, z(I)) : (e.consume(I), C);
  }
  function S(I) {
    return I === null ? r(I) : I === 63 ? (e.consume(I), T) : ne(I) ? (u = S, z(I)) : (e.consume(I), S);
  }
  function T(I) {
    return I === 62 ? N(I) : S(I);
  }
  function j(I) {
    return gr(I) ? (e.consume(I), w) : r(I);
  }
  function w(I) {
    return I === 45 || Lt(I) ? (e.consume(I), w) : A(I);
  }
  function A(I) {
    return ne(I) ? (u = A, z(I)) : Fe(I) ? (e.consume(I), A) : N(I);
  }
  function P(I) {
    return I === 45 || Lt(I) ? (e.consume(I), P) : I === 47 || I === 62 || Qe(I) ? k(I) : r(I);
  }
  function k(I) {
    return I === 47 ? (e.consume(I), N) : I === 58 || I === 95 || gr(I) ? (e.consume(I), $) : ne(I) ? (u = k, z(I)) : Fe(I) ? (e.consume(I),
    k) : N(I);
  }
  function $(I) {
    return I === 45 || I === 46 || I === 58 || I === 95 || Lt(I) ? (e.consume(I), $) : M(I);
  }
  function M(I) {
    return I === 61 ? (e.consume(I), V) : ne(I) ? (u = M, z(I)) : Fe(I) ? (e.consume(I), M) : k(I);
  }
  function V(I) {
    return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? r(I) : I === 34 || I === 39 ? (e.consume(I), n = I, U) : ne(I) ? (u =
    V, z(I)) : Fe(I) ? (e.consume(I), V) : (e.consume(I), G);
  }
  function U(I) {
    return I === n ? (e.consume(I), n = void 0, R) : I === null ? r(I) : ne(I) ? (u = U, z(I)) : (e.consume(I), U);
  }
  function G(I) {
    return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? r(I) : I === 47 || I === 62 || Qe(I) ? k(I) : (e.consume(
    I), G);
  }
  function R(I) {
    return I === 47 || I === 62 || Qe(I) ? k(I) : r(I);
  }
  function N(I) {
    return I === 62 ? (e.consume(I), e.exit("htmlTextData"), e.exit("htmlText"), t) : r(I);
  }
  function z(I) {
    return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), Q;
  }
  function Q(I) {
    return Fe(I) ? Pe(
      e,
      te,
      "linePrefix",
      i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
    )(I) : te(I);
  }
  function te(I) {
    return e.enter("htmlTextData"), u(I);
  }
}
function XR(e) {
  let t = -1;
  for (; ++t < e.length; ) {
    let r = e[t][1];
    (r.type === "labelImage" || r.type === "labelLink" || r.type === "labelEnd") && (e.splice(t + 1, r.type === "labelImage" ? 4 : 2), r.type =
    "data", t++);
  }
  return e;
}
function YR(e, t) {
  let r = e.length, i = 0, n, a, u, o;
  for (; r--; )
    if (n = e[r][1], a) {
      if (n.type === "link" || n.type === "labelLink" && n._inactive)
        break;
      e[r][0] === "enter" && n.type === "labelLink" && (n._inactive = !0);
    } else if (u) {
      if (e[r][0] === "enter" && (n.type === "labelImage" || n.type === "labelLink") && !n._balanced && (a = r, n.type !== "labelLink")) {
        i = 2;
        break;
      }
    } else n.type === "labelEnd" && (u = r);
  let l = {
    type: e[a][1].type === "labelLink" ? "link" : "image",
    start: Object.assign({}, e[a][1].start),
    end: Object.assign({}, e[e.length - 1][1].end)
  }, c = {
    type: "label",
    start: Object.assign({}, e[a][1].start),
    end: Object.assign({}, e[u][1].end)
  }, h = {
    type: "labelText",
    start: Object.assign({}, e[a + i + 2][1].end),
    end: Object.assign({}, e[u - 2][1].start)
  };
  return o = [
    ["enter", l, t],
    ["enter", c, t]
  ], o = tr(o, e.slice(a + 1, a + i + 3)), o = tr(o, [["enter", h, t]]), o = tr(
    o,
    Gp(
      t.parser.constructs.insideSpan.null,
      e.slice(a + i + 4, u - 3),
      t
    )
  ), o = tr(o, [
    ["exit", h, t],
    e[u - 2],
    e[u - 1],
    ["exit", c, t]
  ]), o = tr(o, e.slice(u + 1)), o = tr(o, [["exit", l, t]]), Or(e, a, e.length, o), e;
}
function KR(e, t, r) {
  let i = this, n = i.events.length, a, u;
  for (; n--; )
    if ((i.events[n][1].type === "labelImage" || i.events[n][1].type === "labelLink") && !i.events[n][1]._balanced) {
      a = i.events[n][1];
      break;
    }
  return o;
  function o(d) {
    return a ? a._inactive ? p(d) : (u = i.parser.defined.includes(
      Gn(
        i.sliceSerialize({
          start: a.end,
          end: i.now()
        })
      )
    ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), l) : r(d);
  }
  function l(d) {
    return d === 40 ? e.attempt(
      WR,
      h,
      u ? h : p
    )(d) : d === 91 ? e.attempt(
      JR,
      h,
      u ? c : p
    )(d) : u ? h(d) : p(d);
  }
  function c(d) {
    return e.attempt(
      GR,
      h,
      p
    )(d);
  }
  function h(d) {
    return t(d);
  }
  function p(d) {
    return a._balanced = !0, r(d);
  }
}
function QR(e, t, r) {
  return i;
  function i(p) {
    return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), n;
  }
  function n(p) {
    return Qe(p) ? Gs(e, a)(p) : a(p);
  }
  function a(p) {
    return p === 41 ? h(p) : _b(
      e,
      u,
      o,
      "resourceDestination",
      "resourceDestinationLiteral",
      "resourceDestinationLiteralMarker",
      "resourceDestinationRaw",
      "resourceDestinationString",
      32
    )(p);
  }
  function u(p) {
    return Qe(p) ? Gs(e, l)(p) : h(p);
  }
  function o(p) {
    return r(p);
  }
  function l(p) {
    return p === 34 || p === 39 || p === 40 ? Tb(
      e,
      c,
      r,
      "resourceTitle",
      "resourceTitleMarker",
      "resourceTitleString"
    )(p) : h(p);
  }
  function c(p) {
    return Qe(p) ? Gs(e, h)(p) : h(p);
  }
  function h(p) {
    return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : r(p);
  }
}
function ZR(e, t, r) {
  let i = this;
  return n;
  function n(o) {
    return kb.call(
      i,
      e,
      a,
      u,
      "reference",
      "referenceMarker",
      "referenceString"
    )(o);
  }
  function a(o) {
    return i.parser.defined.includes(
      Gn(
        i.sliceSerialize(i.events[i.events.length - 1][1]).slice(1, -1)
      )
    ) ? t(o) : r(o);
  }
  function u(o) {
    return r(o);
  }
}
function e7(e, t, r) {
  return i;
  function i(a) {
    return e.enter("reference"), e.enter("referenceMarker"), e.consume(a), e.exit("referenceMarker"), n;
  }
  function n(a) {
    return a === 93 ? (e.enter("referenceMarker"), e.consume(a), e.exit("referenceMarker"), e.exit("reference"), t) : r(a);
  }
}
function r7(e, t, r) {
  let i = this;
  return n;
  function n(o) {
    return e.enter("labelImage"), e.enter("labelImageMarker"), e.consume(o), e.exit("labelImageMarker"), a;
  }
  function a(o) {
    return o === 91 ? (e.enter("labelMarker"), e.consume(o), e.exit("labelMarker"), e.exit("labelImage"), u) : r(o);
  }
  function u(o) {
    return o === 94 && "_hiddenFootnoteSupport" in i.parser.constructs ? r(o) : t(o);
  }
}
function n7(e, t, r) {
  let i = this;
  return n;
  function n(u) {
    return e.enter("labelLink"), e.enter("labelMarker"), e.consume(u), e.exit("labelMarker"), e.exit("labelLink"), a;
  }
  function a(u) {
    return u === 94 && "_hiddenFootnoteSupport" in i.parser.constructs ? r(u) : t(u);
  }
}
function s7(e, t) {
  return r;
  function r(i) {
    return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), Pe(e, t, "linePrefix");
  }
}
function a7(e, t, r) {
  let i = 0, n;
  return a;
  function a(c) {
    return e.enter("thematicBreak"), u(c);
  }
  function u(c) {
    return n = c, o(c);
  }
  function o(c) {
    return c === n ? (e.enter("thematicBreakSequence"), l(c)) : i >= 3 && (c === null || ne(c)) ? (e.exit("thematicBreak"), t(c)) : r(c);
  }
  function l(c) {
    return c === n ? (e.consume(c), i++, l) : (e.exit("thematicBreakSequence"), Fe(c) ? Pe(e, o, "whitespace")(c) : o(c));
  }
}
function l7(e, t, r) {
  let i = this, n = i.events[i.events.length - 1], a = n && n[1].type === "linePrefix" ? n[2].sliceSerialize(n[1], !0).length : 0, u = 0;
  return o;
  function o(m) {
    let g = i.containerState.type || (m === 42 || m === 43 || m === 45 ? "listUnordered" : "listOrdered");
    if (g === "listUnordered" ? !i.containerState.marker || m === i.containerState.marker : Up(m)) {
      if (i.containerState.type || (i.containerState.type = g, e.enter(g, {
        _container: !0
      })), g === "listUnordered")
        return e.enter("listItemPrefix"), m === 42 || m === 45 ? e.check(Wu, r, c)(m) : c(m);
      if (!i.interrupt || m === 49)
        return e.enter("listItemPrefix"), e.enter("listItemValue"), l(m);
    }
    return r(m);
  }
  function l(m) {
    return Up(m) && ++u < 10 ? (e.consume(m), l) : (!i.interrupt || u < 2) && (i.containerState.marker ? m === i.containerState.marker : m ===
    41 || m === 46) ? (e.exit("listItemValue"), c(m)) : r(m);
  }
  function c(m) {
    return e.enter("listItemMarker"), e.consume(m), e.exit("listItemMarker"), i.containerState.marker = i.containerState.marker || m, e.check(
      Qs,
      // Can’t be empty when interrupting.
      i.interrupt ? r : h,
      e.attempt(
        u7,
        d,
        p
      )
    );
  }
  function h(m) {
    return i.containerState.initialBlankLine = !0, a++, d(m);
  }
  function p(m) {
    return Fe(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"), d) : r(m);
  }
  function d(m) {
    return i.containerState.size = a + i.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(m);
  }
}
function c7(e, t, r) {
  let i = this;
  return i.containerState._closeFlow = void 0, e.check(Qs, n, a);
  function n(o) {
    return i.containerState.furtherBlankLines = i.containerState.furtherBlankLines || i.containerState.initialBlankLine, Pe(
      e,
      t,
      "listItemIndent",
      i.containerState.size + 1
    )(o);
  }
  s(n, "onBlank");
  function a(o) {
    return i.containerState.furtherBlankLines || !Fe(o) ? (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0,
    u(o)) : (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, e.attempt(o7, t, u)(o));
  }
  s(a, "notBlank");
  function u(o) {
    return i.containerState._closeFlow = !0, i.interrupt = void 0, Pe(
      e,
      e.attempt(kt, t, r),
      "linePrefix",
      i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
    )(o);
  }
  s(u, "notInCurrentItem");
}
function h7(e, t, r) {
  let i = this;
  return Pe(
    e,
    n,
    "listItemIndent",
    i.containerState.size + 1
  );
  function n(a) {
    let u = i.events[i.events.length - 1];
    return u && u[1].type === "listItemIndent" && u[2].sliceSerialize(u[1], !0).length === i.containerState.size ? t(a) : r(a);
  }
}
function p7(e) {
  e.exit(this.containerState.type);
}
function f7(e, t, r) {
  let i = this;
  return Pe(
    e,
    n,
    "listItemPrefixWhitespace",
    i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5
  );
  function n(a) {
    let u = i.events[i.events.length - 1];
    return !Fe(a) && u && u[1].type === "listItemPrefixWhitespace" ? t(a) : r(a);
  }
}
function d7(e, t) {
  let r = e.length, i, n, a;
  for (; r--; )
    if (e[r][0] === "enter") {
      if (e[r][1].type === "content") {
        i = r;
        break;
      }
      e[r][1].type === "paragraph" && (n = r);
    } else
      e[r][1].type === "content" && e.splice(r, 1), !a && e[r][1].type === "definition" && (a = r);
  let u = {
    type: "setextHeading",
    start: Object.assign({}, e[n][1].start),
    end: Object.assign({}, e[e.length - 1][1].end)
  };
  return e[n][1].type = "setextHeadingText", a ? (e.splice(n, 0, ["enter", u, t]), e.splice(a + 1, 0, ["exit", e[i][1], t]), e[i][1].end = Object.
  assign({}, e[a][1].end)) : e[i][1] = u, e.push(["exit", u, t]), e;
}
function m7(e, t, r) {
  let i = this, n;
  return a;
  function a(c) {
    let h = i.events.length, p;
    for (; h--; )
      if (i.events[h][1].type !== "lineEnding" && i.events[h][1].type !== "linePrefix" && i.events[h][1].type !== "content") {
        p = i.events[h][1].type === "paragraph";
        break;
      }
    return !i.parser.lazy[i.now().line] && (i.interrupt || p) ? (e.enter("setextHeadingLine"), n = c, u(c)) : r(c);
  }
  function u(c) {
    return e.enter("setextHeadingLineSequence"), o(c);
  }
  function o(c) {
    return c === n ? (e.consume(c), o) : (e.exit("setextHeadingLineSequence"), Fe(c) ? Pe(e, l, "lineSuffix")(c) : l(c));
  }
  function l(c) {
    return c === null || ne(c) ? (e.exit("setextHeadingLine"), t(c)) : r(c);
  }
}
function y7(e) {
  let t = {
    tokenize: n,
    concrete: !0
  };
  if (!e || !e.acorn || !e.acorn.parse)
    throw new Error("Expected an `acorn` instance passed in as `options.acorn`");
  let r = e.acorn, i = Object.assign({
    ecmaVersion: 2024,
    sourceType: "module"
  }, e.acornOptions, {
    locations: !0
  });
  return {
    flow: {
      101: t,
      105: t
    }
  };
  function n(a, u, o) {
    let l = this, c = l.parser.definedModuleSpecifiers || (l.parser.definedModuleSpecifiers = []), h = this.events.length + 1, p = "";
    return l.interrupt ? o : d;
    function d(C) {
      return l.now().column > 1 ? o(C) : (a.enter("mdxjsEsm"), a.enter("mdxjsEsmData"), a.consume(C), p += String.fromCharCode(C), m);
    }
    function m(C) {
      return gr(C) ? (a.consume(C), p += String.fromCharCode(C), m) : (p === "import" || p === "export") && C === 32 ? (a.consume(C), g) : o(
      C);
    }
    function g(C) {
      return C === null || ne(C) ? (a.exit("mdxjsEsmData"), D(C)) : (a.consume(C), g);
    }
    function D(C) {
      return C === null ? y(C) : ne(C) ? a.check(g7, y, v)(C) : (a.enter("mdxjsEsmData"), g(C));
    }
    function v(C) {
      return a.enter("lineEnding"), a.consume(C), a.exit("lineEnding"), D;
    }
    function y(C) {
      let S = vb(l.events.slice(h), {
        acorn: r,
        acornOptions: i,
        tokenTypes: ["mdxjsEsmData"],
        prefix: c.length > 0 ? "var " + c.join(",") + `
` : ""
      });
      if (S.error) {
        if (C !== null && S.swallow)
          return v(C);
        let j = new Te("Could not parse import/exports with acorn", {
          cause: S.error,
          place: {
            line: S.error.loc.line,
            column: S.error.loc.column + 1,
            offset: S.error.pos
          },
          ruleId: "acorn",
          source: "micromark-extension-mdxjs-esm"
        });
        throw j.url = LE + "#could-not-parse-importexports-with-acorn", j;
      }
      if (c.length > 0) {
        let j = S.estree.body.shift();
      }
      let T = -1;
      for (; ++T < S.estree.body.length; ) {
        let j = S.estree.body[T];
        if (!D7.has(j.type)) {
          let w = new Te("Unexpected `" + j.type + "` in code: only import/exports are supported", {
            place: ti(j),
            ruleId: "non-esm",
            source: "micromark-extension-mdxjs-esm"
          });
          throw w.url = LE + "#unexpected-type-in-code-only-importexports-are-supported", w;
        }
        if (j.type === "ImportDeclaration" && !l.interrupt) {
          let w = -1;
          for (; ++w < j.specifiers.length; ) {
            let A = j.specifiers[w];
            c.push(A.local.name);
          }
        }
      }
      return Object.assign(a.exit("mdxjsEsm"), e.addResult ? {
        estree: S.estree
      } : void 0), u(C);
    }
  }
}
function x7(e, t, r) {
  return i;
  function i(n) {
    return e.enter("lineEndingBlank"), e.consume(n), e.exit("lineEndingBlank"), e.attempt(Qs, t, r);
  }
}
function Bb(e) {
  let t = {}, r = -1;
  for (; ++r < e.length; )
    E7(t, e[r]);
  return t;
}
function E7(e, t) {
  let r;
  for (r in t) {
    let n = (ME.call(e, r) ? e[r] : void 0) || (e[r] = {}), a = t[r], u;
    if (a)
      for (u in a) {
        ME.call(n, u) || (n[u] = []);
        let o = a[u];
        b7(
          // @ts-expect-error Looks like a list.
          n[u],
          Array.isArray(o) ? o : o ? [o] : []
        );
      }
  }
}
function b7(e, t) {
  let r = -1, i = [];
  for (; ++r < t.length; )
    (t[r].add === "after" ? e : i).push(t[r]);
  Or(e, 0, 0, i);
}
function v7(e) {
  let t = Object.assign(
    {
      acorn: tt.extend((0, P5.default)()),
      acornOptions: { ecmaVersion: 2024, sourceType: "module" },
      addResult: !0
    },
    e
  );
  return Bb([
    y7(t),
    Y5(t),
    eR(t),
    tR()
  ]);
}
function w7(e) {
  let t = (
    /** @type {Processor} */
    this
  ), r = e || C7, i = t.data(), n = i.micromarkExtensions || (i.micromarkExtensions = []), a = i.fromMarkdownExtensions || (i.fromMarkdownExtensions =
  []), u = i.toMarkdownExtensions || (i.toMarkdownExtensions = []);
  n.push(v7(r)), a.push(T5()), u.push(B5(r));
}
function F7(e, t) {
  let r = t || A7, i = typeof r.includeImageAlt == "boolean" ? r.includeImageAlt : !0, n = typeof r.includeHtml == "boolean" ? r.includeHtml :
  !0;
  return Pb(e, i, n);
}
function Pb(e, t, r) {
  if (S7(e)) {
    if ("value" in e)
      return e.type === "html" && !r ? "" : e.value;
    if (t && "alt" in e && e.alt)
      return e.alt;
    if ("children" in e)
      return jE(e.children, t, r);
  }
  return Array.isArray(e) ? jE(e, t, r) : "";
}
function jE(e, t, r) {
  let i = [], n = -1;
  for (; ++n < e.length; )
    i[n] = Pb(e[n], t, r);
  return i.join("");
}
function S7(e) {
  return !!(e && typeof e == "object");
}
function Ib(e, t) {
  let r = Number.parseInt(e, t);
  return (
    // C0 except for HT, LF, FF, CR, space.
    r < 9 || r === 11 || r > 13 && r < 32 || // Control character (DEL) of C0, and C1 controls.
    r > 126 && r < 160 || // Lone high surrogates and low surrogates.
    r > 55295 && r < 57344 || // Noncharacters.
    r > 64975 && r < 65008 || /* eslint-disable no-bitwise */
    (r & 65535) === 65535 || (r & 65535) === 65534 || /* eslint-enable no-bitwise */
    // Out of range
    r > 1114111 ? "\uFFFD" : String.fromCodePoint(r)
  );
}
function Xn(e) {
  let t = [], r = -1, i = 0, n = 0;
  for (; ++r < e.length; ) {
    let a = e.charCodeAt(r), u = "";
    if (a === 37 && Lt(e.charCodeAt(r + 1)) && Lt(e.charCodeAt(r + 2)))
      n = 2;
    else if (a < 128)
      /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (u = String.fromCharCode(a));
    else if (a > 55295 && a < 57344) {
      let o = e.charCodeAt(r + 1);
      a < 56320 && o > 56319 && o < 57344 ? (u = String.fromCharCode(a, o), n = 1) : u = "\uFFFD";
    } else
      u = String.fromCharCode(a);
    u && (t.push(e.slice(i, r), encodeURIComponent(u)), i = r + n + 1, u = ""), n && (r += n, n = 0);
  }
  return t.join("") + e.slice(i);
}
function k7(e) {
  let t = e.attempt(
    this.parser.constructs.contentInitial,
    i,
    n
  ), r;
  return t;
  function i(o) {
    if (o === null) {
      e.consume(o);
      return;
    }
    return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), Pe(e, t, "linePrefix");
  }
  function n(o) {
    return e.enter("paragraph"), a(o);
  }
  function a(o) {
    let l = e.enter("chunkText", {
      contentType: "text",
      previous: r
    });
    return r && (r.next = l), r = l, u(o);
  }
  function u(o) {
    if (o === null) {
      e.exit("chunkText"), e.exit("paragraph"), e.consume(o);
      return;
    }
    return ne(o) ? (e.consume(o), e.exit("chunkText"), a) : (e.consume(o), u);
  }
}
function B7(e) {
  let t = this, r = [], i = 0, n, a, u;
  return o;
  function o(S) {
    if (i < r.length) {
      let T = r[i];
      return t.containerState = T[1], e.attempt(
        T[0].continuation,
        l,
        c
      )(S);
    }
    return c(S);
  }
  function l(S) {
    if (i++, t.containerState._closeFlow) {
      t.containerState._closeFlow = void 0, n && C();
      let T = t.events.length, j = T, w;
      for (; j--; )
        if (t.events[j][0] === "exit" && t.events[j][1].type === "chunkFlow") {
          w = t.events[j][1].end;
          break;
        }
      y(i);
      let A = T;
      for (; A < t.events.length; )
        t.events[A][1].end = Object.assign({}, w), A++;
      return Or(
        t.events,
        j + 1,
        0,
        t.events.slice(T)
      ), t.events.length = A, c(S);
    }
    return o(S);
  }
  function c(S) {
    if (i === r.length) {
      if (!n)
        return d(S);
      if (n.currentConstruct && n.currentConstruct.concrete)
        return g(S);
      t.interrupt = !!(n.currentConstruct && !n._gfmTableDynamicInterruptHack);
    }
    return t.containerState = {}, e.check(
      qE,
      h,
      p
    )(S);
  }
  function h(S) {
    return n && C(), y(i), d(S);
  }
  function p(S) {
    return t.parser.lazy[t.now().line] = i !== r.length, u = t.now().offset, g(S);
  }
  function d(S) {
    return t.containerState = {}, e.attempt(
      qE,
      m,
      g
    )(S);
  }
  function m(S) {
    return i++, r.push([t.currentConstruct, t.containerState]), d(S);
  }
  function g(S) {
    if (S === null) {
      n && C(), y(0), e.consume(S);
      return;
    }
    return n = n || t.parser.flow(t.now()), e.enter("chunkFlow", {
      contentType: "flow",
      previous: a,
      _tokenizer: n
    }), D(S);
  }
  function D(S) {
    if (S === null) {
      v(e.exit("chunkFlow"), !0), y(0), e.consume(S);
      return;
    }
    return ne(S) ? (e.consume(S), v(e.exit("chunkFlow")), i = 0, t.interrupt = void 0, o) : (e.consume(S), D);
  }
  function v(S, T) {
    let j = t.sliceStream(S);
    if (T && j.push(null), S.previous = a, a && (a.next = S), a = S, n.defineSkip(S.start), n.write(j), t.parser.lazy[S.start.line]) {
      let w = n.events.length;
      for (; w--; )
        if (
          // The token starts before the line ending…
          n.events[w][1].start.offset < u && // …and either is not ended yet…
          (!n.events[w][1].end || // …or ends after it.
          n.events[w][1].end.offset > u)
        )
          return;
      let A = t.events.length, P = A, k, $;
      for (; P--; )
        if (t.events[P][0] === "exit" && t.events[P][1].type === "chunkFlow") {
          if (k) {
            $ = t.events[P][1].end;
            break;
          }
          k = !0;
        }
      for (y(i), w = A; w < t.events.length; )
        t.events[w][1].end = Object.assign({}, $), w++;
      Or(
        t.events,
        P + 1,
        0,
        t.events.slice(A)
      ), t.events.length = w;
    }
  }
  function y(S) {
    let T = r.length;
    for (; T-- > S; ) {
      let j = r[T];
      t.containerState = j[1], j[0].exit.call(t, e);
    }
    r.length = S;
  }
  function C() {
    n.write([null]), a = void 0, n = void 0, t.containerState._closeFlow = void 0;
  }
}
function P7(e, t, r) {
  return Pe(
    e,
    e.attempt(this.parser.constructs.document, t, r),
    "linePrefix",
    this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
  );
}
function O7(e) {
  let t = this, r = e.attempt(
    // Try to parse a blank line.
    Qs,
    i,
    // Try to parse initial flow (essentially, only code).
    e.attempt(
      this.parser.constructs.flowInitial,
      n,
      Pe(
        e,
        e.attempt(
          this.parser.constructs.flow,
          n,
          e.attempt(vR, n)
        ),
        "linePrefix"
      )
    )
  );
  return r;
  function i(a) {
    if (a === null) {
      e.consume(a);
      return;
    }
    return e.enter("lineEndingBlank"), e.consume(a), e.exit("lineEndingBlank"), t.currentConstruct = void 0, r;
  }
  function n(a) {
    if (a === null) {
      e.consume(a);
      return;
    }
    return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), t.currentConstruct = void 0, r;
  }
}
function Ob(e) {
  return {
    tokenize: t,
    resolveAll: Rb(
      e === "text" ? M7 : void 0
    )
  };
  function t(r) {
    let i = this, n = this.parser.constructs[e], a = r.attempt(n, u, o);
    return u;
    function u(h) {
      return c(h) ? a(h) : o(h);
    }
    function o(h) {
      if (h === null) {
        r.consume(h);
        return;
      }
      return r.enter("data"), r.consume(h), l;
    }
    function l(h) {
      return c(h) ? (r.exit("data"), a(h)) : (r.consume(h), l);
    }
    function c(h) {
      if (h === null)
        return !0;
      let p = n[h], d = -1;
      if (p)
        for (; ++d < p.length; ) {
          let m = p[d];
          if (!m.previous || m.previous.call(i, i.previous))
            return !0;
        }
      return !1;
    }
  }
}
function Rb(e) {
  return t;
  function t(r, i) {
    let n = -1, a;
    for (; ++n <= r.length; )
      a === void 0 ? r[n] && r[n][1].type === "data" && (a = n, n++) : (!r[n] || r[n][1].type !== "data") && (n !== a + 2 && (r[a][1].end = r[n -
      1][1].end, r.splice(a + 2, n - a - 2), n = a + 2), a = void 0);
    return e ? e(r, i) : r;
  }
}
function M7(e, t) {
  let r = 0;
  for (; ++r <= e.length; )
    if ((r === e.length || e[r][1].type === "lineEnding") && e[r - 1][1].type === "data") {
      let i = e[r - 1][1], n = t.sliceStream(i), a = n.length, u = -1, o = 0, l;
      for (; a--; ) {
        let c = n[a];
        if (typeof c == "string") {
          for (u = c.length; c.charCodeAt(u - 1) === 32; )
            o++, u--;
          if (u)
            break;
          u = -1;
        } else if (c === -2)
          l = !0, o++;
        else if (c !== -1) {
          a++;
          break;
        }
      }
      if (o) {
        let c = {
          type: r === e.length || l || o < 2 ? "lineSuffix" : "hardBreakTrailing",
          start: {
            line: i.end.line,
            column: i.end.column - o,
            offset: i.end.offset - o,
            _index: i.start._index + a,
            _bufferIndex: a ? u : i.start._bufferIndex + u
          },
          end: Object.assign({}, i.end)
        };
        i.end = Object.assign({}, c.start), i.start.offset === i.end.offset ? Object.assign(i, c) : (e.splice(
          r,
          0,
          ["enter", c, t],
          ["exit", c, t]
        ), r += 2);
      }
      r++;
    }
  return e;
}
function j7(e, t, r) {
  let i = Object.assign(
    r ? Object.assign({}, r) : {
      line: 1,
      column: 1,
      offset: 0
    },
    {
      _index: 0,
      _bufferIndex: -1
    }
  ), n = {}, a = [], u = [], o = [], l = !0, c = {
    consume: T,
    enter: j,
    exit: w,
    attempt: k(A),
    check: k(P),
    interrupt: k(P, {
      interrupt: !0
    })
  }, h = {
    previous: null,
    code: null,
    containerState: {},
    events: [],
    parser: e,
    sliceStream: D,
    sliceSerialize: g,
    now: v,
    defineSkip: y,
    write: m
  }, p = t.tokenize.call(h, c), d;
  return t.resolveAll && a.push(t), h;
  function m(U) {
    return u = tr(u, U), C(), u[u.length - 1] !== null ? [] : ($(t, 0), h.events = Gp(a, h.events, h), h.events);
  }
  s(m, "write");
  function g(U, G) {
    return $7(D(U), G);
  }
  s(g, "sliceSerialize");
  function D(U) {
    return q7(u, U);
  }
  s(D, "sliceStream");
  function v() {
    let { line: U, column: G, offset: R, _index: N, _bufferIndex: z } = i;
    return {
      line: U,
      column: G,
      offset: R,
      _index: N,
      _bufferIndex: z
    };
  }
  s(v, "now");
  function y(U) {
    n[U.line] = U.column, V();
  }
  s(y, "defineSkip");
  function C() {
    let U;
    for (; i._index < u.length; ) {
      let G = u[i._index];
      if (typeof G == "string")
        for (U = i._index, i._bufferIndex < 0 && (i._bufferIndex = 0); i._index === U && i._bufferIndex < G.length; )
          S(G.charCodeAt(i._bufferIndex));
      else
        S(G);
    }
  }
  s(C, "main");
  function S(U) {
    l = void 0, d = U, p = p(U);
  }
  s(S, "go");
  function T(U) {
    ne(U) ? (i.line++, i.column = 1, i.offset += U === -3 ? 2 : 1, V()) : U !== -1 && (i.column++, i.offset++), i._bufferIndex < 0 ? i._index++ :
    (i._bufferIndex++, i._bufferIndex === u[i._index].length && (i._bufferIndex = -1, i._index++)), h.previous = U, l = !0;
  }
  s(T, "consume");
  function j(U, G) {
    let R = G || {};
    return R.type = U, R.start = v(), h.events.push(["enter", R, h]), o.push(R), R;
  }
  s(j, "enter");
  function w(U) {
    let G = o.pop();
    return G.end = v(), h.events.push(["exit", G, h]), G;
  }
  s(w, "exit2");
  function A(U, G) {
    $(U, G.from);
  }
  s(A, "onsuccessfulconstruct");
  function P(U, G) {
    G.restore();
  }
  s(P, "onsuccessfulcheck");
  function k(U, G) {
    return R;
    function R(N, z, Q) {
      let te, I, he, xe;
      return Array.isArray(N) ? Se(N) : "tokenize" in N ? (
        // @ts-expect-error Looks like a construct.
        Se([N])
      ) : L(N);
      function L(Oe) {
        return ee;
        function ee(De) {
          let K = De !== null && Oe[De], le = De !== null && Oe.null, ke = [
            // To do: add more extension tests.
            /* c8 ignore next 2 */
            ...Array.isArray(K) ? K : K ? [K] : [],
            ...Array.isArray(le) ? le : le ? [le] : []
          ];
          return Se(ke)(De);
        }
      }
      function Se(Oe) {
        return te = Oe, I = 0, Oe.length === 0 ? Q : Ie(Oe[I]);
      }
      function Ie(Oe) {
        return ee;
        function ee(De) {
          return xe = M(), he = Oe, Oe.partial || (h.currentConstruct = Oe), Oe.name && h.parser.constructs.disable.null.includes(Oe.name) ?
          at(De) : Oe.tokenize.call(
            // If we do have fields, create an object w/ `context` as its
            // prototype.
            // This allows a “live binding”, which is needed for `interrupt`.
            G ? Object.assign(Object.create(h), G) : h,
            c,
            ue,
            at
          )(De);
        }
      }
      function ue(Oe) {
        return l = !0, U(he, xe), z;
      }
      function at(Oe) {
        return l = !0, xe.restore(), ++I < te.length ? Ie(te[I]) : Q;
      }
    }
  }
  s(k, "constructFactory");
  function $(U, G) {
    U.resolveAll && !a.includes(U) && a.push(U), U.resolve && Or(
      h.events,
      G,
      h.events.length - G,
      U.resolve(h.events.slice(G), h)
    ), U.resolveTo && (h.events = U.resolveTo(h.events, h));
  }
  s($, "addResult");
  function M() {
    let U = v(), G = h.previous, R = h.currentConstruct, N = h.events.length, z = Array.from(o);
    return {
      restore: Q,
      from: N
    };
    function Q() {
      i = U, h.previous = G, h.currentConstruct = R, h.events.length = N, o = z, V();
    }
  }
  s(M, "store");
  function V() {
    i.line in n && i.column < 2 && (i.column = n[i.line], i.offset += n[i.line] - 1);
  }
  s(V, "accountForPotentialSkip");
}
function q7(e, t) {
  let r = t.start._index, i = t.start._bufferIndex, n = t.end._index, a = t.end._bufferIndex, u;
  if (r === n)
    u = [e[r].slice(i, a)];
  else {
    if (u = e.slice(r, n), i > -1) {
      let o = u[0];
      typeof o == "string" ? u[0] = o.slice(i) : u.shift();
    }
    a > 0 && u.push(e[n].slice(0, a));
  }
  return u;
}
function $7(e, t) {
  let r = -1, i = [], n;
  for (; ++r < e.length; ) {
    let a = e[r], u;
    if (typeof a == "string")
      u = a;
    else
      switch (a) {
        case -5: {
          u = "\r";
          break;
        }
        case -4: {
          u = `
`;
          break;
        }
        case -3: {
          u = `\r
`;
          break;
        }
        case -2: {
          u = t ? " " : "	";
          break;
        }
        case -1: {
          if (!t && n)
            continue;
          u = " ";
          break;
        }
        default:
          u = String.fromCharCode(a);
      }
    n = a === -2, i.push(u);
  }
  return i.join("");
}
function K7(e) {
  let r = (
    /** @type {FullNormalizedExtension} */
    Bb([Nb, ...(e || {}).extensions || []])
  ), i = {
    defined: [],
    lazy: {},
    constructs: r,
    content: n(_7),
    document: n(T7),
    flow: n(I7),
    string: n(N7),
    text: n(L7)
  };
  return i;
  function n(a) {
    return u;
    function u(o) {
      return j7(i, a, o);
    }
  }
}
function Q7(e) {
  for (; !Sb(e); )
    ;
  return e;
}
function Z7() {
  let e = 1, t = "", r = !0, i;
  return n;
  function n(a, u, o) {
    let l = [], c, h, p, d, m;
    for (a = t + (typeof a == "string" ? a.toString() : new TextDecoder(u || void 0).decode(a)), p = 0, t = "", r && (a.charCodeAt(0) === 65279 &&
    p++, r = void 0); p < a.length; ) {
      if ($E.lastIndex = p, c = $E.exec(a), d = c && c.index !== void 0 ? c.index : a.length, m = a.charCodeAt(d), !c) {
        t = a.slice(p);
        break;
      }
      if (m === 10 && p === d && i)
        l.push(-3), i = void 0;
      else
        switch (i && (l.push(-5), i = void 0), p < d && (l.push(a.slice(p, d)), e += d - p), m) {
          case 0: {
            l.push(65533), e++;
            break;
          }
          case 9: {
            for (h = Math.ceil(e / 4) * 4, l.push(-2); e++ < h; )
              l.push(-1);
            break;
          }
          case 10: {
            l.push(-4), e = 1;
            break;
          }
          default:
            i = !0, e = 1;
        }
      p = d + 1;
    }
    return o && (i && l.push(-5), t && l.push(t), l.push(null)), l;
  }
}
function tN(e) {
  return e.replace(eN, rN);
}
function rN(e, t, r) {
  if (t)
    return t;
  if (r.charCodeAt(0) === 35) {
    let n = r.charCodeAt(1), a = n === 120 || n === 88;
    return Ib(r.slice(a ? 2 : 1), a ? 16 : 10);
  }
  return Ys(r) || e;
}
function iN(e, t, r) {
  return typeof t != "string" && (r = t, t = void 0), nN(r)(
    Q7(
      K7(r).document().write(Z7()(e, t, !0))
    )
  );
}
function nN(e) {
  let t = {
    transforms: [],
    canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
    enter: {
      autolink: a(or),
      autolinkProtocol: k,
      autolinkEmail: k,
      atxHeading: a(Xe),
      blockQuote: a(ee),
      characterEscape: k,
      characterReference: k,
      codeFenced: a(De),
      codeFencedFenceInfo: u,
      codeFencedFenceMeta: u,
      codeIndented: a(De, u),
      codeText: a(K, u),
      codeTextData: k,
      data: k,
      codeFlowValue: k,
      definition: a(le),
      definitionDestinationString: u,
      definitionLabelString: u,
      definitionTitleString: u,
      emphasis: a(ke),
      hardBreakEscape: a(Re),
      hardBreakTrailing: a(Re),
      htmlFlow: a(Vt, u),
      htmlFlowData: k,
      htmlText: a(Vt, u),
      htmlTextData: k,
      image: a(vr),
      label: u,
      link: a(or),
      listItem: a(fi),
      listItemValue: d,
      listOrdered: a(zi, p),
      listUnordered: a(zi),
      paragraph: a(yn),
      reference: L,
      referenceString: u,
      resourceDestinationString: u,
      resourceTitleString: u,
      setextHeading: a(Xe),
      strong: a(ce),
      thematicBreak: a(E)
    },
    exit: {
      atxHeading: l(),
      atxHeadingSequence: j,
      autolink: l(),
      autolinkEmail: Oe,
      autolinkProtocol: at,
      blockQuote: l(),
      characterEscapeValue: $,
      characterReferenceMarkerHexadecimal: Ie,
      characterReferenceMarkerNumeric: Ie,
      characterReferenceValue: ue,
      codeFenced: l(v),
      codeFencedFence: D,
      codeFencedFenceInfo: m,
      codeFencedFenceMeta: g,
      codeFlowValue: $,
      codeIndented: l(y),
      codeText: l(R),
      codeTextData: $,
      data: $,
      definition: l(),
      definitionDestinationString: T,
      definitionLabelString: C,
      definitionTitleString: S,
      emphasis: l(),
      hardBreakEscape: l(V),
      hardBreakTrailing: l(V),
      htmlFlow: l(U),
      htmlFlowData: $,
      htmlText: l(G),
      htmlTextData: $,
      image: l(z),
      label: te,
      labelText: Q,
      lineEnding: M,
      link: l(N),
      listItem: l(),
      listOrdered: l(),
      listUnordered: l(),
      paragraph: l(),
      referenceString: Se,
      resourceDestinationString: I,
      resourceTitleString: he,
      resource: xe,
      setextHeading: l(P),
      setextHeadingLineSequence: A,
      setextHeadingText: w,
      strong: l(),
      thematicBreak: l()
    }
  };
  Mb(t, (e || {}).mdastExtensions || []);
  let r = {};
  return i;
  function i(x) {
    let _ = {
      type: "root",
      children: []
    }, O = {
      stack: [_],
      tokenStack: [],
      config: t,
      enter: o,
      exit: c,
      buffer: u,
      resume: h,
      data: r
    }, b = [], q = -1;
    for (; ++q < x.length; )
      if (x[q][1].type === "listOrdered" || x[q][1].type === "listUnordered")
        if (x[q][0] === "enter")
          b.push(q);
        else {
          let W = b.pop();
          q = n(x, W, q);
        }
    for (q = -1; ++q < x.length; ) {
      let W = t[x[q][0]];
      Lb.call(W, x[q][1].type) && W[x[q][1].type].call(
        Object.assign(
          {
            sliceSerialize: x[q][2].sliceSerialize
          },
          O
        ),
        x[q][1]
      );
    }
    if (O.tokenStack.length > 0) {
      let W = O.tokenStack[O.tokenStack.length - 1];
      (W[1] || VE).call(O, void 0, W[0]);
    }
    for (_.position = {
      start: Fi(
        x.length > 0 ? x[0][1].start : {
          line: 1,
          column: 1,
          offset: 0
        }
      ),
      end: Fi(
        x.length > 0 ? x[x.length - 2][1].end : {
          line: 1,
          column: 1,
          offset: 0
        }
      )
    }, q = -1; ++q < t.transforms.length; )
      _ = t.transforms[q](_) || _;
    return _;
  }
  function n(x, _, O) {
    let b = _ - 1, q = -1, W = !1, J, X, oe, ye;
    for (; ++b <= O; ) {
      let ae = x[b];
      switch (ae[1].type) {
        case "listUnordered":
        case "listOrdered":
        case "blockQuote": {
          ae[0] === "enter" ? q++ : q--, ye = void 0;
          break;
        }
        case "lineEndingBlank": {
          ae[0] === "enter" && (J && !ye && !q && !oe && (oe = b), ye = void 0);
          break;
        }
        case "linePrefix":
        case "listItemValue":
        case "listItemMarker":
        case "listItemPrefix":
        case "listItemPrefixWhitespace":
          break;
        default:
          ye = void 0;
      }
      if (!q && ae[0] === "enter" && ae[1].type === "listItemPrefix" || q === -1 && ae[0] === "exit" && (ae[1].type === "listUnordered" || ae[1].
      type === "listOrdered")) {
        if (J) {
          let be = b;
          for (X = void 0; be--; ) {
            let ze = x[be];
            if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
              if (ze[0] === "exit")
                continue;
              X && (x[X][1].type = "lineEndingBlank", W = !0), ze[1].type = "lineEnding", X = be;
            } else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].
            type === "blockQuoteMarker" || ze[1].type === "listItemIndent"))
              break;
          }
          oe && (!X || oe < X) && (J._spread = !0), J.end = Object.assign(
            {},
            X ? x[X][1].start : ae[1].end
          ), x.splice(X || b, 0, ["exit", J, ae[2]]), b++, O++;
        }
        if (ae[1].type === "listItemPrefix") {
          let be = {
            type: "listItem",
            _spread: !1,
            start: Object.assign({}, ae[1].start),
            // @ts-expect-error: we’ll add `end` in a second.
            end: void 0
          };
          J = be, x.splice(b, 0, ["enter", be, ae[2]]), b++, O++, oe = void 0, ye = !0;
        }
      }
    }
    return x[_][1]._spread = W, O;
  }
  function a(x, _) {
    return O;
    function O(b) {
      o.call(this, x(b), b), _ && _.call(this, b);
    }
  }
  function u() {
    this.stack.push({
      type: "fragment",
      children: []
    });
  }
  function o(x, _, O) {
    this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([_, O]), x.position = {
      start: Fi(_.start),
      // @ts-expect-error: `end` will be patched later.
      end: void 0
    };
  }
  function l(x) {
    return _;
    function _(O) {
      x && x.call(this, O), c.call(this, O);
    }
  }
  function c(x, _) {
    let O = this.stack.pop(), b = this.tokenStack.pop();
    if (b)
      b[0].type !== x.type && (_ ? _.call(this, x, b[0]) : (b[1] || VE).call(this, x, b[0]));
    else throw new Error(
      "Cannot close `" + x.type + "` (" + rr({
        start: x.start,
        end: x.end
      }) + "): it\u2019s not open"
    );
    O.position.end = Fi(x.end);
  }
  function h() {
    return F7(this.stack.pop());
  }
  function p() {
    this.data.expectingFirstListItemValue = !0;
  }
  function d(x) {
    if (this.data.expectingFirstListItemValue) {
      let _ = this.stack[this.stack.length - 2];
      _.start = Number.parseInt(this.sliceSerialize(x), 10), this.data.expectingFirstListItemValue = void 0;
    }
  }
  function m() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.lang = x;
  }
  function g() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.meta = x;
  }
  function D() {
    this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
  }
  function v() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
  }
  function y() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.value = x.replace(/(\r?\n|\r)$/g, "");
  }
  function C(x) {
    let _ = this.resume(), O = this.stack[this.stack.length - 1];
    O.label = _, O.identifier = Gn(
      this.sliceSerialize(x)
    ).toLowerCase();
  }
  function S() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.title = x;
  }
  function T() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.url = x;
  }
  function j(x) {
    let _ = this.stack[this.stack.length - 1];
    if (!_.depth) {
      let O = this.sliceSerialize(x).length;
      _.depth = O;
    }
  }
  function w() {
    this.data.setextHeadingSlurpLineEnding = !0;
  }
  function A(x) {
    let _ = this.stack[this.stack.length - 1];
    _.depth = this.sliceSerialize(x).codePointAt(0) === 61 ? 1 : 2;
  }
  function P() {
    this.data.setextHeadingSlurpLineEnding = void 0;
  }
  function k(x) {
    let O = this.stack[this.stack.length - 1].children, b = O[O.length - 1];
    (!b || b.type !== "text") && (b = wt(), b.position = {
      start: Fi(x.start),
      // @ts-expect-error: we’ll add `end` later.
      end: void 0
    }, O.push(b)), this.stack.push(b);
  }
  function $(x) {
    let _ = this.stack.pop();
    _.value += this.sliceSerialize(x), _.position.end = Fi(x.end);
  }
  function M(x) {
    let _ = this.stack[this.stack.length - 1];
    if (this.data.atHardBreak) {
      let O = _.children[_.children.length - 1];
      O.position.end = Fi(x.end), this.data.atHardBreak = void 0;
      return;
    }
    !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(_.type) && (k.call(this, x), $.call(this, x));
  }
  function V() {
    this.data.atHardBreak = !0;
  }
  function U() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.value = x;
  }
  function G() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.value = x;
  }
  function R() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.value = x;
  }
  function N() {
    let x = this.stack[this.stack.length - 1];
    if (this.data.inReference) {
      let _ = this.data.referenceType || "shortcut";
      x.type += "Reference", x.referenceType = _, delete x.url, delete x.title;
    } else
      delete x.identifier, delete x.label;
    this.data.referenceType = void 0;
  }
  function z() {
    let x = this.stack[this.stack.length - 1];
    if (this.data.inReference) {
      let _ = this.data.referenceType || "shortcut";
      x.type += "Reference", x.referenceType = _, delete x.url, delete x.title;
    } else
      delete x.identifier, delete x.label;
    this.data.referenceType = void 0;
  }
  function Q(x) {
    let _ = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
    O.label = tN(_), O.identifier = Gn(_).toLowerCase();
  }
  function te() {
    let x = this.stack[this.stack.length - 1], _ = this.resume(), O = this.stack[this.stack.length - 1];
    if (this.data.inReference = !0, O.type === "link") {
      let b = x.children;
      O.children = b;
    } else
      O.alt = _;
  }
  function I() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.url = x;
  }
  function he() {
    let x = this.resume(), _ = this.stack[this.stack.length - 1];
    _.title = x;
  }
  function xe() {
    this.data.inReference = void 0;
  }
  function L() {
    this.data.referenceType = "collapsed";
  }
  function Se(x) {
    let _ = this.resume(), O = this.stack[this.stack.length - 1];
    O.label = _, O.identifier = Gn(
      this.sliceSerialize(x)
    ).toLowerCase(), this.data.referenceType = "full";
  }
  function Ie(x) {
    this.data.characterReferenceType = x.type;
  }
  function ue(x) {
    let _ = this.sliceSerialize(x), O = this.data.characterReferenceType, b;
    O ? (b = Ib(
      _,
      O === "characterReferenceMarkerNumeric" ? 10 : 16
    ), this.data.characterReferenceType = void 0) : b = Ys(_);
    let q = this.stack.pop();
    q.value += b, q.position.end = Fi(x.end);
  }
  function at(x) {
    $.call(this, x);
    let _ = this.stack[this.stack.length - 1];
    _.url = this.sliceSerialize(x);
  }
  function Oe(x) {
    $.call(this, x);
    let _ = this.stack[this.stack.length - 1];
    _.url = "mailto:" + this.sliceSerialize(x);
  }
  function ee() {
    return {
      type: "blockquote",
      children: []
    };
  }
  function De() {
    return {
      type: "code",
      lang: null,
      meta: null,
      value: ""
    };
  }
  function K() {
    return {
      type: "inlineCode",
      value: ""
    };
  }
  function le() {
    return {
      type: "definition",
      identifier: "",
      label: null,
      title: null,
      url: ""
    };
  }
  function ke() {
    return {
      type: "emphasis",
      children: []
    };
  }
  function Xe() {
    return {
      type: "heading",
      // @ts-expect-error `depth` will be set later.
      depth: 0,
      children: []
    };
  }
  function Re() {
    return {
      type: "break"
    };
  }
  function Vt() {
    return {
      type: "html",
      value: ""
    };
  }
  function vr() {
    return {
      type: "image",
      title: null,
      url: "",
      alt: null
    };
  }
  function or() {
    return {
      type: "link",
      title: null,
      url: "",
      children: []
    };
  }
  function zi(x) {
    return {
      type: "list",
      ordered: x.type === "listOrdered",
      start: null,
      spread: x._spread,
      children: []
    };
  }
  function fi(x) {
    return {
      type: "listItem",
      spread: x._spread,
      checked: null,
      children: []
    };
  }
  function yn() {
    return {
      type: "paragraph",
      children: []
    };
  }
  function ce() {
    return {
      type: "strong",
      children: []
    };
  }
  function wt() {
    return {
      type: "text",
      value: ""
    };
  }
  function E() {
    return {
      type: "thematicBreak"
    };
  }
}
function Fi(e) {
  return {
    line: e.line,
    column: e.column,
    offset: e.offset
  };
}
function Mb(e, t) {
  let r = -1;
  for (; ++r < t.length; ) {
    let i = t[r];
    Array.isArray(i) ? Mb(e, i) : sN(e, i);
  }
}
function sN(e, t) {
  let r;
  for (r in t)
    if (Lb.call(t, r))
      switch (r) {
        case "canContainEols": {
          let i = t[r];
          i && e[r].push(...i);
          break;
        }
        case "transforms": {
          let i = t[r];
          i && e[r].push(...i);
          break;
        }
        case "enter":
        case "exit": {
          let i = t[r];
          i && Object.assign(e[r], i);
          break;
        }
      }
}
function VE(e, t) {
  throw e ? new Error(
    "Cannot close `" + e.type + "` (" + rr({
      start: e.start,
      end: e.end
    }) + "): a different token (`" + t.type + "`, " + rr({
      start: t.start,
      end: t.end
    }) + ") is open"
  ) : new Error(
    "Cannot close document, a token (`" + t.type + "`, " + rr({
      start: t.start,
      end: t.end
    }) + ") is still open"
  );
}
function aN(e) {
  let t = this;
  t.parser = r;
  function r(i) {
    return iN(i, {
      ...t.data("settings"),
      ...e,
      // Note: these options are not in the readme.
      // The goal is for them to be set by plugins on `data` instead of being
      // passed by users.
      extensions: t.data("micromarkExtensions") || [],
      mdastExtensions: t.data("fromMarkdownExtensions") || []
    });
  }
  s(r, "parser");
}
function uN(e, t) {
  let r = {
    type: "element",
    tagName: "blockquote",
    properties: {},
    children: e.wrap(e.all(t), !0)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function oN(e, t) {
  let r = { type: "element", tagName: "br", properties: {}, children: [] };
  return e.patch(t, r), [e.applyData(t, r), { type: "text", value: `
` }];
}
function lN(e, t) {
  let r = t.value ? t.value + `
` : "", i = {};
  t.lang && (i.className = ["language-" + t.lang]);
  let n = {
    type: "element",
    tagName: "code",
    properties: i,
    children: [{ type: "text", value: r }]
  };
  return t.meta && (n.data = { meta: t.meta }), e.patch(t, n), n = e.applyData(t, n), n = { type: "element", tagName: "pre", properties: {},
  children: [n] }, e.patch(t, n), n;
}
function cN(e, t) {
  let r = {
    type: "element",
    tagName: "del",
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function hN(e, t) {
  let r = {
    type: "element",
    tagName: "em",
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function pN(e, t) {
  let r = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", i = String(t.identifier).toUpperCase(), n = Xn(
  i.toLowerCase()), a = e.footnoteOrder.indexOf(i), u, o = e.footnoteCounts.get(i);
  o === void 0 ? (o = 0, e.footnoteOrder.push(i), u = e.footnoteOrder.length) : u = a + 1, o += 1, e.footnoteCounts.set(i, o);
  let l = {
    type: "element",
    tagName: "a",
    properties: {
      href: "#" + r + "fn-" + n,
      id: r + "fnref-" + n + (o > 1 ? "-" + o : ""),
      dataFootnoteRef: !0,
      ariaDescribedBy: ["footnote-label"]
    },
    children: [{ type: "text", value: String(u) }]
  };
  e.patch(t, l);
  let c = {
    type: "element",
    tagName: "sup",
    properties: {},
    children: [l]
  };
  return e.patch(t, c), e.applyData(t, c);
}
function fN(e, t) {
  let r = {
    type: "element",
    tagName: "h" + t.depth,
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function dN(e, t) {
  if (e.options.allowDangerousHtml) {
    let r = { type: "raw", value: t.value };
    return e.patch(t, r), e.applyData(t, r);
  }
}
function jb(e, t) {
  let r = t.referenceType, i = "]";
  if (r === "collapsed" ? i += "[]" : r === "full" && (i += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
    return [{ type: "text", value: "![" + t.alt + i }];
  let n = e.all(t), a = n[0];
  a && a.type === "text" ? a.value = "[" + a.value : n.unshift({ type: "text", value: "[" });
  let u = n[n.length - 1];
  return u && u.type === "text" ? u.value += i : n.push({ type: "text", value: i }), n;
}
function mN(e, t) {
  let r = String(t.identifier).toUpperCase(), i = e.definitionById.get(r);
  if (!i)
    return jb(e, t);
  let n = { src: Xn(i.url || ""), alt: t.alt };
  i.title !== null && i.title !== void 0 && (n.title = i.title);
  let a = { type: "element", tagName: "img", properties: n, children: [] };
  return e.patch(t, a), e.applyData(t, a);
}
function gN(e, t) {
  let r = { src: Xn(t.url) };
  t.alt !== null && t.alt !== void 0 && (r.alt = t.alt), t.title !== null && t.title !== void 0 && (r.title = t.title);
  let i = { type: "element", tagName: "img", properties: r, children: [] };
  return e.patch(t, i), e.applyData(t, i);
}
function DN(e, t) {
  let r = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
  e.patch(t, r);
  let i = {
    type: "element",
    tagName: "code",
    properties: {},
    children: [r]
  };
  return e.patch(t, i), e.applyData(t, i);
}
function yN(e, t) {
  let r = String(t.identifier).toUpperCase(), i = e.definitionById.get(r);
  if (!i)
    return jb(e, t);
  let n = { href: Xn(i.url || "") };
  i.title !== null && i.title !== void 0 && (n.title = i.title);
  let a = {
    type: "element",
    tagName: "a",
    properties: n,
    children: e.all(t)
  };
  return e.patch(t, a), e.applyData(t, a);
}
function xN(e, t) {
  let r = { href: Xn(t.url) };
  t.title !== null && t.title !== void 0 && (r.title = t.title);
  let i = {
    type: "element",
    tagName: "a",
    properties: r,
    children: e.all(t)
  };
  return e.patch(t, i), e.applyData(t, i);
}
function EN(e, t, r) {
  let i = e.all(t), n = r ? bN(r) : qb(t), a = {}, u = [];
  if (typeof t.checked == "boolean") {
    let h = i[0], p;
    h && h.type === "element" && h.tagName === "p" ? p = h : (p = { type: "element", tagName: "p", properties: {}, children: [] }, i.unshift(
    p)), p.children.length > 0 && p.children.unshift({ type: "text", value: " " }), p.children.unshift({
      type: "element",
      tagName: "input",
      properties: { type: "checkbox", checked: t.checked, disabled: !0 },
      children: []
    }), a.className = ["task-list-item"];
  }
  let o = -1;
  for (; ++o < i.length; ) {
    let h = i[o];
    (n || o !== 0 || h.type !== "element" || h.tagName !== "p") && u.push({ type: "text", value: `
` }), h.type === "element" && h.tagName === "p" && !n ? u.push(...h.children) : u.push(h);
  }
  let l = i[i.length - 1];
  l && (n || l.type !== "element" || l.tagName !== "p") && u.push({ type: "text", value: `
` });
  let c = { type: "element", tagName: "li", properties: a, children: u };
  return e.patch(t, c), e.applyData(t, c);
}
function bN(e) {
  let t = !1;
  if (e.type === "list") {
    t = e.spread || !1;
    let r = e.children, i = -1;
    for (; !t && ++i < r.length; )
      t = qb(r[i]);
  }
  return t;
}
function qb(e) {
  let t = e.spread;
  return t ?? e.children.length > 1;
}
function vN(e, t) {
  let r = {}, i = e.all(t), n = -1;
  for (typeof t.start == "number" && t.start !== 1 && (r.start = t.start); ++n < i.length; ) {
    let u = i[n];
    if (u.type === "element" && u.tagName === "li" && u.properties && Array.isArray(u.properties.className) && u.properties.className.includes(
    "task-list-item")) {
      r.className = ["contains-task-list"];
      break;
    }
  }
  let a = {
    type: "element",
    tagName: t.ordered ? "ol" : "ul",
    properties: r,
    children: e.wrap(i, !0)
  };
  return e.patch(t, a), e.applyData(t, a);
}
function CN(e, t) {
  let r = {
    type: "element",
    tagName: "p",
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function wN(e, t) {
  let r = { type: "root", children: e.wrap(e.all(t)) };
  return e.patch(t, r), e.applyData(t, r);
}
function AN(e, t) {
  let r = {
    type: "element",
    tagName: "strong",
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function FN(e, t) {
  let r = e.all(t), i = r.shift(), n = [];
  if (i) {
    let u = {
      type: "element",
      tagName: "thead",
      properties: {},
      children: e.wrap([i], !0)
    };
    e.patch(t.children[0], u), n.push(u);
  }
  if (r.length > 0) {
    let u = {
      type: "element",
      tagName: "tbody",
      properties: {},
      children: e.wrap(r, !0)
    }, o = up(t.children[1]), l = ap(t.children[t.children.length - 1]);
    o && l && (u.position = { start: o, end: l }), n.push(u);
  }
  let a = {
    type: "element",
    tagName: "table",
    properties: {},
    children: e.wrap(n, !0)
  };
  return e.patch(t, a), e.applyData(t, a);
}
function SN(e, t, r) {
  let i = r ? r.children : void 0, a = (i ? i.indexOf(t) : 1) === 0 ? "th" : "td", u = r && r.type === "table" ? r.align : void 0, o = u ? u.
  length : t.children.length, l = -1, c = [];
  for (; ++l < o; ) {
    let p = t.children[l], d = {}, m = u ? u[l] : void 0;
    m && (d.align = m);
    let g = { type: "element", tagName: a, properties: d, children: [] };
    p && (g.children = e.all(p), e.patch(p, g), g = e.applyData(p, g)), c.push(g);
  }
  let h = {
    type: "element",
    tagName: "tr",
    properties: {},
    children: e.wrap(c, !0)
  };
  return e.patch(t, h), e.applyData(t, h);
}
function _N(e, t) {
  let r = {
    type: "element",
    tagName: "td",
    // Assume body cell.
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, r), e.applyData(t, r);
}
function kN(e) {
  let t = String(e), r = /\r?\n|\r/g, i = r.exec(t), n = 0, a = [];
  for (; i; )
    a.push(
      HE(t.slice(n, i.index), n > 0, !0),
      i[0]
    ), n = i.index + i[0].length, i = r.exec(t);
  return a.push(HE(t.slice(n), n > 0, !1)), a.join("");
}
function HE(e, t, r) {
  let i = 0, n = e.length;
  if (t) {
    let a = e.codePointAt(i);
    for (; a === UE || a === zE; )
      i++, a = e.codePointAt(i);
  }
  if (r) {
    let a = e.codePointAt(n - 1);
    for (; a === UE || a === zE; )
      n--, a = e.codePointAt(n - 1);
  }
  return n > i ? e.slice(i, n) : "";
}
function TN(e, t) {
  let r = { type: "text", value: kN(String(t.value)) };
  return e.patch(t, r), e.applyData(t, r);
}
function BN(e, t) {
  let r = {
    type: "element",
    tagName: "hr",
    properties: {},
    children: []
  };
  return e.patch(t, r), e.applyData(t, r);
}
function $u() {
}
function LN(e, t) {
  let r = [{ type: "text", value: "\u21A9" }];
  return t > 1 && r.push({
    type: "element",
    tagName: "sup",
    properties: {},
    children: [{ type: "text", value: String(t) }]
  }), r;
}
function MN(e, t) {
  return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
}
function jN(e) {
  let t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = e.options.footnoteBackContent || LN, i = e.
  options.footnoteBackLabel || MN, n = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", u = e.options.footnoteLabelProperties ||
  {
    className: ["sr-only"]
  }, o = [], l = -1;
  for (; ++l < e.footnoteOrder.length; ) {
    let c = e.footnoteById.get(e.footnoteOrder[l]);
    if (!c)
      continue;
    let h = e.all(c), p = String(c.identifier).toUpperCase(), d = Xn(p.toLowerCase()), m = 0, g = [], D = e.footnoteCounts.get(p);
    for (; D !== void 0 && ++m <= D; ) {
      g.length > 0 && g.push({ type: "text", value: " " });
      let C = typeof r == "string" ? r : r(l, m);
      typeof C == "string" && (C = { type: "text", value: C }), g.push({
        type: "element",
        tagName: "a",
        properties: {
          href: "#" + t + "fnref-" + d + (m > 1 ? "-" + m : ""),
          dataFootnoteBackref: "",
          ariaLabel: typeof i == "string" ? i : i(l, m),
          className: ["data-footnote-backref"]
        },
        children: Array.isArray(C) ? C : [C]
      });
    }
    let v = h[h.length - 1];
    if (v && v.type === "element" && v.tagName === "p") {
      let C = v.children[v.children.length - 1];
      C && C.type === "text" ? C.value += " " : v.children.push({ type: "text", value: " " }), v.children.push(...g);
    } else
      h.push(...g);
    let y = {
      type: "element",
      tagName: "li",
      properties: { id: t + "fn-" + d },
      children: e.wrap(h, !0)
    };
    e.patch(c, y), o.push(y);
  }
  if (o.length !== 0)
    return {
      type: "element",
      tagName: "section",
      properties: { dataFootnotes: !0, className: ["footnotes"] },
      children: [
        {
          type: "element",
          tagName: a,
          properties: {
            ...Yu(u),
            id: "footnote-label"
          },
          children: [{ type: "text", value: n }]
        },
        { type: "text", value: `
` },
        {
          type: "element",
          tagName: "ol",
          properties: {},
          children: e.wrap(o, !0)
        },
        { type: "text", value: `
` }
      ]
    };
}
function qN(e) {
  let t = [], r = -1;
  for (; ++r < e.length; )
    t[r] = zb(e[r]);
  return Zu(i);
  function i(...n) {
    let a = -1;
    for (; ++a < t.length; )
      if (t[a].apply(this, n))
        return !0;
    return !1;
  }
}
function $N(e) {
  let t = (
    /** @type {Record<string, unknown>} */
    e
  );
  return Zu(r);
  function r(i) {
    let n = (
      /** @type {Record<string, unknown>} */
      /** @type {unknown} */
      i
    ), a;
    for (a in e)
      if (n[a] !== t[a])
        return !1;
    return !0;
  }
}
function VN(e) {
  return Zu(t);
  function t(r) {
    return r && r.type === e;
  }
}
function Zu(e) {
  return t;
  function t(r, i, n) {
    return !!(zN(r) && e.call(
      this,
      r,
      typeof i == "number" ? i : void 0,
      n || void 0
    ));
  }
}
function UN() {
  return !0;
}
function zN(e) {
  return e !== null && typeof e == "object" && "type" in e;
}
function HN(e) {
  return "\x1B[33m" + e + "\x1B[39m";
}
function GN(e, t, r, i) {
  let n;
  typeof t == "function" && typeof r != "function" ? (i = r, r = t) : n = t;
  let a = zb(n), u = i ? -1 : 1;
  o(e, void 0, [])();
  function o(l, c, h) {
    let p = (
      /** @type {Record<string, unknown>} */
      l && typeof l == "object" ? l : {}
    );
    if (typeof p.type == "string") {
      let m = (
        // `hast`
        typeof p.tagName == "string" ? p.tagName : (
          // `xast`
          typeof p.name == "string" ? p.name : void 0
        )
      );
      Object.defineProperty(d, "name", {
        value: "node (" + HN(l.type + (m ? "<" + m + ">" : "")) + ")"
      });
    }
    return d;
    function d() {
      let m = Hb, g, D, v;
      if ((!t || a(l, c, h[h.length - 1] || void 0)) && (m = XN(r(l, h)), m[0] === XE))
        return m;
      if ("children" in l && l.children) {
        let y = (
          /** @type {UnistParent} */
          l
        );
        if (y.children && m[0] !== JN)
          for (D = (i ? y.children.length : -1) + u, v = h.concat(y); D > -1 && D < y.children.length; ) {
            let C = y.children[D];
            if (g = o(C, D, v)(), g[0] === XE)
              return g;
            D = typeof g[1] == "number" ? g[1] : D + u;
          }
      }
      return m;
    }
  }
  s(o, "factory");
}
function XN(e) {
  return Array.isArray(e) ? e : typeof e == "number" ? [WN, e] : e == null ? Hb : [e];
}
function ef(e, t, r, i) {
  let n, a, u;
  typeof t == "function" && typeof r != "function" ? (a = void 0, u = t, n = r) : (a = t, u = r, n = i), GN(e, a, o, n);
  function o(l, c) {
    let h = c[c.length - 1], p = h ? h.children.indexOf(l) : void 0;
    return u(l, p, h);
  }
  s(o, "overload");
}
function KN(e, t) {
  let r = t || YN, i = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), u = { ...PN, ...r.handlers },
  o = {
    all: c,
    applyData: ZN,
    definitionById: i,
    footnoteById: n,
    footnoteCounts: a,
    footnoteOrder: [],
    handlers: u,
    one: l,
    options: r,
    patch: QN,
    wrap: tL
  };
  return ef(e, function(h) {
    if (h.type === "definition" || h.type === "footnoteDefinition") {
      let p = h.type === "definition" ? i : n, d = String(h.identifier).toUpperCase();
      p.has(d) || p.set(d, h);
    }
  }), o;
  function l(h, p) {
    let d = h.type, m = o.handlers[d];
    if (Hp.call(o.handlers, d) && m)
      return m(o, h, p);
    if (o.options.passThrough && o.options.passThrough.includes(d)) {
      if ("children" in h) {
        let { children: D, ...v } = h, y = Yu(v);
        return y.children = o.all(h), y;
      }
      return Yu(h);
    }
    return (o.options.unknownHandler || eL)(o, h, p);
  }
  s(l, "one2");
  function c(h) {
    let p = [];
    if ("children" in h) {
      let d = h.children, m = -1;
      for (; ++m < d.length; ) {
        let g = o.one(d[m], h);
        if (g) {
          if (m && d[m - 1].type === "break" && (!Array.isArray(g) && g.type === "text" && (g.value = YE(g.value)), !Array.isArray(g) && g.type ===
          "element")) {
            let D = g.children[0];
            D && D.type === "text" && (D.value = YE(D.value));
          }
          Array.isArray(g) ? p.push(...g) : p.push(g);
        }
      }
    }
    return p;
  }
  s(c, "all2");
}
function QN(e, t) {
  e.position && (t.position = op(e));
}
function ZN(e, t) {
  let r = t;
  if (e && e.data) {
    let i = e.data.hName, n = e.data.hChildren, a = e.data.hProperties;
    if (typeof i == "string")
      if (r.type === "element")
        r.tagName = i;
      else {
        let u = "children" in r ? r.children : [r];
        r = { type: "element", tagName: i, properties: {}, children: u };
      }
    r.type === "element" && a && Object.assign(r.properties, Yu(a)), "children" in r && r.children && n !== null && n !== void 0 && (r.children =
    n);
  }
  return r;
}
function eL(e, t) {
  let r = t.data || {}, i = "value" in t && !(Hp.call(r, "hProperties") || Hp.call(r, "hChildren")) ? { type: "text", value: t.value } : {
    type: "element",
    tagName: "div",
    properties: {},
    children: e.all(t)
  };
  return e.patch(t, i), e.applyData(t, i);
}
function tL(e, t) {
  let r = [], i = -1;
  for (t && r.push({ type: "text", value: `
` }); ++i < e.length; )
    i && r.push({ type: "text", value: `
` }), r.push(e[i]);
  return t && e.length > 0 && r.push({ type: "text", value: `
` }), r;
}
function YE(e) {
  let t = 0, r = e.charCodeAt(t);
  for (; r === 9 || r === 32; )
    t++, r = e.charCodeAt(t);
  return e.slice(t);
}
function KE(e, t) {
  let r = KN(e, t), i = r.one(e, void 0), n = jN(r), a = Array.isArray(i) ? { type: "root", children: i } : i || { type: "root", children: [] };
  return n && ("children" in a, a.children.push({ type: "text", value: `
` }, n)), a;
}
function rL(e, t) {
  return e && "run" in e ? async function(r, i) {
    let n = (
      /** @type {HastRoot} */
      KE(r, t)
    );
    await e.run(n, i);
  } : function(r) {
    return (
      /** @type {HastRoot} */
      KE(r, t || e)
    );
  };
}
function QE(e) {
  if (e)
    throw e;
}
function Wp(e) {
  if (typeof e != "object" || e === null)
    return !1;
  let t = Object.getPrototypeOf(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function iL() {
  let e = [], t = { run: r, use: i };
  return t;
  function r(...n) {
    let a = -1, u = n.pop();
    if (typeof u != "function")
      throw new TypeError("Expected function as last argument, not " + u);
    o(null, ...n);
    function o(l, ...c) {
      let h = e[++a], p = -1;
      if (l) {
        u(l);
        return;
      }
      for (; ++p < n.length; )
        (c[p] === null || c[p] === void 0) && (c[p] = n[p]);
      n = c, h ? nL(h, o)(...c) : u(null, ...c);
    }
    s(o, "next");
  }
  function i(n) {
    if (typeof n != "function")
      throw new TypeError(
        "Expected `middelware` to be a function, not " + n
      );
    return e.push(n), t;
  }
}
function nL(e, t) {
  let r;
  return i;
  function i(...u) {
    let o = e.length > u.length, l;
    o && u.push(n);
    try {
      l = e.apply(this, u);
    } catch (c) {
      let h = (
        /** @type {Error} */
        c
      );
      if (o && r)
        throw h;
      return n(h);
    }
    o || (l instanceof Promise ? l.then(a, n) : l instanceof Error ? n(l) : a(l));
  }
  function n(u, ...o) {
    r || (r = !0, t(u, ...o));
  }
  function a(u) {
    n(null, u);
  }
}
function Rp(e, t) {
  if (typeof t != "function")
    throw new TypeError("Cannot `" + e + "` without `parser`");
}
function Np(e, t) {
  if (typeof t != "function")
    throw new TypeError("Cannot `" + e + "` without `compiler`");
}
function Lp(e, t) {
  if (t)
    throw new Error(
      "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
    );
}
function ZE(e) {
  if (!Wp(e) || typeof e.type != "string")
    throw new TypeError("Expected node, got `" + e + "`");
}
function eb(e, t, r) {
  if (!r)
    throw new Error(
      "`" + e + "` finished async. Use `" + t + "` instead"
    );
}
function Uu(e) {
  return oL(e) ? e : new mb(e);
}
function oL(e) {
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
}
function lL(e) {
  return typeof e == "string" || cL(e);
}
function cL(e) {
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
}
function tb(e) {
  return e !== null && typeof e == "object" && "type" in e && typeof e.type == "string";
}
function Ks(e, { enter: t, leave: r }) {
  return new pL(t, r).visit(e, null);
}
function Jb(e, t) {
  if (e.type === "MemberExpression")
    return !e.computed && Jb(e.object, e);
  if (e.type === "Identifier") {
    if (!t)
      return !0;
    switch (t.type) {
      case "MemberExpression":
        return t.computed || e === t.object;
      case "MethodDefinition":
        return t.computed;
      case "PropertyDefinition":
        return t.computed || e === t.value;
      case "Property":
        return t.computed || e === t.value;
      case "ExportSpecifier":
      case "ImportSpecifier":
        return e === t.local;
      case "LabeledStatement":
      case "BreakStatement":
      case "ContinueStatement":
        return !1;
      default:
        return !0;
    }
  }
  return !1;
}
function Gb(e) {
  let t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Map(), i = new Un(null, !1), n = [], a = i;
  Ks(e, {
    enter(u, o) {
      switch (u.type) {
        case "Identifier":
          o && Jb(u, o) && n.push([a, u]);
          break;
        case "ImportDeclaration":
          u.specifiers.forEach((l) => {
            a.declarations.set(l.local.name, l);
          });
          break;
        case "FunctionExpression":
        case "FunctionDeclaration":
        case "ArrowFunctionExpression":
          u.type === "FunctionDeclaration" ? (u.id && a.declarations.set(u.id.name, u), t.set(u, a = new Un(a, !1))) : (t.set(u, a = new Un(
          a, !1)), u.type === "FunctionExpression" && u.id && a.declarations.set(u.id.name, u)), u.params.forEach((l) => {
            Jp(l).forEach((c) => {
              a.declarations.set(c, u);
            });
          });
          break;
        case "ForStatement":
        case "ForInStatement":
        case "ForOfStatement":
          t.set(u, a = new Un(a, !0));
          break;
        case "BlockStatement":
          t.set(u, a = new Un(a, !0));
          break;
        case "ClassDeclaration":
        case "VariableDeclaration":
          a.add_declaration(u);
          break;
        case "CatchClause":
          t.set(u, a = new Un(a, !0)), u.param && Jp(u.param).forEach((l) => {
            u.param && a.declarations.set(l, u.param);
          });
          break;
      }
    },
    leave(u) {
      t.has(u) && a !== null && a.parent && (a = a.parent);
    }
  });
  for (let u = n.length - 1; u >= 0; --u) {
    let [o, l] = n[u];
    o.references.has(l.name) || Xb(o, l.name), o.find_owner(l.name) || r.set(l.name, l);
  }
  return { map: t, scope: i, globals: r };
}
function Xb(e, t) {
  e.references.add(t), e.parent && Xb(e.parent, t);
}
function Jp(e) {
  return Wn(e).map((t) => t.name);
}
function Wn(e, t = []) {
  switch (e.type) {
    case "Identifier":
      t.push(e);
      break;
    case "MemberExpression":
      let r = e;
      for (; r.type === "MemberExpression"; )
        r = /** @type {any} */
        r.object;
      t.push(
        /** @type {any} */
        r
      );
      break;
    case "ObjectPattern":
      let i = /* @__PURE__ */ s((a) => {
        a.type === "RestElement" ? Wn(a.argument, t) : Wn(a.value, t);
      }, "handle_prop");
      e.properties.forEach(i);
      break;
    case "ArrayPattern":
      let n = /* @__PURE__ */ s((a) => {
        a && Wn(a, t);
      }, "handle_element");
      e.elements.forEach((a) => {
        a && n(a);
      });
      break;
    case "RestElement":
      Wn(e.argument, t);
      break;
    case "AssignmentPattern":
      Wn(e.left, t);
      break;
  }
  return t;
}
function Si(e, t) {
  let r = ["start", "end", "loc", "range", "comments"], i = -1;
  for (; ++i < r.length; ) {
    let n = r[i];
    n in e && (t[n] = e[n]);
  }
}
function fL(e) {
  return e.type === "FunctionDeclaration" ? { ...e, type: "FunctionExpression" } : (e.type, { ...e, type: "ClassExpression" });
}
function dL(e) {
  return e.type === "FunctionDeclaration" || e.type === "ClassDeclaration" || e.type === "VariableDeclaration";
}
function tf(e, t) {
  let r = -1, i = [], n = [], a;
  for (; ++r < e.length; ) {
    let u = e[r];
    u.type === "ImportNamespaceSpecifier" ? a = u : n.push(u);
  }
  if (a) {
    let u = {
      type: "VariableDeclarator",
      id: a.local,
      init: t
    };
    Si(a, u), i.push(u);
  }
  return i.push({
    type: "VariableDeclarator",
    id: {
      type: "ObjectPattern",
      properties: n.map(function(u) {
        let o = u.type === "ImportSpecifier" ? u.imported : u.type === "ExportSpecifier" ? u.exported : { type: "Identifier", name: "default" },
        l = u.local;
        u.type === "ExportSpecifier" && (l = o, o = u.local);
        let c = {
          type: "Property",
          kind: "init",
          shorthand: o.name === l.name,
          method: !1,
          computed: !1,
          key: o,
          value: l
        };
        return Si(u, c), c;
      })
    },
    init: a ? { type: "Identifier", name: a.local.name } : t
  }), i;
}
function _i(e) {
  let t = -1, r;
  for (; ++t < e.length; ) {
    let i = e[t], n = typeof i == "string" && fr(i) ? { type: "Identifier", name: i } : { type: "Literal", value: i };
    r = r ? {
      type: "MemberExpression",
      object: r,
      property: n,
      computed: n.type === "Literal",
      optional: !1
    } : n;
  }
  return r.type, r;
}
function rb(e) {
  let t = -1, r;
  for (; ++t < e.length; ) {
    let i = e[t];
    typeof i == "string" && fr(i, { jsx: !0 }), "" + i;
    let n = { type: "JSXIdentifier", name: i };
    r = r ? { type: "JSXMemberExpression", object: r, property: n } : n;
  }
  return r;
}
function mL(e) {
  let t = e.baseUrl || void 0, r = typeof t == "object" ? t.href : t, i = e.outputFormat || "program", n = e.pragma === void 0 ? "React.crea\
teElement" : e.pragma, a = e.pragmaFrag === void 0 ? "React.Fragment" : e.pragmaFrag, u = e.pragmaImportSource || "react", o = e.jsxImportSource ||
  "react", l = e.jsxRuntime || "automatic";
  return function(h, p) {
    let d = [], m = [], g = [], D = 0, v, y, C;
    if (l && g.push("@jsxRuntime " + l), l === "automatic" && o && g.push("@jsxImportSource " + o), l === "classic" && n && g.push("@jsx " +
    n), l === "classic" && a && g.push("@jsxFrag " + a), h.comments || (h.comments = []), g.length > 0 && h.comments.unshift({
      type: "Block",
      value: g.join(" "),
      data: { _mdxIsPragmaComment: !0 }
    }), l === "classic" && u) {
      if (!n)
        throw new Error(
          "Missing `pragma` in classic runtime with `pragmaImportSource`"
        );
      w({
        type: "ImportDeclaration",
        specifiers: [
          {
            type: "ImportDefaultSpecifier",
            local: { type: "Identifier", name: n.split(".")[0] }
          }
        ],
        source: { type: "Literal", value: u }
      });
    }
    for (C of h.body)
      if (C.type === "ExportDefaultDeclaration")
        v && p.fail(
          "Unexpected duplicate layout, expected a single layout (previous: " + rr(ti(v)) + ")",
          {
            ancestors: [h, C],
            place: ti(C),
            ruleId: "duplicate-layout",
            source: "recma-document"
          }
        ), v = C, m.push({
          type: "VariableDeclaration",
          kind: "const",
          declarations: [
            {
              type: "VariableDeclarator",
              id: { type: "Identifier", name: "MDXLayout" },
              init: dL(C.declaration) ? fL(C.declaration) : C.declaration
            }
          ]
        });
      else if (C.type === "ExportNamedDeclaration" && C.source) {
        let A = (
          /** @type {SimpleLiteral} */
          C.source
        );
        C.specifiers = C.specifiers.filter(function(P) {
          if (P.exported.name === "default") {
            v && p.fail(
              "Unexpected duplicate layout, expected a single layout (previous: " + rr(ti(v)) + ")",
              {
                ancestors: [h, C, P],
                place: ti(C),
                ruleId: "duplicate-layout",
                source: "recma-document"
              }
            ), v = P;
            let k = [];
            if (P.local.name === "default")
              k.push({
                type: "ImportDefaultSpecifier",
                local: { type: "Identifier", name: "MDXLayout" }
              });
            else {
              let V = {
                type: "ImportSpecifier",
                imported: P.local,
                local: { type: "Identifier", name: "MDXLayout" }
              };
              Si(P.local, V), k.push(V);
            }
            let $ = { type: "Literal", value: A.value };
            Si(A, $);
            let M = {
              type: "ImportDeclaration",
              specifiers: k,
              source: $
            };
            return Si(P, M), w(M), !1;
          }
          return !0;
        }), C.specifiers.length > 0 && j(C);
      } else C.type === "ExportNamedDeclaration" || C.type === "ExportAllDeclaration" ? j(C) : C.type === "ImportDeclaration" ? w(C) : C.type ===
      "ExpressionStatement" && (C.expression.type === "JSXElement" || // @ts-expect-error: `estree-jsx` does not register `JSXFragment` as an expression.
      C.expression.type === "JSXFragment") ? (y = !0, m.push(
        ...c(C.expression, i, !!v)
      )) : m.push(C);
    y || m.push(
      ...c(void 0, i, !!v)
    ), d.push(["MDXContent", "default"]), i === "function-body" && m.push({
      type: "ReturnStatement",
      argument: {
        type: "ObjectExpression",
        properties: [
          ...Array.from({ length: D }).map(
            /**
             * @param {undefined} _
             *   Nothing.
             * @param {number} index
             *   Index.
             * @returns {SpreadElement}
             *   Node.
             */
            function(A, P) {
              return {
                type: "SpreadElement",
                argument: {
                  type: "Identifier",
                  name: "_exportAll" + (P + 1)
                }
              };
            }
          ),
          ...d.map(function(A) {
            return {
              type: "Property",
              kind: "init",
              method: !1,
              computed: !1,
              shorthand: typeof A == "string",
              key: {
                type: "Identifier",
                name: typeof A == "string" ? A : A[1]
              },
              value: {
                type: "Identifier",
                name: typeof A == "string" ? A : A[0]
              }
            };
          })
        ]
      }
    }), h.body = m;
    let S = !1, T = !1;
    (r || i === "function-body") && Ks(h, {
      enter(A) {
        if ((A.type === "ExportAllDeclaration" || A.type === "ExportNamedDeclaration" || A.type === "ImportDeclaration") && A.source) {
          let P = A.source.value;
          try {
            new URL(P);
          } catch {
            (P.startsWith("/") || P.startsWith("./") || P.startsWith("../")) && (P = new URL(P, r).href);
          }
          let k = { type: "Literal", value: P };
          Si(A.source, k), A.source = k;
          return;
        }
        if (A.type === "ImportExpression") {
          T = !0;
          let P = {
            type: "CallExpression",
            callee: { type: "Identifier", name: "_resolveDynamicMdxSpecifier" },
            arguments: [A.source],
            optional: !1
          };
          A.source = P;
          return;
        }
        if (A.type === "MemberExpression" && "object" in A && A.object.type === "MetaProperty" && A.property.type === "Identifier" && A.object.
        meta.name === "import" && A.object.property.name === "meta" && A.property.name === "url") {
          S = !0;
          let P = { type: "Identifier", name: "_importMetaUrl" };
          Si(A, P), this.replace(P);
        }
      }
    }), T && (r || (S = !0), h.body.push(
      gL(
        r ? { type: "Literal", value: r } : { type: "Identifier", name: "_importMetaUrl" }
      )
    )), S && h.body.unshift(...DL());
    function j(A) {
      if (A.type === "ExportNamedDeclaration") {
        A.declaration && d.push(
          ...Gb(A.declaration).scope.declarations.keys()
        );
        for (C of A.specifiers)
          d.push(C.exported.name);
      }
      w(A);
    }
    s(j, "handleExport");
    function w(A) {
      let P, k;
      if (i === "function-body")
        if (
          // Always have a source:
          A.type === "ImportDeclaration" || A.type === "ExportAllDeclaration" || // Source optional:
          A.type === "ExportNamedDeclaration" && A.source
        ) {
          A.source;
          let $ = { type: "ImportExpression", source: A.source };
          Si(A, $), k = { type: "AwaitExpression", argument: $ }, (A.type === "ImportDeclaration" || A.type === "ExportNamedDeclaration") &&
          A.specifiers.length === 0 ? P = { type: "ExpressionStatement", expression: k } : P = {
            type: "VariableDeclaration",
            kind: "const",
            declarations: A.type === "ExportAllDeclaration" ? [
              {
                type: "VariableDeclarator",
                id: {
                  type: "Identifier",
                  name: "_exportAll" + ++D
                },
                init: k
              }
            ] : tf(A.specifiers, k)
          };
        } else if (A.declaration)
          P = A.declaration;
        else {
          let $ = A.specifiers.filter(function(M) {
            return M.local.name !== M.exported.name;
          }).map(function(M) {
            return {
              type: "VariableDeclarator",
              id: M.exported,
              init: M.local
            };
          });
          $.length > 0 && (P = {
            type: "VariableDeclaration",
            kind: "const",
            declarations: $
          });
        }
      else
        P = A;
      P && m.push(P);
    }
    s(w, "handleEsm");
  };
  function c(h, p, d) {
    let g = {
      type: "JSXElement",
      openingElement: {
        type: "JSXOpeningElement",
        name: { type: "JSXIdentifier", name: "MDXLayout" },
        attributes: [
          {
            type: "JSXSpreadAttribute",
            argument: { type: "Identifier", name: "props" }
          }
        ],
        selfClosing: !1
      },
      closingElement: {
        type: "JSXClosingElement",
        name: { type: "JSXIdentifier", name: "MDXLayout" }
      },
      children: [
        {
          type: "JSXElement",
          openingElement: {
            type: "JSXOpeningElement",
            name: { type: "JSXIdentifier", name: "_createMdxContent" },
            attributes: [
              {
                type: "JSXSpreadAttribute",
                argument: { type: "Identifier", name: "props" }
              }
            ],
            selfClosing: !0
          },
          closingElement: null,
          children: []
        }
      ]
    };
    d || (g = {
      type: "ConditionalExpression",
      test: { type: "Identifier", name: "MDXLayout" },
      consequent: g,
      alternate: {
        type: "CallExpression",
        callee: { type: "Identifier", name: "_createMdxContent" },
        arguments: [{ type: "Identifier", name: "props" }],
        optional: !1
      }
    });
    let D = (
      // Cast because TS otherwise does not think `JSXFragment`s are expressions.
      /** @type {Readonly<Expression> | Readonly<JSXFragment>} */
      h || { type: "Identifier", name: "undefined" }
    );
    D.type === "JSXFragment" && D.children.length === 1 && D.children[0].type === "JSXElement" && (D = D.children[0]);
    let v = !1;
    Ks(D, {
      enter(C) {
        if (C.type === "ArrowFunctionExpression" || C.type === "FunctionDeclaration" || C.type === "FunctionExpression")
          return this.skip();
        (C.type === "AwaitExpression" || /* c8 ignore next 2 -- can only occur in a function (which then can
        * only be async, so skipped it) */
        C.type === "ForOfStatement" && C.await) && (v = !0);
      }
    });
    let y = {
      type: "FunctionDeclaration",
      id: { type: "Identifier", name: "MDXContent" },
      params: [
        {
          type: "AssignmentPattern",
          left: { type: "Identifier", name: "props" },
          right: { type: "ObjectExpression", properties: [] }
        }
      ],
      body: {
        type: "BlockStatement",
        body: [{ type: "ReturnStatement", argument: g }]
      }
    };
    return [
      {
        type: "FunctionDeclaration",
        async: v,
        id: { type: "Identifier", name: "_createMdxContent" },
        params: [{ type: "Identifier", name: "props" }],
        body: {
          type: "BlockStatement",
          body: [
            {
              type: "ReturnStatement",
              // Cast because TS doesn’t think `JSXFragment` is an expression.
              // eslint-disable-next-line object-shorthand
              argument: (
                /** @type {Expression} */
                D
              )
            }
          ]
        }
      },
      p === "program" ? { type: "ExportDefaultDeclaration", declaration: y } : y
    ];
  }
}
function gL(e) {
  return {
    type: "FunctionDeclaration",
    id: { type: "Identifier", name: "_resolveDynamicMdxSpecifier" },
    generator: !1,
    async: !1,
    params: [{ type: "Identifier", name: "d" }],
    body: {
      type: "BlockStatement",
      body: [
        {
          type: "IfStatement",
          test: {
            type: "BinaryExpression",
            left: {
              type: "UnaryExpression",
              operator: "typeof",
              prefix: !0,
              argument: { type: "Identifier", name: "d" }
            },
            operator: "!==",
            right: { type: "Literal", value: "string" }
          },
          consequent: {
            type: "ReturnStatement",
            argument: { type: "Identifier", name: "d" }
          },
          alternate: null
        },
        // To do: use `URL.canParse` when widely supported (see commented
        // out code below).
        {
          type: "TryStatement",
          block: {
            type: "BlockStatement",
            body: [
              {
                type: "ExpressionStatement",
                expression: {
                  type: "NewExpression",
                  callee: { type: "Identifier", name: "URL" },
                  arguments: [{ type: "Identifier", name: "d" }]
                }
              },
              {
                type: "ReturnStatement",
                argument: { type: "Identifier", name: "d" }
              }
            ]
          },
          handler: {
            type: "CatchClause",
            param: null,
            body: { type: "BlockStatement", body: [] }
          },
          finalizer: null
        },
        // To do: use `URL.canParse` when widely supported.
        // {
        //   type: 'IfStatement',
        //   test: {
        //     type: 'CallExpression',
        //     callee: toIdOrMemberExpression(['URL', 'canParse']),
        //     arguments: [{type: 'Identifier', name: 'd'}],
        //     optional: false
        //   },
        //   consequent: {
        //     type: 'ReturnStatement',
        //     argument: {type: 'Identifier', name: 'd'}
        //   },
        //   alternate: null
        // },
        {
          type: "IfStatement",
          test: {
            type: "LogicalExpression",
            left: {
              type: "LogicalExpression",
              left: {
                type: "CallExpression",
                callee: _i(["d", "startsWith"]),
                arguments: [{ type: "Literal", value: "/" }],
                optional: !1
              },
              operator: "||",
              right: {
                type: "CallExpression",
                callee: _i(["d", "startsWith"]),
                arguments: [{ type: "Literal", value: "./" }],
                optional: !1
              }
            },
            operator: "||",
            right: {
              type: "CallExpression",
              callee: _i(["d", "startsWith"]),
              arguments: [{ type: "Literal", value: "../" }],
              optional: !1
            }
          },
          consequent: {
            type: "ReturnStatement",
            argument: {
              type: "MemberExpression",
              object: {
                type: "NewExpression",
                callee: { type: "Identifier", name: "URL" },
                arguments: [{ type: "Identifier", name: "d" }, e]
              },
              property: { type: "Identifier", name: "href" },
              computed: !1,
              optional: !1
            }
          },
          alternate: null
        },
        {
          type: "ReturnStatement",
          argument: { type: "Identifier", name: "d" }
        }
      ]
    }
  };
}
function DL() {
  return [
    {
      type: "VariableDeclaration",
      declarations: [
        {
          type: "VariableDeclarator",
          id: { type: "Identifier", name: "_importMetaUrl" },
          init: _i(["arguments", 0, "baseUrl"])
        }
      ],
      kind: "const"
    },
    {
      type: "IfStatement",
      test: {
        type: "UnaryExpression",
        operator: "!",
        prefix: !0,
        argument: { type: "Identifier", name: "_importMetaUrl" }
      },
      consequent: {
        type: "ThrowStatement",
        argument: {
          type: "NewExpression",
          callee: { type: "Identifier", name: "Error" },
          arguments: [
            {
              type: "Literal",
              value: "Unexpected missing `options.baseUrl` needed to support `export \u2026 from`, `import`, or `import.meta.url` when generating\
 `function-body`"
            }
          ]
        }
      },
      alternate: null
    }
  ];
}
function yL(e, t) {
  let r = t || {}, i = r.runtime === "automatic", n = {}, a = {};
  Ks(e, {
    enter(u) {
      if (u.type === "Program") {
        let o = u.comments || [], l = -1;
        for (; ++l < o.length; ) {
          Mp.lastIndex = 0;
          let c = Mp.exec(o[l].value);
          for (; c; )
            n[c[1]] = c[2], c = Mp.exec(o[l].value);
        }
        if (n.jsxRuntime)
          if (n.jsxRuntime === "automatic") {
            if (i = !0, n.jsx)
              throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");
            if (n.jsxFrag)
              throw new Error(
                "Unexpected `@jsxFrag` pragma w/ automatic runtime"
              );
          } else if (n.jsxRuntime === "classic") {
            if (i = !1, n.jsxImportSource)
              throw new Error(
                "Unexpected `@jsxImportSource` w/ classic runtime"
              );
          } else
            throw new Error(
              "Unexpected `jsxRuntime` `" + n.jsxRuntime + "`, expected `automatic` or `classic`"
            );
      }
    },
    // eslint-disable-next-line complexity
    leave(u) {
      if (u.type === "Program") {
        let D = [];
        if (a.fragment && D.push({
          type: "ImportSpecifier",
          imported: { type: "Identifier", name: "Fragment" },
          local: { type: "Identifier", name: "_Fragment" }
        }), a.jsx && D.push({
          type: "ImportSpecifier",
          imported: { type: "Identifier", name: "jsx" },
          local: { type: "Identifier", name: "_jsx" }
        }), a.jsxs && D.push({
          type: "ImportSpecifier",
          imported: { type: "Identifier", name: "jsxs" },
          local: { type: "Identifier", name: "_jsxs" }
        }), a.jsxDEV && D.push({
          type: "ImportSpecifier",
          imported: { type: "Identifier", name: "jsxDEV" },
          local: { type: "Identifier", name: "_jsxDEV" }
        }), D.length > 0) {
          let v = 0;
          for (; v < u.body.length; ) {
            let y = u.body[v];
            if ("directive" in y && y.directive)
              v++;
            else
              break;
          }
          u.body.splice(v, 0, {
            type: "ImportDeclaration",
            specifiers: D,
            source: {
              type: "Literal",
              value: (n.jsxImportSource || r.importSource || "react") + (r.development ? "/jsx-dev-runtime" : "/jsx-runtime")
            }
          });
        }
      }
      if (u.type !== "JSXElement" && u.type !== "JSXFragment")
        return;
      let o = [], l = -1;
      for (; ++l < u.children.length; ) {
        let D = u.children[l];
        if (D.type === "JSXExpressionContainer")
          D.expression.type !== "JSXEmptyExpression" && o.push(D.expression);
        else if (D.type === "JSXText") {
          let v = D.value.replace(/\t/g, " ").replace(/ *(\r?\n|\r) */g, `
`).replace(/\n+/g, `
`).replace(/\n+$/, "").replace(/^\n+/, "").replace(/\n/g, " ");
          if (v) {
            let y = { type: "Literal", value: v };
            Xs(D, y), o.push(y);
          }
        } else
          D.type !== "JSXElement" && D.type !== "JSXFragment" && D.type, o.push(D);
      }
      let c, h = [], p = [], d;
      if (u.type === "JSXElement") {
        if (c = Ku(u.openingElement.name), c.type === "Identifier" && /^[a-z]/.test(c.name)) {
          let C = { type: "Literal", value: c.name };
          Xs(c, C), c = C;
        }
        let D, v = u.openingElement.attributes, y = -1;
        for (; ++y < v.length; ) {
          let C = v[y];
          if (C.type === "JSXSpreadAttribute")
            C.argument.type === "ObjectExpression" ? h.push(...C.argument.properties) : h.push({ type: "SpreadElement", argument: C.argument }),
            D = !0;
          else {
            let S = xL(C);
            if (i && S.key.type === "Identifier" && S.key.name === "key") {
              if (D)
                throw new Error(
                  "Expected `key` to come before any spread expressions"
                );
              let T = S.value;
              T.type !== "AssignmentPattern" && T.type !== "ArrayPattern" && T.type !== "ObjectPattern" && T.type, d = T;
            } else
              h.push(S);
          }
        }
      } else i ? (a.fragment = !0, c = { type: "Identifier", name: "_Fragment" }) : c = ib(
        n.jsxFrag || r.pragmaFrag || "React.Fragment"
      );
      i ? o.length > 0 && h.push({
        type: "Property",
        key: { type: "Identifier", name: "children" },
        value: o.length > 1 ? { type: "ArrayExpression", elements: o } : o[0],
        kind: "init",
        method: !1,
        shorthand: !1,
        computed: !1
      }) : p = o;
      let m;
      if (i) {
        p.push({ type: "ObjectExpression", properties: h }), d ? p.push(d) : r.development && p.push({ type: "Identifier", name: "undefined" });
        let D = o.length > 1;
        if (r.development) {
          a.jsxDEV = !0, m = {
            type: "Identifier",
            name: "_jsxDEV"
          }, p.push({ type: "Literal", value: D });
          let v = {
            type: "ObjectExpression",
            properties: [
              {
                type: "Property",
                method: !1,
                shorthand: !1,
                computed: !1,
                kind: "init",
                key: { type: "Identifier", name: "fileName" },
                value: {
                  type: "Literal",
                  value: r.filePath || "<source.js>"
                }
              }
            ]
          };
          u.loc && v.properties.push(
            {
              type: "Property",
              method: !1,
              shorthand: !1,
              computed: !1,
              kind: "init",
              key: { type: "Identifier", name: "lineNumber" },
              value: { type: "Literal", value: u.loc.start.line }
            },
            {
              type: "Property",
              method: !1,
              shorthand: !1,
              computed: !1,
              kind: "init",
              key: { type: "Identifier", name: "columnNumber" },
              value: { type: "Literal", value: u.loc.start.column + 1 }
            }
          ), p.push(v, { type: "ThisExpression" });
        } else D ? (a.jsxs = !0, m = { type: "Identifier", name: "_jsxs" }) : (a.jsx = !0, m = { type: "Identifier", name: "_jsx" });
      } else
        h.length > 0 ? p.unshift({ type: "ObjectExpression", properties: h }) : p.length > 0 && p.unshift({ type: "Literal", value: null }),
        m = ib(
          n.jsx || r.pragma || "React.createElement"
        );
      p.unshift(c);
      let g = {
        type: "CallExpression",
        callee: m,
        arguments: p,
        optional: !1
      };
      Xs(u, g), this.replace(g);
    }
  });
}
function xL(e) {
  let t;
  if (e.value)
    if (e.value.type === "JSXExpressionContainer") {
      let i = e.value.expression;
      i.type, t = i;
    } else {
      let i = e.value;
      i.type !== "JSXElement" && i.type, t = i, delete t.raw;
    }
  else
    t = { type: "Literal", value: !0 };
  let r = {
    type: "Property",
    key: Ku(e.name),
    value: t,
    kind: "init",
    method: !1,
    shorthand: !1,
    computed: !1
  };
  return Xs(e, r), r;
}
function Ku(e) {
  let t;
  if (e.type === "JSXMemberExpression") {
    let r = Ku(e.property);
    t = {
      type: "MemberExpression",
      object: Ku(e.object),
      property: r,
      computed: r.type === "Literal",
      optional: !1
    };
  } else e.type === "JSXNamespacedName" ? t = {
    type: "Literal",
    value: e.namespace.name + ":" + e.name.name
  } : t = fr(e.name) ? { type: "Identifier", name: e.name } : { type: "Literal", value: e.name };
  return Xs(e, t), t;
}
function ib(e) {
  let t = e.split("."), r = -1, i;
  for (; ++r < t.length; ) {
    let n = fr(t[r]) ? { type: "Identifier", name: t[r] } : { type: "Literal", value: t[r] };
    i = i ? {
      type: "MemberExpression",
      object: i,
      property: n,
      computed: !!(r && n.type === "Literal"),
      optional: !1
    } : n;
  }
  return i;
}
function Xs(e, t) {
  let r = ["start", "end", "loc", "range", "comments"], i = -1;
  for (; ++i < r.length; ) {
    let n = r[i];
    n in e && (t[n] = e[n]);
  }
}
function EL(e) {
  let { development: t, outputFormat: r } = e || {};
  return function(i, n) {
    if (yL(i, { development: t, filePath: n.history[0] }), i.comments && i.comments[0].type === "Block" && i.comments[0].data && i.comments[0].
    data._mdxIsPragmaComment && i.comments.shift(), r === "function-body") {
      let a = 0;
      for (; a < i.body.length; ) {
        let o = i.body[a];
        if ("directive" in o && o.directive)
          a++;
        else
          break;
      }
      let u = i.body[a];
      u && u.type === "ImportDeclaration" && typeof u.source.value == "string" && /\/jsx-(dev-)?runtime$/.test(u.source.value) && (i.body[a] =
      {
        type: "VariableDeclaration",
        kind: "const",
        declarations: tf(
          u.specifiers,
          _i(["arguments", 0])
        )
      });
    }
  };
}
function nb(e) {
  let t = -1, r;
  for (; ++t < e.length; ) {
    let i = e[t];
    r = r ? { type: "BinaryExpression", left: r, operator: "+", right: i } : i;
  }
  return r;
}
function bL(e) {
  let { development: t, outputFormat: r, providerImportSource: i } = e;
  return function(n, a) {
    let u = Gb(n), o = [], l = !1, c = !1, h;
    if (Ks(n, {
      enter(p) {
        let d = (
          /** @type {Scope | undefined} */
          u.map.get(p)
        );
        (p.type === "FunctionDeclaration" || p.type === "FunctionExpression" || p.type === "ArrowFunctionExpression") && (o.push({
          components: [],
          idToInvalidComponentName: /* @__PURE__ */ new Map(),
          node: p,
          objects: [],
          references: {},
          tags: []
        }), zn(p, "MDXContent") && d && !jp(d, "MDXLayout") && o[0].components.push("MDXLayout"));
        let m = o[0];
        if (!(!m || !zn(m.node, "_createMdxContent") && !i) && (d && (d.node = p, h = d), h && p.type === "JSXElement")) {
          let g = p.openingElement.name;
          if (g.type === "JSXMemberExpression") {
            let D = [];
            for (; g.type === "JSXMemberExpression"; )
              D.unshift(g.property.name), g = g.object;
            D.unshift(g.name);
            let v = D.join("."), y = g.name, C = jp(h, y);
            if (!Object.hasOwn(m.references, v)) {
              let S = (
                /** @type {Scope | undefined} */
                h.parent
              );
              (!C || // If the parent scope is `_createMdxContent`, then this
              // references a component we can add a check statement for.
              S && S.node.type === "FunctionDeclaration" && zn(S.node, "_createMdxContent")) && (m.references[v] = { component: !0, node: p });
            }
            !m.objects.includes(y) && !C && m.objects.push(y);
          } else if (g.type !== "JSXNamespacedName") {
            if (fr(g.name) && !/^[a-z]/.test(g.name)) {
              let D = g.name;
              jp(h, D) || (D !== "MDXLayout" && !Object.hasOwn(m.references, D) && (m.references[D] = { component: !0, node: p }), m.components.
              includes(D) || m.components.push(D));
            } else if (!(p.data && p.data._mdxExplicitJsx)) {
              let D = g.name;
              m.tags.includes(D) || m.tags.push(D);
              let v = ["_components", D];
              if (fr(D) === !1) {
                let y = m.idToInvalidComponentName.get(D);
                y === void 0 && (y = `_component${m.idToInvalidComponentName.size}`, m.idToInvalidComponentName.set(D, y)), v = [y];
              }
              p.openingElement.name = rb(v), p.closingElement && (p.closingElement.name = rb(v));
            }
          }
        }
      },
      leave(p) {
        let d = [], m = [], g = [], D = [];
        if (h && h.node === p && (h = /** @type {Scope} */
        h.parent), p.type === "FunctionDeclaration" || p.type === "FunctionExpression" || p.type === "ArrowFunctionExpression") {
          let v = p, y = o[o.length - 1], C;
          for (C of y.tags.sort())
            d.push({
              type: "Property",
              kind: "init",
              key: fr(C) ? { type: "Identifier", name: C } : { type: "Literal", value: C },
              value: { type: "Literal", value: C },
              method: !1,
              shorthand: !1,
              computed: !1
            });
          m.push(...y.components);
          for (C of y.objects)
            m.includes(C) || m.push(C);
          m.sort();
          let S = [];
          if (d.length > 0 || m.length > 0 || y.idToInvalidComponentName.size > 0) {
            if (i && (l = !0, g.push({
              type: "CallExpression",
              callee: { type: "Identifier", name: "_provideComponents" },
              arguments: [],
              optional: !1
            })), (zn(y.node, "MDXContent") || zn(y.node, "_createMdxContent")) && g.push(_i(["props", "components"])), d.length > 0 || g.length >
            1)
              for (let k of g)
                d.push({ type: "SpreadElement", argument: k });
            let A = d.length > 0 ? { type: "ObjectExpression", properties: d } : (
              // If we’re only getting components from `props.components`,
              // make sure it’s defined.
              {
                type: "LogicalExpression",
                operator: "||",
                left: g[0],
                right: { type: "ObjectExpression", properties: [] }
              }
            ), P;
            if (m.length > 0 && (P = {
              type: "ObjectPattern",
              properties: m.map(function(k) {
                return {
                  type: "Property",
                  kind: "init",
                  key: {
                    type: "Identifier",
                    name: k === "MDXLayout" ? "wrapper" : k
                  },
                  value: { type: "Identifier", name: k },
                  method: !1,
                  shorthand: k !== "MDXLayout",
                  computed: !1
                };
              })
            }), y.tags.length > 0 && (D.push({
              type: "VariableDeclarator",
              id: { type: "Identifier", name: "_components" },
              init: A
            }), A = { type: "Identifier", name: "_components" }), zn(y.node, "_createMdxContent"))
              for (let [k, $] of [
                ...y.idToInvalidComponentName
              ].sort(function([M], [V]) {
                return M.localeCompare(V);
              }))
                D.push({
                  type: "VariableDeclarator",
                  id: {
                    type: "Identifier",
                    name: $
                  },
                  init: {
                    type: "MemberExpression",
                    object: { type: "Identifier", name: "_components" },
                    property: { type: "Literal", value: k },
                    computed: !0,
                    optional: !1
                  }
                });
            P && D.push({
              type: "VariableDeclarator",
              id: P,
              init: A
            }), D.length > 0 && S.push({
              type: "VariableDeclaration",
              kind: "const",
              declarations: D
            });
          }
          let T;
          for (T in y.references)
            if (Object.hasOwn(y.references, T)) {
              let A = T.split("."), P = 0;
              for (; ++P < A.length; ) {
                let k = A.slice(0, P).join(".");
                Object.hasOwn(y.references, k) || (y.references[k] = {
                  component: !1,
                  node: y.references[T].node
                });
              }
            }
          let j = Object.keys(y.references).sort(), w = -1;
          for (; ++w < j.length; ) {
            let A = j[w], P = y.references[A], k = rr(ti(P.node)), $ = [
              { type: "Literal", value: A },
              { type: "Literal", value: P.component }
            ];
            c = !0, t && k && $.push({ type: "Literal", value: k }), S.push({
              type: "IfStatement",
              test: {
                type: "UnaryExpression",
                operator: "!",
                prefix: !0,
                argument: _i(A.split("."))
              },
              consequent: {
                type: "ExpressionStatement",
                expression: {
                  type: "CallExpression",
                  callee: { type: "Identifier", name: "_missingMdxReference" },
                  arguments: $,
                  optional: !1
                }
              },
              alternate: void 0
            });
          }
          S.length > 0 && (v.body.type !== "BlockStatement" && (v.body = {
            type: "BlockStatement",
            body: [{ type: "ReturnStatement", argument: v.body }]
          }), v.body.body.unshift(...S)), o.pop();
        }
      }
    }), l && i && n.body.unshift(
      vL(i, r)
    ), c) {
      let p = [
        { type: "Literal", value: "Expected " },
        {
          type: "ConditionalExpression",
          test: { type: "Identifier", name: "component" },
          consequent: { type: "Literal", value: "component" },
          alternate: { type: "Literal", value: "object" }
        },
        { type: "Literal", value: " `" },
        { type: "Identifier", name: "id" },
        {
          type: "Literal",
          value: "` to be defined: you likely forgot to import, pass, or provide it."
        }
      ], d = [
        { type: "Identifier", name: "id" },
        { type: "Identifier", name: "component" }
      ];
      t && (p.push({
        type: "ConditionalExpression",
        test: { type: "Identifier", name: "place" },
        consequent: nb([
          { type: "Literal", value: "\nIt\u2019s referenced in your code at `" },
          { type: "Identifier", name: "place" },
          {
            type: "Literal",
            value: (a.path ? "` in `" + a.path : "") + "`"
          }
        ]),
        alternate: { type: "Literal", value: "" }
      }), d.push({ type: "Identifier", name: "place" })), n.body.push({
        type: "FunctionDeclaration",
        id: { type: "Identifier", name: "_missingMdxReference" },
        generator: !1,
        async: !1,
        params: d,
        body: {
          type: "BlockStatement",
          body: [
            {
              type: "ThrowStatement",
              argument: {
                type: "NewExpression",
                callee: { type: "Identifier", name: "Error" },
                arguments: [nb(p)]
              }
            }
          ]
        }
      });
    }
    r === "function-body" && n.body.unshift({
      type: "ExpressionStatement",
      expression: { type: "Literal", value: "use strict" },
      directive: "use strict"
    });
  };
}
function vL(e, t) {
  let r = [
    {
      type: "ImportSpecifier",
      imported: { type: "Identifier", name: "useMDXComponents" },
      local: { type: "Identifier", name: "_provideComponents" }
    }
  ];
  return t === "function-body" ? {
    type: "VariableDeclaration",
    kind: "const",
    declarations: tf(
      r,
      _i(["arguments", 0])
    )
  } : {
    type: "ImportDeclaration",
    specifiers: r,
    source: { type: "Literal", value: e }
  };
}
function zn(e, t) {
  return !!(e && "id" in e && e.id && e.id.name === t);
}
function jp(e, t) {
  let r = e;
  for (; r; ) {
    if (r.declarations.has(t))
      return !0;
    r = /** @type {Scope | undefined} */
    r.parent || void 0;
  }
  return !1;
}
function Hn(e, t) {
  let { generator: r } = e;
  if (e.write("("), t != null && t.length > 0) {
    r[t[0].type](t[0], e);
    let { length: i } = t;
    for (let n = 1; n < i; n++) {
      let a = t[n];
      e.write(", "), r[a.type](a, e);
    }
  }
  e.write(")");
}
function Yb(e, t, r, i) {
  let n = e.expressionsPrecedence[t.type];
  if (n === mr)
    return !0;
  let a = e.expressionsPrecedence[r.type];
  return n !== a ? !i && n === 15 && a === 14 && r.operator === "**" || n < a : n !== 13 && n !== 14 ? !1 : t.operator === "**" && r.operator ===
  "**" ? !i : n === 13 && a === 13 && (t.operator === "??" || r.operator === "??") ? !0 : i ? zu[t.operator] <= zu[r.operator] : zu[t.operator] <
  zu[r.operator];
}
function Hu(e, t, r, i) {
  let { generator: n } = e;
  Yb(e, t, r, i) ? (e.write("("), n[t.type](t, e), e.write(")")) : n[t.type](t, e);
}
function AL(e, t, r, i) {
  let n = t.split(`
`), a = n.length - 1;
  if (e.write(n[0].trim()), a > 0) {
    e.write(i);
    for (let u = 1; u < a; u++)
      e.write(r + n[u].trim() + i);
    e.write(r + n[a].trim());
  }
}
function Et(e, t, r, i) {
  let { length: n } = t;
  for (let a = 0; a < n; a++) {
    let u = t[a];
    e.write(r), u.type[0] === "L" ? e.write("// " + u.value.trim() + `
`, u) : (e.write("/*"), AL(e, u.value, r, i), e.write("*/" + i));
  }
}
function FL(e) {
  let t = e;
  for (; t != null; ) {
    let { type: r } = t;
    if (r[0] === "C" && r[1] === "a")
      return !0;
    if (r[0] === "M" && r[1] === "e" && r[2] === "m")
      t = t.object;
    else
      return !1;
  }
}
function qp(e, t) {
  let { generator: r } = e, { declarations: i } = t;
  e.write(t.kind + " ");
  let { length: n } = i;
  if (n > 0) {
    r.VariableDeclarator(i[0], e);
    for (let a = 1; a < n; a++)
      e.write(", "), r.VariableDeclarator(i[a], e);
  }
}
function kL(e, t) {
  let r = new _L(t);
  return r.generator[e.type](e, r), r.output;
}
function hb(e, t) {
  let { SourceMapGenerator: r, filePath: i, handlers: n } = t || TL, a = r ? new r({ file: i || "<unknown>.js" }) : void 0, u = kL(
    e,
    // @ts-expect-error: `sourceMap` can be undefined, `astring` types are buggy.
    {
      comments: !0,
      generator: { ...Kb, ...n },
      sourceMap: a || void 0
    }
  ), o = a ? a.toJSON() : void 0;
  return { value: u, map: o };
}
function BL(e, t) {
  this[e.name.type](e.name, t), e.value !== null && e.value !== void 0 && (t.write("="), e.value.type === "Literal" ? t.write(
    '"' + Qb(String(e.value.value)).replace(/"/g, "&quot;") + '"',
    e
  ) : this[e.value.type](e.value, t));
}
function PL(e, t) {
  t.write("</"), this[e.name.type](e.name, t), t.write(">");
}
function IL(e, t) {
  t.write("</>", e);
}
function OL(e, t) {
  let r = -1;
  if (this[e.openingElement.type](e.openingElement, t), e.children)
    for (; ++r < e.children.length; ) {
      let i = e.children[r];
      if (i.type === "JSXSpreadChild")
        throw new Error("JSX spread children are not supported");
      this[i.type](i, t);
    }
  e.closingElement && this[e.closingElement.type](e.closingElement, t);
}
function RL() {
}
function NL(e, t) {
  t.write("{"), this[e.expression.type](e.expression, t), t.write("}");
}
function LL(e, t) {
  let r = -1;
  if (this[e.openingFragment.type](e.openingFragment, t), e.children)
    for (; ++r < e.children.length; ) {
      let i = e.children[r];
      if (i.type === "JSXSpreadChild")
        throw new Error("JSX spread children are not supported");
      this[i.type](i, t);
    }
  this[e.closingFragment.type](e.closingFragment, t);
}
function ML(e, t) {
  t.write(e.name, e);
}
function jL(e, t) {
  this[e.object.type](e.object, t), t.write("."), this[e.property.type](e.property, t);
}
function qL(e, t) {
  this[e.namespace.type](e.namespace, t), t.write(":"), this[e.name.type](e.name, t);
}
function $L(e, t) {
  let r = -1;
  if (t.write("<"), this[e.name.type](e.name, t), e.attributes)
    for (; ++r < e.attributes.length; )
      t.write(" "), this[e.attributes[r].type](e.attributes[r], t);
  t.write(e.selfClosing ? " />" : ">");
}
function VL(e, t) {
  t.write("<>", e);
}
function UL(e, t) {
  t.write("{"), this.SpreadElement(e, t), t.write("}");
}
function zL(e, t) {
  t.write(Qb(e.value).replace(/[<>{}]/g, HL), e);
}
function Qb(e) {
  return e.replace(/&(?=[#a-z])/gi, "&amp;");
}
function HL(e) {
  return e === "<" ? "&lt;" : e === ">" ? "&gt;" : e === "{" ? "&#123;" : "&#125;";
}
function WL(e) {
  let t = (
    /** @type {Processor} */
    this
  ), { SourceMapGenerator: r } = e;
  t.compiler = i;
  function i(n, a) {
    let u = r ? hb(n, {
      SourceMapGenerator: r,
      filePath: a.path || "unknown.mdx",
      handlers: pb
    }) : hb(n, { handlers: pb });
    return a.map = u.map, u.value;
  }
  s(i, "compiler2");
}
function JL(e) {
  return function(t) {
    return Bu(t, e);
  };
}
function GL() {
  return function(e) {
    ef(e, "raw", function(t, r, i) {
      if (i && typeof r == "number")
        return i.children.splice(r, 1), r;
    });
  };
}
function KL(e, t) {
  t ? typeof t == "string" && (t = { style: t }) : t = {};
  let r = t.preserveLineEndings ? QL : ZL;
  return String(e).replace(
    t.style === "html" ? YL : XL,
    t.trim ? eM(r) : r
  );
}
function QL(e) {
  let t = /\r?\n|\r/.exec(e);
  return t ? t[0] : " ";
}
function ZL() {
  return " ";
}
function eM(e) {
  return t;
  function t(r, i, n) {
    return i === 0 || i + r.length === n.length ? "" : e(r);
  }
}
function tM() {
  return function(e) {
    ef(e, function(t, r, i) {
      let n = -1, a = !0, u = !1;
      if (i && typeof r == "number" && t.type === "paragraph") {
        let o = t.children;
        for (; ++n < o.length; ) {
          let l = o[n];
          if (l.type === "mdxJsxTextElement" || l.type === "mdxTextExpression")
            u = !0;
          else if (!(l.type === "text" && KL(l.value, { style: "html", trim: !0 }) === "")) {
            a = !1;
            break;
          }
        }
        if (a && u) {
          n = -1;
          let l = [];
          for (; ++n < o.length; ) {
            let c = o[n];
            c.type === "mdxJsxTextElement" && (c.type = "mdxJsxFlowElement"), c.type === "mdxTextExpression" && (c.type = "mdxFlowExpression"),
            c.type === "text" && /^[\t\r\n ]+$/.test(String(c.value)) || l.push(c);
          }
          return i.children.splice(r, 1, ...l), r;
        }
      }
      if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") {
        let o = t.data || (t.data = {});
        o._mdxExplicitJsx = !0;
      }
    });
  };
}
function rf(e) {
  let t = e || {}, r = -1;
  for (; ++r < fb.length; ) {
    let a = fb[r];
    a in t && ("" + a, void 0);
  }
  t.format === "detect" && void 0, (t.jsxRuntime === "classic" || t.pragma || t.pragmaFrag || t.pragmaImportSource) && !db && (db = !0, console.
  warn(
    "Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating\
/v3/> on how to migrate"
  ));
  let i = uL().use(aN);
  t.format !== "md" && i.use(w7);
  let n = t.remarkRehypeOptions || {};
  return i.use(tM).use(t.remarkPlugins || []).use(rL, {
    ...n,
    allowDangerousHtml: !0,
    passThrough: [...n.passThrough || [], ...Zb]
  }).use(t.rehypePlugins || []), t.format === "md" && i.use(GL), i.use(JL, t).use(mL, t).use(bL, t), t.jsx || i.use(EL, t), i.use(WL, t).use(
  t.recmaPlugins || []), i;
}
function ev(e, t) {
  let { file: r, options: i } = gb(e, t);
  return rf(i).process(r);
}
function tv(e, t) {
  let { file: r, options: i } = gb(e, t);
  return rf(i).processSync(r);
}
function rv(e) {
  let {
    Fragment: t,
    baseUrl: r,
    development: i,
    jsx: n,
    jsxDEV: a,
    jsxs: u,
    useMDXComponents: o,
    ...l
  } = e || {};
  if (!t)
    throw new Error("Expected `Fragment` given to `evaluate`");
  if (i) {
    if (!a)
      throw new Error("Expected `jsxDEV` given to `evaluate`");
  } else {
    if (!n)
      throw new Error("Expected `jsx` given to `evaluate`");
    if (!u)
      throw new Error("Expected `jsxs` given to `evaluate`");
  }
  return {
    compiletime: {
      ...l,
      development: i,
      outputFormat: "function-body",
      providerImportSource: o ? "#" : void 0
    },
    runtime: { Fragment: t, baseUrl: r, jsx: n, jsxDEV: a, jsxs: u, useMDXComponents: o }
  };
}
async function nf(e, t) {
  return new rM(String(e))(t);
}
function iv(e, t) {
  return new Function(String(e))(t);
}
async function iM(e, t) {
  let { compiletime: r, runtime: i } = rv(t);
  return nf(await ev(e, r), i);
}
function nM(e, t) {
  let { compiletime: r, runtime: i } = rv(t);
  return iv(tv(e, r), i);
}
var G4, X4, Y4, Te, Fp, mb, e5, t5, r5, o5, CE, AE, h5, $n, p5, yb, P5, I5, gr, Lt, O5, Up, R5, bb, ei, M5, j5, kp, q5, Jn, H5, W5, kE, J5, G5,
TE, zp, nR, Qs, wb, Ab, Fb, IE, OE, Pp, dR, DR, vR, CR, SR, _R, BR, IR, NR, RE, LR, MR, jR, zR, Xp, WR, JR, GR, t7, i7, Ip, Wu, kt, u7, o7, NE,
g7, LE, D7, ME, C7, A7, _7, T7, qE, I7, R7, N7, L7, Nb, V7, U7, z7, H7, W7, J7, G7, X7, Y7, $E, eN, Lb, UE, zE, PN, $b, Qu, Gu, Xu, Yp, Kp, Qp,
Zp, Vb, Ub, WE, IN, JE, Vn, ON, RN, Js, Vu, NN, GE, Yu, zb, Hb, WN, XE, JN, Hp, YN, Op, sL, aL, Wb, uL, hL, pL, Un, Mp, CL, zu, mr, wL, sb, ab,
ub, ob, lb, cb, Kb, SL, _L, TL, pb, XL, YL, Zb, fb, db, rM, sv = ut(() => {
  cp();
  dE();
  G4 = On({
    "node_modules/micromark-extension-mdxjs/node_modules/acorn-jsx/xhtml.js"(e, t) {
      t.exports = {
        quot: '"',
        amp: "&",
        apos: "'",
        lt: "<",
        gt: ">",
        nbsp: "\xA0",
        iexcl: "\xA1",
        cent: "\xA2",
        pound: "\xA3",
        curren: "\xA4",
        yen: "\xA5",
        brvbar: "\xA6",
        sect: "\xA7",
        uml: "\xA8",
        copy: "\xA9",
        ordf: "\xAA",
        laquo: "\xAB",
        not: "\xAC",
        shy: "\xAD",
        reg: "\xAE",
        macr: "\xAF",
        deg: "\xB0",
        plusmn: "\xB1",
        sup2: "\xB2",
        sup3: "\xB3",
        acute: "\xB4",
        micro: "\xB5",
        para: "\xB6",
        middot: "\xB7",
        cedil: "\xB8",
        sup1: "\xB9",
        ordm: "\xBA",
        raquo: "\xBB",
        frac14: "\xBC",
        frac12: "\xBD",
        frac34: "\xBE",
        iquest: "\xBF",
        Agrave: "\xC0",
        Aacute: "\xC1",
        Acirc: "\xC2",
        Atilde: "\xC3",
        Auml: "\xC4",
        Aring: "\xC5",
        AElig: "\xC6",
        Ccedil: "\xC7",
        Egrave: "\xC8",
        Eacute: "\xC9",
        Ecirc: "\xCA",
        Euml: "\xCB",
        Igrave: "\xCC",
        Iacute: "\xCD",
        Icirc: "\xCE",
        Iuml: "\xCF",
        ETH: "\xD0",
        Ntilde: "\xD1",
        Ograve: "\xD2",
        Oacute: "\xD3",
        Ocirc: "\xD4",
        Otilde: "\xD5",
        Ouml: "\xD6",
        times: "\xD7",
        Oslash: "\xD8",
        Ugrave: "\xD9",
        Uacute: "\xDA",
        Ucirc: "\xDB",
        Uuml: "\xDC",
        Yacute: "\xDD",
        THORN: "\xDE",
        szlig: "\xDF",
        agrave: "\xE0",
        aacute: "\xE1",
        acirc: "\xE2",
        atilde: "\xE3",
        auml: "\xE4",
        aring: "\xE5",
        aelig: "\xE6",
        ccedil: "\xE7",
        egrave: "\xE8",
        eacute: "\xE9",
        ecirc: "\xEA",
        euml: "\xEB",
        igrave: "\xEC",
        iacute: "\xED",
        icirc: "\xEE",
        iuml: "\xEF",
        eth: "\xF0",
        ntilde: "\xF1",
        ograve: "\xF2",
        oacute: "\xF3",
        ocirc: "\xF4",
        otilde: "\xF5",
        ouml: "\xF6",
        divide: "\xF7",
        oslash: "\xF8",
        ugrave: "\xF9",
        uacute: "\xFA",
        ucirc: "\xFB",
        uuml: "\xFC",
        yacute: "\xFD",
        thorn: "\xFE",
        yuml: "\xFF",
        OElig: "\u0152",
        oelig: "\u0153",
        Scaron: "\u0160",
        scaron: "\u0161",
        Yuml: "\u0178",
        fnof: "\u0192",
        circ: "\u02C6",
        tilde: "\u02DC",
        Alpha: "\u0391",
        Beta: "\u0392",
        Gamma: "\u0393",
        Delta: "\u0394",
        Epsilon: "\u0395",
        Zeta: "\u0396",
        Eta: "\u0397",
        Theta: "\u0398",
        Iota: "\u0399",
        Kappa: "\u039A",
        Lambda: "\u039B",
        Mu: "\u039C",
        Nu: "\u039D",
        Xi: "\u039E",
        Omicron: "\u039F",
        Pi: "\u03A0",
        Rho: "\u03A1",
        Sigma: "\u03A3",
        Tau: "\u03A4",
        Upsilon: "\u03A5",
        Phi: "\u03A6",
        Chi: "\u03A7",
        Psi: "\u03A8",
        Omega: "\u03A9",
        alpha: "\u03B1",
        beta: "\u03B2",
        gamma: "\u03B3",
        delta: "\u03B4",
        epsilon: "\u03B5",
        zeta: "\u03B6",
        eta: "\u03B7",
        theta: "\u03B8",
        iota: "\u03B9",
        kappa: "\u03BA",
        lambda: "\u03BB",
        mu: "\u03BC",
        nu: "\u03BD",
        xi: "\u03BE",
        omicron: "\u03BF",
        pi: "\u03C0",
        rho: "\u03C1",
        sigmaf: "\u03C2",
        sigma: "\u03C3",
        tau: "\u03C4",
        upsilon: "\u03C5",
        phi: "\u03C6",
        chi: "\u03C7",
        psi: "\u03C8",
        omega: "\u03C9",
        thetasym: "\u03D1",
        upsih: "\u03D2",
        piv: "\u03D6",
        ensp: "\u2002",
        emsp: "\u2003",
        thinsp: "\u2009",
        zwnj: "\u200C",
        zwj: "\u200D",
        lrm: "\u200E",
        rlm: "\u200F",
        ndash: "\u2013",
        mdash: "\u2014",
        lsquo: "\u2018",
        rsquo: "\u2019",
        sbquo: "\u201A",
        ldquo: "\u201C",
        rdquo: "\u201D",
        bdquo: "\u201E",
        dagger: "\u2020",
        Dagger: "\u2021",
        bull: "\u2022",
        hellip: "\u2026",
        permil: "\u2030",
        prime: "\u2032",
        Prime: "\u2033",
        lsaquo: "\u2039",
        rsaquo: "\u203A",
        oline: "\u203E",
        frasl: "\u2044",
        euro: "\u20AC",
        image: "\u2111",
        weierp: "\u2118",
        real: "\u211C",
        trade: "\u2122",
        alefsym: "\u2135",
        larr: "\u2190",
        uarr: "\u2191",
        rarr: "\u2192",
        darr: "\u2193",
        harr: "\u2194",
        crarr: "\u21B5",
        lArr: "\u21D0",
        uArr: "\u21D1",
        rArr: "\u21D2",
        dArr: "\u21D3",
        hArr: "\u21D4",
        forall: "\u2200",
        part: "\u2202",
        exist: "\u2203",
        empty: "\u2205",
        nabla: "\u2207",
        isin: "\u2208",
        notin: "\u2209",
        ni: "\u220B",
        prod: "\u220F",
        sum: "\u2211",
        minus: "\u2212",
        lowast: "\u2217",
        radic: "\u221A",
        prop: "\u221D",
        infin: "\u221E",
        ang: "\u2220",
        and: "\u2227",
        or: "\u2228",
        cap: "\u2229",
        cup: "\u222A",
        int: "\u222B",
        there4: "\u2234",
        sim: "\u223C",
        cong: "\u2245",
        asymp: "\u2248",
        ne: "\u2260",
        equiv: "\u2261",
        le: "\u2264",
        ge: "\u2265",
        sub: "\u2282",
        sup: "\u2283",
        nsub: "\u2284",
        sube: "\u2286",
        supe: "\u2287",
        oplus: "\u2295",
        otimes: "\u2297",
        perp: "\u22A5",
        sdot: "\u22C5",
        lceil: "\u2308",
        rceil: "\u2309",
        lfloor: "\u230A",
        rfloor: "\u230B",
        lang: "\u2329",
        rang: "\u232A",
        loz: "\u25CA",
        spades: "\u2660",
        clubs: "\u2663",
        hearts: "\u2665",
        diams: "\u2666"
      };
    }
  }), X4 = On({
    "node_modules/micromark-extension-mdxjs/node_modules/acorn-jsx/index.js"(e, t) {
      "use strict";
      var r = G4(), i = /^[\da-fA-F]+$/, n = /^\d+$/, a = /* @__PURE__ */ new WeakMap();
      function u(c) {
        c = c.Parser.acorn || c;
        let h = a.get(c);
        if (!h) {
          let p = c.tokTypes, d = c.TokContext, m = c.TokenType, g = new d("<tag", !1), D = new d("</tag", !1), v = new d("<tag>...</tag>", !0,
          !0), y = {
            tc_oTag: g,
            tc_cTag: D,
            tc_expr: v
          }, C = {
            jsxName: new m("jsxName"),
            jsxText: new m("jsxText", { beforeExpr: !0 }),
            jsxTagStart: new m("jsxTagStart", { startsExpr: !0 }),
            jsxTagEnd: new m("jsxTagEnd")
          };
          C.jsxTagStart.updateContext = function() {
            this.context.push(v), this.context.push(g), this.exprAllowed = !1;
          }, C.jsxTagEnd.updateContext = function(S) {
            let T = this.context.pop();
            T === g && S === p.slash || T === D ? (this.context.pop(), this.exprAllowed = this.curContext() === v) : this.exprAllowed = !0;
          }, h = { tokContexts: y, tokTypes: C }, a.set(c, h);
        }
        return h;
      }
      s(u, "getJsxTokens");
      function o(c) {
        if (!c)
          return c;
        if (c.type === "JSXIdentifier")
          return c.name;
        if (c.type === "JSXNamespacedName")
          return c.namespace.name + ":" + c.name.name;
        if (c.type === "JSXMemberExpression")
          return o(c.object) + "." + o(c.property);
      }
      s(o, "getQualifiedJSXName"), t.exports = function(c) {
        return c = c || {}, function(h) {
          return l({
            allowNamespaces: c.allowNamespaces !== !1,
            allowNamespacedObjects: !!c.allowNamespacedObjects
          }, h);
        };
      }, Object.defineProperty(t.exports, "tokTypes", {
        get: /* @__PURE__ */ s(function() {
          return u(rp("acorn")).tokTypes;
        }, "get_tokTypes"),
        configurable: !0,
        enumerable: !0
      });
      function l(c, h) {
        let p = h.acorn || rp("acorn"), d = u(p), m = p.tokTypes, g = d.tokTypes, D = p.tokContexts, v = d.tokContexts.tc_oTag, y = d.tokContexts.
        tc_cTag, C = d.tokContexts.tc_expr, S = p.isNewLine, T = p.isIdentifierStart, j = p.isIdentifierChar;
        return class extends h {
          // Expose actual `tokTypes` and `tokContexts` to other plugins.
          static get acornJsx() {
            return d;
          }
          // Reads inline JSX contents token.
          jsx_readToken() {
            let w = "", A = this.pos;
            for (; ; ) {
              this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
              let P = this.input.charCodeAt(this.pos);
              switch (P) {
                case 60:
                case 123:
                  return this.pos === this.start ? P === 60 && this.exprAllowed ? (++this.pos, this.finishToken(g.jsxTagStart)) : this.getTokenFromCode(
                  P) : (w += this.input.slice(A, this.pos), this.finishToken(g.jsxText, w));
                case 38:
                  w += this.input.slice(A, this.pos), w += this.jsx_readEntity(), A = this.pos;
                  break;
                case 62:
                case 125:
                  this.raise(
                    this.pos,
                    "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (P === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.
                    input[this.pos] + '"}`?'
                  );
                default:
                  S(P) ? (w += this.input.slice(A, this.pos), w += this.jsx_readNewLine(!0), A = this.pos) : ++this.pos;
              }
            }
          }
          jsx_readNewLine(w) {
            let A = this.input.charCodeAt(this.pos), P;
            return ++this.pos, A === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, P = w ? `
` : `\r
`) : P = String.fromCharCode(A), this.options.locations && (++this.curLine, this.lineStart = this.pos), P;
          }
          jsx_readString(w) {
            let A = "", P = ++this.pos;
            for (; ; ) {
              this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
              let k = this.input.charCodeAt(this.pos);
              if (k === w)
                break;
              k === 38 ? (A += this.input.slice(P, this.pos), A += this.jsx_readEntity(), P = this.pos) : S(k) ? (A += this.input.slice(P, this.
              pos), A += this.jsx_readNewLine(!1), P = this.pos) : ++this.pos;
            }
            return A += this.input.slice(P, this.pos++), this.finishToken(m.string, A);
          }
          jsx_readEntity() {
            let w = "", A = 0, P, k = this.input[this.pos];
            k !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
            let $ = ++this.pos;
            for (; this.pos < this.input.length && A++ < 10; ) {
              if (k = this.input[this.pos++], k === ";") {
                w[0] === "#" ? w[1] === "x" ? (w = w.substr(2), i.test(w) && (P = String.fromCharCode(parseInt(w, 16)))) : (w = w.substr(1),
                n.test(w) && (P = String.fromCharCode(parseInt(w, 10)))) : P = r[w];
                break;
              }
              w += k;
            }
            return P || (this.pos = $, "&");
          }
          // Read a JSX identifier (valid tag or attribute name).
          //
          // Optimized version since JSX identifiers can't contain
          // escape characters and so can be read as single slice.
          // Also assumes that first character was already checked
          // by isIdentifierStart in readToken.
          jsx_readWord() {
            let w, A = this.pos;
            do
              w = this.input.charCodeAt(++this.pos);
            while (j(w) || w === 45);
            return this.finishToken(g.jsxName, this.input.slice(A, this.pos));
          }
          // Parse next token as JSX identifier
          jsx_parseIdentifier() {
            let w = this.startNode();
            return this.type === g.jsxName ? w.name = this.value : this.type.keyword ? w.name = this.type.keyword : this.unexpected(), this.
            next(), this.finishNode(w, "JSXIdentifier");
          }
          // Parse namespaced identifier.
          jsx_parseNamespacedName() {
            let w = this.start, A = this.startLoc, P = this.jsx_parseIdentifier();
            if (!c.allowNamespaces || !this.eat(m.colon))
              return P;
            var k = this.startNodeAt(w, A);
            return k.namespace = P, k.name = this.jsx_parseIdentifier(), this.finishNode(k, "JSXNamespacedName");
          }
          // Parses element name in any form - namespaced, member
          // or single identifier.
          jsx_parseElementName() {
            if (this.type === g.jsxTagEnd)
              return "";
            let w = this.start, A = this.startLoc, P = this.jsx_parseNamespacedName();
            for (this.type === m.dot && P.type === "JSXNamespacedName" && !c.allowNamespacedObjects && this.unexpected(); this.eat(m.dot); ) {
              let k = this.startNodeAt(w, A);
              k.object = P, k.property = this.jsx_parseIdentifier(), P = this.finishNode(k, "JSXMemberExpression");
            }
            return P;
          }
          // Parses any type of JSX attribute value.
          jsx_parseAttributeValue() {
            switch (this.type) {
              case m.braceL:
                let w = this.jsx_parseExpressionContainer();
                return w.expression.type === "JSXEmptyExpression" && this.raise(w.start, "JSX attributes must only be assigned a non-empty e\
xpression"), w;
              case g.jsxTagStart:
              case m.string:
                return this.parseExprAtom();
              default:
                this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
            }
          }
          // JSXEmptyExpression is unique type since it doesn't actually parse anything,
          // and so it should start at the end of last read token (left brace) and finish
          // at the beginning of the next one (right brace).
          jsx_parseEmptyExpression() {
            let w = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
            return this.finishNodeAt(w, "JSXEmptyExpression", this.start, this.startLoc);
          }
          // Parses JSX expression enclosed into curly brackets.
          jsx_parseExpressionContainer() {
            let w = this.startNode();
            return this.next(), w.expression = this.type === m.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(
            m.braceR), this.finishNode(w, "JSXExpressionContainer");
          }
          // Parses following JSX attribute name-value pair.
          jsx_parseAttribute() {
            let w = this.startNode();
            return this.eat(m.braceL) ? (this.expect(m.ellipsis), w.argument = this.parseMaybeAssign(), this.expect(m.braceR), this.finishNode(
            w, "JSXSpreadAttribute")) : (w.name = this.jsx_parseNamespacedName(), w.value = this.eat(m.eq) ? this.jsx_parseAttributeValue() :
            null, this.finishNode(w, "JSXAttribute"));
          }
          // Parses JSX opening tag starting after '<'.
          jsx_parseOpeningElementAt(w, A) {
            let P = this.startNodeAt(w, A);
            P.attributes = [];
            let k = this.jsx_parseElementName();
            for (k && (P.name = k); this.type !== m.slash && this.type !== g.jsxTagEnd; )
              P.attributes.push(this.jsx_parseAttribute());
            return P.selfClosing = this.eat(m.slash), this.expect(g.jsxTagEnd), this.finishNode(P, k ? "JSXOpeningElement" : "JSXOpeningFrag\
ment");
          }
          // Parses JSX closing tag starting after '</'.
          jsx_parseClosingElementAt(w, A) {
            let P = this.startNodeAt(w, A), k = this.jsx_parseElementName();
            return k && (P.name = k), this.expect(g.jsxTagEnd), this.finishNode(P, k ? "JSXClosingElement" : "JSXClosingFragment");
          }
          // Parses entire JSX element, including it's opening tag
          // (starting after '<'), attributes, contents and closing tag.
          jsx_parseElementAt(w, A) {
            let P = this.startNodeAt(w, A), k = [], $ = this.jsx_parseOpeningElementAt(w, A), M = null;
            if (!$.selfClosing) {
              e:
                for (; ; )
                  switch (this.type) {
                    case g.jsxTagStart:
                      if (w = this.start, A = this.startLoc, this.next(), this.eat(m.slash)) {
                        M = this.jsx_parseClosingElementAt(w, A);
                        break e;
                      }
                      k.push(this.jsx_parseElementAt(w, A));
                      break;
                    case g.jsxText:
                      k.push(this.parseExprAtom());
                      break;
                    case m.braceL:
                      k.push(this.jsx_parseExpressionContainer());
                      break;
                    default:
                      this.unexpected();
                  }
              o(M.name) !== o($.name) && this.raise(
                M.start,
                "Expected corresponding JSX closing tag for <" + o($.name) + ">"
              );
            }
            let V = $.name ? "Element" : "Fragment";
            return P["opening" + V] = $, P["closing" + V] = M, P.children = k, this.type === m.relational && this.value === "<" && this.raise(
            this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(P, "JSX" + V);
          }
          // Parse JSX text
          jsx_parseText() {
            let w = this.parseLiteral(this.value);
            return w.type = "JSXText", w;
          }
          // Parses entire JSX element from current position.
          jsx_parseElement() {
            let w = this.start, A = this.startLoc;
            return this.next(), this.jsx_parseElementAt(w, A);
          }
          parseExprAtom(w) {
            return this.type === g.jsxText ? this.jsx_parseText() : this.type === g.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(
            w);
          }
          readToken(w) {
            let A = this.curContext();
            if (A === C)
              return this.jsx_readToken();
            if (A === v || A === y) {
              if (T(w))
                return this.jsx_readWord();
              if (w == 62)
                return ++this.pos, this.finishToken(g.jsxTagEnd);
              if ((w === 34 || w === 39) && A == v)
                return this.jsx_readString(w);
            }
            return w === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(g.jsxTagStart)) :
            super.readToken(w);
          }
          updateContext(w) {
            if (this.type == m.braceL) {
              var A = this.curContext();
              A == v ? this.context.push(D.b_expr) : A == C ? this.context.push(D.b_tmpl) : super.updateContext(w), this.exprAllowed = !0;
            } else if (this.type === m.slash && w === g.jsxTagStart)
              this.context.length -= 2, this.context.push(y), this.exprAllowed = !1;
            else
              return super.updateContext(w);
          }
        };
      }
      s(l, "plugin");
    }
  }), Y4 = On({
    "node_modules/extend/index.js"(e, t) {
      "use strict";
      var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, n = Object.defineProperty, a = Object.getOwnPropertyDescriptor,
      u = /* @__PURE__ */ s(function(p) {
        return typeof Array.isArray == "function" ? Array.isArray(p) : i.call(p) === "[object Array]";
      }, "isArray2"), o = /* @__PURE__ */ s(function(p) {
        if (!p || i.call(p) !== "[object Object]")
          return !1;
        var d = r.call(p, "constructor"), m = p.constructor && p.constructor.prototype && r.call(p.constructor.prototype, "isPrototypeOf");
        if (p.constructor && !d && !m)
          return !1;
        var g;
        for (g in p)
          ;
        return typeof g > "u" || r.call(p, g);
      }, "isPlainObject3"), l = /* @__PURE__ */ s(function(p, d) {
        n && d.name === "__proto__" ? n(p, d.name, {
          enumerable: !0,
          configurable: !0,
          value: d.newValue,
          writable: !0
        }) : p[d.name] = d.newValue;
      }, "setProperty2"), c = /* @__PURE__ */ s(function(p, d) {
        if (d === "__proto__")
          if (r.call(p, d)) {
            if (a)
              return a(p, d).value;
          } else return;
        return p[d];
      }, "getProperty2");
      t.exports = /* @__PURE__ */ s(function h() {
        var p, d, m, g, D, v, y = arguments[0], C = 1, S = arguments.length, T = !1;
        for (typeof y == "boolean" && (T = y, y = arguments[1] || {}, C = 2), (y == null || typeof y != "object" && typeof y != "function") &&
        (y = {}); C < S; ++C)
          if (p = arguments[C], p != null)
            for (d in p)
              m = c(y, d), g = c(p, d), y !== g && (T && g && (o(g) || (D = u(g))) ? (D ? (D = !1, v = m && u(m) ? m : []) : v = m && o(m) ?
              m : {}, l(y, { name: d, newValue: h(T, v, g) })) : typeof g < "u" && l(y, { name: d, newValue: g }));
        return y;
      }, "extend2");
    }
  });
  s(rr, "stringifyPosition");
  s($p, "point");
  s(mE, "position2");
  s(gE, "index");
  Te = class extends Error {
    static {
      s(this, "VFileMessage");
    }
    /**
     * Create a message for `reason`.
     *
     * > 🪦 **Note**: also has obsolete signatures.
     *
     * @overload
     * @param {string} reason
     * @param {Options | null | undefined} [options]
     * @returns
     *
     * @overload
     * @param {string} reason
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @overload
     * @param {string} reason
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @overload
     * @param {string} reason
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {string | null | undefined} [origin]
     * @returns
     *
     * @param {Error | VFileMessage | string} causeOrReason
     *   Reason for message, should use markdown.
     * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
     *   Configuration (optional).
     * @param {string | null | undefined} [origin]
     *   Place in code where the message originates (example:
     *   `'my-package:my-rule'` or `'my-rule'`).
     * @returns
     *   Instance of `VFileMessage`.
     */
    // eslint-disable-next-line complexity
    constructor(e, t, r) {
      super(), typeof t == "string" && (r = t, t = void 0);
      let i = "", n = {}, a = !1;
      if (t && ("line" in t && "column" in t ? n = { place: t } : "start" in t && "end" in t ? n = { place: t } : "type" in t ? n = {
        ancestors: [t],
        place: t.position
      } : n = { ...t }), typeof e == "string" ? i = e : !n.cause && e && (a = !0, i = e.message, n.cause = e), !n.ruleId && !n.source && typeof r ==
      "string") {
        let o = r.indexOf(":");
        o === -1 ? n.ruleId = r : (n.source = r.slice(0, o), n.ruleId = r.slice(o + 1));
      }
      if (!n.place && n.ancestors && n.ancestors) {
        let o = n.ancestors[n.ancestors.length - 1];
        o && (n.place = o.position);
      }
      let u = n.place && "start" in n.place ? n.place.start : n.place;
      this.ancestors = n.ancestors || void 0, this.cause = n.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.
      file, this.message = i, this.line = u ? u.line : void 0, this.name = rr(n.place) || "1:1", this.place = n.place || void 0, this.reason =
      this.message, this.ruleId = n.ruleId || void 0, this.source = n.source || void 0, this.stack = a && n.cause && typeof n.cause.stack ==
      "string" ? n.cause.stack : "", this.actual, this.expected, this.note, this.url;
    }
  };
  Te.prototype.file = "";
  Te.prototype.name = "";
  Te.prototype.reason = "";
  Te.prototype.message = "";
  Te.prototype.stack = "";
  Te.prototype.column = void 0;
  Te.prototype.line = void 0;
  Te.prototype.ancestors = void 0;
  Te.prototype.cause = void 0;
  Te.prototype.fatal = void 0;
  Te.prototype.place = void 0;
  Te.prototype.ruleId = void 0;
  Te.prototype.source = void 0;
  s(DE, "isUrl");
  Fp = /** @type {const} */
  [
    "history",
    "path",
    "basename",
    "stem",
    "extname",
    "dirname"
  ], mb = class {
    static {
      s(this, "VFile");
    }
    /**
     * Create a new virtual file.
     *
     * `options` is treated as:
     *
     * *   `string` or `Uint8Array` — `{value: options}`
     * *   `URL` — `{path: options}`
     * *   `VFile` — shallow copies its data over to the new file
     * *   `object` — all fields are shallow copied over to the new file
     *
     * Path related fields are set in the following order (least specific to
     * most specific): `history`, `path`, `basename`, `stem`, `extname`,
     * `dirname`.
     *
     * You cannot set `dirname` or `extname` without setting either `history`,
     * `path`, `basename`, or `stem` too.
     *
     * @param {Compatible | null | undefined} [value]
     *   File value.
     * @returns
     *   New instance.
     */
    constructor(e) {
      let t;
      e ? DE(e) ? t = { path: e } : typeof e == "string" || Z4(e) ? t = { value: e } : t = e : t = {}, this.cwd = K4.cwd(), this.data = {}, this.
      history = [], this.messages = [], this.value, this.map, this.result, this.stored;
      let r = -1;
      for (; ++r < Fp.length; ) {
        let n = Fp[r];
        n in t && t[n] !== void 0 && t[n] !== null && (this[n] = n === "history" ? [...t[n]] : t[n]);
      }
      let i;
      for (i in t)
        Fp.includes(i) || (this[i] = t[i]);
    }
    /**
     * Get the basename (including extname) (example: `'index.min.js'`).
     *
     * @returns {string | undefined}
     *   Basename.
     */
    get basename() {
      return typeof this.path == "string" ? Ir.basename(this.path) : void 0;
    }
    /**
     * Set basename (including extname) (`'index.min.js'`).
     *
     * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
     * on windows).
     * Cannot be nullified (use `file.path = file.dirname` instead).
     *
     * @param {string} basename
     *   Basename.
     * @returns {undefined}
     *   Nothing.
     */
    set basename(e) {
      _p(e, "basename"), Sp(e, "basename"), this.path = Ir.join(this.dirname || "", e);
    }
    /**
     * Get the parent path (example: `'~'`).
     *
     * @returns {string | undefined}
     *   Dirname.
     */
    get dirname() {
      return typeof this.path == "string" ? Ir.dirname(this.path) : void 0;
    }
    /**
     * Set the parent path (example: `'~'`).
     *
     * Cannot be set if there’s no `path` yet.
     *
     * @param {string | undefined} dirname
     *   Dirname.
     * @returns {undefined}
     *   Nothing.
     */
    set dirname(e) {
      yE(this.basename, "dirname"), this.path = Ir.join(e || "", this.basename);
    }
    /**
     * Get the extname (including dot) (example: `'.js'`).
     *
     * @returns {string | undefined}
     *   Extname.
     */
    get extname() {
      return typeof this.path == "string" ? Ir.extname(this.path) : void 0;
    }
    /**
     * Set the extname (including dot) (example: `'.js'`).
     *
     * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
     * on windows).
     * Cannot be set if there’s no `path` yet.
     *
     * @param {string | undefined} extname
     *   Extname.
     * @returns {undefined}
     *   Nothing.
     */
    set extname(e) {
      if (Sp(e, "extname"), yE(this.dirname, "extname"), e) {
        if (e.codePointAt(0) !== 46)
          throw new Error("`extname` must start with `.`");
        if (e.includes(".", 1))
          throw new Error("`extname` cannot contain multiple dots");
      }
      this.path = Ir.join(this.dirname, this.stem + (e || ""));
    }
    /**
     * Get the full path (example: `'~/index.min.js'`).
     *
     * @returns {string}
     *   Path.
     */
    get path() {
      return this.history[this.history.length - 1];
    }
    /**
     * Set the full path (example: `'~/index.min.js'`).
     *
     * Cannot be nullified.
     * You can set a file URL (a `URL` object with a `file:` protocol) which will
     * be turned into a path with `url.fileURLToPath`.
     *
     * @param {URL | string} path
     *   Path.
     * @returns {undefined}
     *   Nothing.
     */
    set path(e) {
      DE(e) && (e = Q4(e)), _p(e, "path"), this.path !== e && this.history.push(e);
    }
    /**
     * Get the stem (basename w/o extname) (example: `'index.min'`).
     *
     * @returns {string | undefined}
     *   Stem.
     */
    get stem() {
      return typeof this.path == "string" ? Ir.basename(this.path, this.extname) : void 0;
    }
    /**
     * Set the stem (basename w/o extname) (example: `'index.min'`).
     *
     * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
     * on windows).
     * Cannot be nullified (use `file.path = file.dirname` instead).
     *
     * @param {string} stem
     *   Stem.
     * @returns {undefined}
     *   Nothing.
     */
    set stem(e) {
      _p(e, "stem"), Sp(e, "stem"), this.path = Ir.join(this.dirname || "", e + (this.extname || ""));
    }
    // Normal prototypal methods.
    /**
     * Create a fatal message for `reason` associated with the file.
     *
     * The `fatal` field of the message is set to `true` (error; file not usable)
     * and the `file` field is set to the current file path.
     * The message is added to the `messages` field on `file`.
     *
     * > 🪦 **Note**: also has obsolete signatures.
     *
     * @overload
     * @param {string} reason
     * @param {MessageOptions | null | undefined} [options]
     * @returns {never}
     *
     * @overload
     * @param {string} reason
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @overload
     * @param {string} reason
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @overload
     * @param {string} reason
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {string | null | undefined} [origin]
     * @returns {never}
     *
     * @param {Error | VFileMessage | string} causeOrReason
     *   Reason for message, should use markdown.
     * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
     *   Configuration (optional).
     * @param {string | null | undefined} [origin]
     *   Place in code where the message originates (example:
     *   `'my-package:my-rule'` or `'my-rule'`).
     * @returns {never}
     *   Never.
     * @throws {VFileMessage}
     *   Message.
     */
    fail(e, t, r) {
      let i = this.message(e, t, r);
      throw i.fatal = !0, i;
    }
    /**
     * Create an info message for `reason` associated with the file.
     *
     * The `fatal` field of the message is set to `undefined` (info; change
     * likely not needed) and the `file` field is set to the current file path.
     * The message is added to the `messages` field on `file`.
     *
     * > 🪦 **Note**: also has obsolete signatures.
     *
     * @overload
     * @param {string} reason
     * @param {MessageOptions | null | undefined} [options]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @param {Error | VFileMessage | string} causeOrReason
     *   Reason for message, should use markdown.
     * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
     *   Configuration (optional).
     * @param {string | null | undefined} [origin]
     *   Place in code where the message originates (example:
     *   `'my-package:my-rule'` or `'my-rule'`).
     * @returns {VFileMessage}
     *   Message.
     */
    info(e, t, r) {
      let i = this.message(e, t, r);
      return i.fatal = void 0, i;
    }
    /**
     * Create a message for `reason` associated with the file.
     *
     * The `fatal` field of the message is set to `false` (warning; change may be
     * needed) and the `file` field is set to the current file path.
     * The message is added to the `messages` field on `file`.
     *
     * > 🪦 **Note**: also has obsolete signatures.
     *
     * @overload
     * @param {string} reason
     * @param {MessageOptions | null | undefined} [options]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {string} reason
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Node | NodeLike | null | undefined} parent
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {Point | Position | null | undefined} place
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @overload
     * @param {Error | VFileMessage} cause
     * @param {string | null | undefined} [origin]
     * @returns {VFileMessage}
     *
     * @param {Error | VFileMessage | string} causeOrReason
     *   Reason for message, should use markdown.
     * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
     *   Configuration (optional).
     * @param {string | null | undefined} [origin]
     *   Place in code where the message originates (example:
     *   `'my-package:my-rule'` or `'my-rule'`).
     * @returns {VFileMessage}
     *   Message.
     */
    message(e, t, r) {
      let i = new Te(
        // @ts-expect-error: the overloads are fine.
        e,
        t,
        r
      );
      return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
    }
    /**
     * Serialize the file.
     *
     * > **Note**: which encodings are supported depends on the engine.
     * > For info on Node.js, see:
     * > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.
     *
     * @param {string | null | undefined} [encoding='utf8']
     *   Character encoding to understand `value` as when it’s a `Uint8Array`
     *   (default: `'utf-8'`).
     * @returns {string}
     *   Serialized file.
     */
    toString(e) {
      return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
    }
  };
  s(Sp, "assertPart");
  s(_p, "assertNonEmpty");
  s(yE, "assertPath");
  s(Z4, "isUint8Array");
  e5 = [
    "md",
    "markdown",
    "mdown",
    "mkdn",
    "mkd",
    "mdwn",
    "mkdown",
    "ron"
  ], t5 = e5, r5 = t5.map(function(e) {
    return "." + e;
  });
  s(gb, "resolveFileAndOptions");
  s(i5, "looksLikeAVFile");
  s(n5, "mdxExpressionFromMarkdown");
  s(s5, "mdxExpressionToMarkdown");
  s(a5, "enterMdxFlowExpression");
  s(u5, "enterMdxTextExpression");
  s(xE, "exitMdxExpression");
  s(EE, "exitMdxExpressionData");
  s(bE, "handleMdxExpression");
  s(vE, "ccount");
  o5 = [
    "AElig",
    "AMP",
    "Aacute",
    "Acirc",
    "Agrave",
    "Aring",
    "Atilde",
    "Auml",
    "COPY",
    "Ccedil",
    "ETH",
    "Eacute",
    "Ecirc",
    "Egrave",
    "Euml",
    "GT",
    "Iacute",
    "Icirc",
    "Igrave",
    "Iuml",
    "LT",
    "Ntilde",
    "Oacute",
    "Ocirc",
    "Ograve",
    "Oslash",
    "Otilde",
    "Ouml",
    "QUOT",
    "REG",
    "THORN",
    "Uacute",
    "Ucirc",
    "Ugrave",
    "Uuml",
    "Yacute",
    "aacute",
    "acirc",
    "acute",
    "aelig",
    "agrave",
    "amp",
    "aring",
    "atilde",
    "auml",
    "brvbar",
    "ccedil",
    "cedil",
    "cent",
    "copy",
    "curren",
    "deg",
    "divide",
    "eacute",
    "ecirc",
    "egrave",
    "eth",
    "euml",
    "frac12",
    "frac14",
    "frac34",
    "gt",
    "iacute",
    "icirc",
    "iexcl",
    "igrave",
    "iquest",
    "iuml",
    "laquo",
    "lt",
    "macr",
    "micro",
    "middot",
    "nbsp",
    "not",
    "ntilde",
    "oacute",
    "ocirc",
    "ograve",
    "ordf",
    "ordm",
    "oslash",
    "otilde",
    "ouml",
    "para",
    "plusmn",
    "pound",
    "quot",
    "raquo",
    "reg",
    "sect",
    "shy",
    "sup1",
    "sup2",
    "sup3",
    "szlig",
    "thorn",
    "times",
    "uacute",
    "ucirc",
    "ugrave",
    "uml",
    "uuml",
    "yacute",
    "yen",
    "yuml"
  ], CE = {
    0: "\uFFFD",
    128: "\u20AC",
    130: "\u201A",
    131: "\u0192",
    132: "\u201E",
    133: "\u2026",
    134: "\u2020",
    135: "\u2021",
    136: "\u02C6",
    137: "\u2030",
    138: "\u0160",
    139: "\u2039",
    140: "\u0152",
    142: "\u017D",
    145: "\u2018",
    146: "\u2019",
    147: "\u201C",
    148: "\u201D",
    149: "\u2022",
    150: "\u2013",
    151: "\u2014",
    152: "\u02DC",
    153: "\u2122",
    154: "\u0161",
    155: "\u203A",
    156: "\u0153",
    158: "\u017E",
    159: "\u0178"
  };
  s(Db, "isDecimal");
  s(l5, "isHexadecimal");
  s(c5, "isAlphabetical");
  s(wE, "isAlphanumerical");
  AE = {
    AElig: "\xC6",
    AMP: "&",
    Aacute: "\xC1",
    Abreve: "\u0102",
    Acirc: "\xC2",
    Acy: "\u0410",
    Afr: "\u{1D504}",
    Agrave: "\xC0",
    Alpha: "\u0391",
    Amacr: "\u0100",
    And: "\u2A53",
    Aogon: "\u0104",
    Aopf: "\u{1D538}",
    ApplyFunction: "\u2061",
    Aring: "\xC5",
    Ascr: "\u{1D49C}",
    Assign: "\u2254",
    Atilde: "\xC3",
    Auml: "\xC4",
    Backslash: "\u2216",
    Barv: "\u2AE7",
    Barwed: "\u2306",
    Bcy: "\u0411",
    Because: "\u2235",
    Bernoullis: "\u212C",
    Beta: "\u0392",
    Bfr: "\u{1D505}",
    Bopf: "\u{1D539}",
    Breve: "\u02D8",
    Bscr: "\u212C",
    Bumpeq: "\u224E",
    CHcy: "\u0427",
    COPY: "\xA9",
    Cacute: "\u0106",
    Cap: "\u22D2",
    CapitalDifferentialD: "\u2145",
    Cayleys: "\u212D",
    Ccaron: "\u010C",
    Ccedil: "\xC7",
    Ccirc: "\u0108",
    Cconint: "\u2230",
    Cdot: "\u010A",
    Cedilla: "\xB8",
    CenterDot: "\xB7",
    Cfr: "\u212D",
    Chi: "\u03A7",
    CircleDot: "\u2299",
    CircleMinus: "\u2296",
    CirclePlus: "\u2295",
    CircleTimes: "\u2297",
    ClockwiseContourIntegral: "\u2232",
    CloseCurlyDoubleQuote: "\u201D",
    CloseCurlyQuote: "\u2019",
    Colon: "\u2237",
    Colone: "\u2A74",
    Congruent: "\u2261",
    Conint: "\u222F",
    ContourIntegral: "\u222E",
    Copf: "\u2102",
    Coproduct: "\u2210",
    CounterClockwiseContourIntegral: "\u2233",
    Cross: "\u2A2F",
    Cscr: "\u{1D49E}",
    Cup: "\u22D3",
    CupCap: "\u224D",
    DD: "\u2145",
    DDotrahd: "\u2911",
    DJcy: "\u0402",
    DScy: "\u0405",
    DZcy: "\u040F",
    Dagger: "\u2021",
    Darr: "\u21A1",
    Dashv: "\u2AE4",
    Dcaron: "\u010E",
    Dcy: "\u0414",
    Del: "\u2207",
    Delta: "\u0394",
    Dfr: "\u{1D507}",
    DiacriticalAcute: "\xB4",
    DiacriticalDot: "\u02D9",
    DiacriticalDoubleAcute: "\u02DD",
    DiacriticalGrave: "`",
    DiacriticalTilde: "\u02DC",
    Diamond: "\u22C4",
    DifferentialD: "\u2146",
    Dopf: "\u{1D53B}",
    Dot: "\xA8",
    DotDot: "\u20DC",
    DotEqual: "\u2250",
    DoubleContourIntegral: "\u222F",
    DoubleDot: "\xA8",
    DoubleDownArrow: "\u21D3",
    DoubleLeftArrow: "\u21D0",
    DoubleLeftRightArrow: "\u21D4",
    DoubleLeftTee: "\u2AE4",
    DoubleLongLeftArrow: "\u27F8",
    DoubleLongLeftRightArrow: "\u27FA",
    DoubleLongRightArrow: "\u27F9",
    DoubleRightArrow: "\u21D2",
    DoubleRightTee: "\u22A8",
    DoubleUpArrow: "\u21D1",
    DoubleUpDownArrow: "\u21D5",
    DoubleVerticalBar: "\u2225",
    DownArrow: "\u2193",
    DownArrowBar: "\u2913",
    DownArrowUpArrow: "\u21F5",
    DownBreve: "\u0311",
    DownLeftRightVector: "\u2950",
    DownLeftTeeVector: "\u295E",
    DownLeftVector: "\u21BD",
    DownLeftVectorBar: "\u2956",
    DownRightTeeVector: "\u295F",
    DownRightVector: "\u21C1",
    DownRightVectorBar: "\u2957",
    DownTee: "\u22A4",
    DownTeeArrow: "\u21A7",
    Downarrow: "\u21D3",
    Dscr: "\u{1D49F}",
    Dstrok: "\u0110",
    ENG: "\u014A",
    ETH: "\xD0",
    Eacute: "\xC9",
    Ecaron: "\u011A",
    Ecirc: "\xCA",
    Ecy: "\u042D",
    Edot: "\u0116",
    Efr: "\u{1D508}",
    Egrave: "\xC8",
    Element: "\u2208",
    Emacr: "\u0112",
    EmptySmallSquare: "\u25FB",
    EmptyVerySmallSquare: "\u25AB",
    Eogon: "\u0118",
    Eopf: "\u{1D53C}",
    Epsilon: "\u0395",
    Equal: "\u2A75",
    EqualTilde: "\u2242",
    Equilibrium: "\u21CC",
    Escr: "\u2130",
    Esim: "\u2A73",
    Eta: "\u0397",
    Euml: "\xCB",
    Exists: "\u2203",
    ExponentialE: "\u2147",
    Fcy: "\u0424",
    Ffr: "\u{1D509}",
    FilledSmallSquare: "\u25FC",
    FilledVerySmallSquare: "\u25AA",
    Fopf: "\u{1D53D}",
    ForAll: "\u2200",
    Fouriertrf: "\u2131",
    Fscr: "\u2131",
    GJcy: "\u0403",
    GT: ">",
    Gamma: "\u0393",
    Gammad: "\u03DC",
    Gbreve: "\u011E",
    Gcedil: "\u0122",
    Gcirc: "\u011C",
    Gcy: "\u0413",
    Gdot: "\u0120",
    Gfr: "\u{1D50A}",
    Gg: "\u22D9",
    Gopf: "\u{1D53E}",
    GreaterEqual: "\u2265",
    GreaterEqualLess: "\u22DB",
    GreaterFullEqual: "\u2267",
    GreaterGreater: "\u2AA2",
    GreaterLess: "\u2277",
    GreaterSlantEqual: "\u2A7E",
    GreaterTilde: "\u2273",
    Gscr: "\u{1D4A2}",
    Gt: "\u226B",
    HARDcy: "\u042A",
    Hacek: "\u02C7",
    Hat: "^",
    Hcirc: "\u0124",
    Hfr: "\u210C",
    HilbertSpace: "\u210B",
    Hopf: "\u210D",
    HorizontalLine: "\u2500",
    Hscr: "\u210B",
    Hstrok: "\u0126",
    HumpDownHump: "\u224E",
    HumpEqual: "\u224F",
    IEcy: "\u0415",
    IJlig: "\u0132",
    IOcy: "\u0401",
    Iacute: "\xCD",
    Icirc: "\xCE",
    Icy: "\u0418",
    Idot: "\u0130",
    Ifr: "\u2111",
    Igrave: "\xCC",
    Im: "\u2111",
    Imacr: "\u012A",
    ImaginaryI: "\u2148",
    Implies: "\u21D2",
    Int: "\u222C",
    Integral: "\u222B",
    Intersection: "\u22C2",
    InvisibleComma: "\u2063",
    InvisibleTimes: "\u2062",
    Iogon: "\u012E",
    Iopf: "\u{1D540}",
    Iota: "\u0399",
    Iscr: "\u2110",
    Itilde: "\u0128",
    Iukcy: "\u0406",
    Iuml: "\xCF",
    Jcirc: "\u0134",
    Jcy: "\u0419",
    Jfr: "\u{1D50D}",
    Jopf: "\u{1D541}",
    Jscr: "\u{1D4A5}",
    Jsercy: "\u0408",
    Jukcy: "\u0404",
    KHcy: "\u0425",
    KJcy: "\u040C",
    Kappa: "\u039A",
    Kcedil: "\u0136",
    Kcy: "\u041A",
    Kfr: "\u{1D50E}",
    Kopf: "\u{1D542}",
    Kscr: "\u{1D4A6}",
    LJcy: "\u0409",
    LT: "<",
    Lacute: "\u0139",
    Lambda: "\u039B",
    Lang: "\u27EA",
    Laplacetrf: "\u2112",
    Larr: "\u219E",
    Lcaron: "\u013D",
    Lcedil: "\u013B",
    Lcy: "\u041B",
    LeftAngleBracket: "\u27E8",
    LeftArrow: "\u2190",
    LeftArrowBar: "\u21E4",
    LeftArrowRightArrow: "\u21C6",
    LeftCeiling: "\u2308",
    LeftDoubleBracket: "\u27E6",
    LeftDownTeeVector: "\u2961",
    LeftDownVector: "\u21C3",
    LeftDownVectorBar: "\u2959",
    LeftFloor: "\u230A",
    LeftRightArrow: "\u2194",
    LeftRightVector: "\u294E",
    LeftTee: "\u22A3",
    LeftTeeArrow: "\u21A4",
    LeftTeeVector: "\u295A",
    LeftTriangle: "\u22B2",
    LeftTriangleBar: "\u29CF",
    LeftTriangleEqual: "\u22B4",
    LeftUpDownVector: "\u2951",
    LeftUpTeeVector: "\u2960",
    LeftUpVector: "\u21BF",
    LeftUpVectorBar: "\u2958",
    LeftVector: "\u21BC",
    LeftVectorBar: "\u2952",
    Leftarrow: "\u21D0",
    Leftrightarrow: "\u21D4",
    LessEqualGreater: "\u22DA",
    LessFullEqual: "\u2266",
    LessGreater: "\u2276",
    LessLess: "\u2AA1",
    LessSlantEqual: "\u2A7D",
    LessTilde: "\u2272",
    Lfr: "\u{1D50F}",
    Ll: "\u22D8",
    Lleftarrow: "\u21DA",
    Lmidot: "\u013F",
    LongLeftArrow: "\u27F5",
    LongLeftRightArrow: "\u27F7",
    LongRightArrow: "\u27F6",
    Longleftarrow: "\u27F8",
    Longleftrightarrow: "\u27FA",
    Longrightarrow: "\u27F9",
    Lopf: "\u{1D543}",
    LowerLeftArrow: "\u2199",
    LowerRightArrow: "\u2198",
    Lscr: "\u2112",
    Lsh: "\u21B0",
    Lstrok: "\u0141",
    Lt: "\u226A",
    Map: "\u2905",
    Mcy: "\u041C",
    MediumSpace: "\u205F",
    Mellintrf: "\u2133",
    Mfr: "\u{1D510}",
    MinusPlus: "\u2213",
    Mopf: "\u{1D544}",
    Mscr: "\u2133",
    Mu: "\u039C",
    NJcy: "\u040A",
    Nacute: "\u0143",
    Ncaron: "\u0147",
    Ncedil: "\u0145",
    Ncy: "\u041D",
    NegativeMediumSpace: "\u200B",
    NegativeThickSpace: "\u200B",
    NegativeThinSpace: "\u200B",
    NegativeVeryThinSpace: "\u200B",
    NestedGreaterGreater: "\u226B",
    NestedLessLess: "\u226A",
    NewLine: `
`,
    Nfr: "\u{1D511}",
    NoBreak: "\u2060",
    NonBreakingSpace: "\xA0",
    Nopf: "\u2115",
    Not: "\u2AEC",
    NotCongruent: "\u2262",
    NotCupCap: "\u226D",
    NotDoubleVerticalBar: "\u2226",
    NotElement: "\u2209",
    NotEqual: "\u2260",
    NotEqualTilde: "\u2242\u0338",
    NotExists: "\u2204",
    NotGreater: "\u226F",
    NotGreaterEqual: "\u2271",
    NotGreaterFullEqual: "\u2267\u0338",
    NotGreaterGreater: "\u226B\u0338",
    NotGreaterLess: "\u2279",
    NotGreaterSlantEqual: "\u2A7E\u0338",
    NotGreaterTilde: "\u2275",
    NotHumpDownHump: "\u224E\u0338",
    NotHumpEqual: "\u224F\u0338",
    NotLeftTriangle: "\u22EA",
    NotLeftTriangleBar: "\u29CF\u0338",
    NotLeftTriangleEqual: "\u22EC",
    NotLess: "\u226E",
    NotLessEqual: "\u2270",
    NotLessGreater: "\u2278",
    NotLessLess: "\u226A\u0338",
    NotLessSlantEqual: "\u2A7D\u0338",
    NotLessTilde: "\u2274",
    NotNestedGreaterGreater: "\u2AA2\u0338",
    NotNestedLessLess: "\u2AA1\u0338",
    NotPrecedes: "\u2280",
    NotPrecedesEqual: "\u2AAF\u0338",
    NotPrecedesSlantEqual: "\u22E0",
    NotReverseElement: "\u220C",
    NotRightTriangle: "\u22EB",
    NotRightTriangleBar: "\u29D0\u0338",
    NotRightTriangleEqual: "\u22ED",
    NotSquareSubset: "\u228F\u0338",
    NotSquareSubsetEqual: "\u22E2",
    NotSquareSuperset: "\u2290\u0338",
    NotSquareSupersetEqual: "\u22E3",
    NotSubset: "\u2282\u20D2",
    NotSubsetEqual: "\u2288",
    NotSucceeds: "\u2281",
    NotSucceedsEqual: "\u2AB0\u0338",
    NotSucceedsSlantEqual: "\u22E1",
    NotSucceedsTilde: "\u227F\u0338",
    NotSuperset: "\u2283\u20D2",
    NotSupersetEqual: "\u2289",
    NotTilde: "\u2241",
    NotTildeEqual: "\u2244",
    NotTildeFullEqual: "\u2247",
    NotTildeTilde: "\u2249",
    NotVerticalBar: "\u2224",
    Nscr: "\u{1D4A9}",
    Ntilde: "\xD1",
    Nu: "\u039D",
    OElig: "\u0152",
    Oacute: "\xD3",
    Ocirc: "\xD4",
    Ocy: "\u041E",
    Odblac: "\u0150",
    Ofr: "\u{1D512}",
    Ograve: "\xD2",
    Omacr: "\u014C",
    Omega: "\u03A9",
    Omicron: "\u039F",
    Oopf: "\u{1D546}",
    OpenCurlyDoubleQuote: "\u201C",
    OpenCurlyQuote: "\u2018",
    Or: "\u2A54",
    Oscr: "\u{1D4AA}",
    Oslash: "\xD8",
    Otilde: "\xD5",
    Otimes: "\u2A37",
    Ouml: "\xD6",
    OverBar: "\u203E",
    OverBrace: "\u23DE",
    OverBracket: "\u23B4",
    OverParenthesis: "\u23DC",
    PartialD: "\u2202",
    Pcy: "\u041F",
    Pfr: "\u{1D513}",
    Phi: "\u03A6",
    Pi: "\u03A0",
    PlusMinus: "\xB1",
    Poincareplane: "\u210C",
    Popf: "\u2119",
    Pr: "\u2ABB",
    Precedes: "\u227A",
    PrecedesEqual: "\u2AAF",
    PrecedesSlantEqual: "\u227C",
    PrecedesTilde: "\u227E",
    Prime: "\u2033",
    Product: "\u220F",
    Proportion: "\u2237",
    Proportional: "\u221D",
    Pscr: "\u{1D4AB}",
    Psi: "\u03A8",
    QUOT: '"',
    Qfr: "\u{1D514}",
    Qopf: "\u211A",
    Qscr: "\u{1D4AC}",
    RBarr: "\u2910",
    REG: "\xAE",
    Racute: "\u0154",
    Rang: "\u27EB",
    Rarr: "\u21A0",
    Rarrtl: "\u2916",
    Rcaron: "\u0158",
    Rcedil: "\u0156",
    Rcy: "\u0420",
    Re: "\u211C",
    ReverseElement: "\u220B",
    ReverseEquilibrium: "\u21CB",
    ReverseUpEquilibrium: "\u296F",
    Rfr: "\u211C",
    Rho: "\u03A1",
    RightAngleBracket: "\u27E9",
    RightArrow: "\u2192",
    RightArrowBar: "\u21E5",
    RightArrowLeftArrow: "\u21C4",
    RightCeiling: "\u2309",
    RightDoubleBracket: "\u27E7",
    RightDownTeeVector: "\u295D",
    RightDownVector: "\u21C2",
    RightDownVectorBar: "\u2955",
    RightFloor: "\u230B",
    RightTee: "\u22A2",
    RightTeeArrow: "\u21A6",
    RightTeeVector: "\u295B",
    RightTriangle: "\u22B3",
    RightTriangleBar: "\u29D0",
    RightTriangleEqual: "\u22B5",
    RightUpDownVector: "\u294F",
    RightUpTeeVector: "\u295C",
    RightUpVector: "\u21BE",
    RightUpVectorBar: "\u2954",
    RightVector: "\u21C0",
    RightVectorBar: "\u2953",
    Rightarrow: "\u21D2",
    Ropf: "\u211D",
    RoundImplies: "\u2970",
    Rrightarrow: "\u21DB",
    Rscr: "\u211B",
    Rsh: "\u21B1",
    RuleDelayed: "\u29F4",
    SHCHcy: "\u0429",
    SHcy: "\u0428",
    SOFTcy: "\u042C",
    Sacute: "\u015A",
    Sc: "\u2ABC",
    Scaron: "\u0160",
    Scedil: "\u015E",
    Scirc: "\u015C",
    Scy: "\u0421",
    Sfr: "\u{1D516}",
    ShortDownArrow: "\u2193",
    ShortLeftArrow: "\u2190",
    ShortRightArrow: "\u2192",
    ShortUpArrow: "\u2191",
    Sigma: "\u03A3",
    SmallCircle: "\u2218",
    Sopf: "\u{1D54A}",
    Sqrt: "\u221A",
    Square: "\u25A1",
    SquareIntersection: "\u2293",
    SquareSubset: "\u228F",
    SquareSubsetEqual: "\u2291",
    SquareSuperset: "\u2290",
    SquareSupersetEqual: "\u2292",
    SquareUnion: "\u2294",
    Sscr: "\u{1D4AE}",
    Star: "\u22C6",
    Sub: "\u22D0",
    Subset: "\u22D0",
    SubsetEqual: "\u2286",
    Succeeds: "\u227B",
    SucceedsEqual: "\u2AB0",
    SucceedsSlantEqual: "\u227D",
    SucceedsTilde: "\u227F",
    SuchThat: "\u220B",
    Sum: "\u2211",
    Sup: "\u22D1",
    Superset: "\u2283",
    SupersetEqual: "\u2287",
    Supset: "\u22D1",
    THORN: "\xDE",
    TRADE: "\u2122",
    TSHcy: "\u040B",
    TScy: "\u0426",
    Tab: "	",
    Tau: "\u03A4",
    Tcaron: "\u0164",
    Tcedil: "\u0162",
    Tcy: "\u0422",
    Tfr: "\u{1D517}",
    Therefore: "\u2234",
    Theta: "\u0398",
    ThickSpace: "\u205F\u200A",
    ThinSpace: "\u2009",
    Tilde: "\u223C",
    TildeEqual: "\u2243",
    TildeFullEqual: "\u2245",
    TildeTilde: "\u2248",
    Topf: "\u{1D54B}",
    TripleDot: "\u20DB",
    Tscr: "\u{1D4AF}",
    Tstrok: "\u0166",
    Uacute: "\xDA",
    Uarr: "\u219F",
    Uarrocir: "\u2949",
    Ubrcy: "\u040E",
    Ubreve: "\u016C",
    Ucirc: "\xDB",
    Ucy: "\u0423",
    Udblac: "\u0170",
    Ufr: "\u{1D518}",
    Ugrave: "\xD9",
    Umacr: "\u016A",
    UnderBar: "_",
    UnderBrace: "\u23DF",
    UnderBracket: "\u23B5",
    UnderParenthesis: "\u23DD",
    Union: "\u22C3",
    UnionPlus: "\u228E",
    Uogon: "\u0172",
    Uopf: "\u{1D54C}",
    UpArrow: "\u2191",
    UpArrowBar: "\u2912",
    UpArrowDownArrow: "\u21C5",
    UpDownArrow: "\u2195",
    UpEquilibrium: "\u296E",
    UpTee: "\u22A5",
    UpTeeArrow: "\u21A5",
    Uparrow: "\u21D1",
    Updownarrow: "\u21D5",
    UpperLeftArrow: "\u2196",
    UpperRightArrow: "\u2197",
    Upsi: "\u03D2",
    Upsilon: "\u03A5",
    Uring: "\u016E",
    Uscr: "\u{1D4B0}",
    Utilde: "\u0168",
    Uuml: "\xDC",
    VDash: "\u22AB",
    Vbar: "\u2AEB",
    Vcy: "\u0412",
    Vdash: "\u22A9",
    Vdashl: "\u2AE6",
    Vee: "\u22C1",
    Verbar: "\u2016",
    Vert: "\u2016",
    VerticalBar: "\u2223",
    VerticalLine: "|",
    VerticalSeparator: "\u2758",
    VerticalTilde: "\u2240",
    VeryThinSpace: "\u200A",
    Vfr: "\u{1D519}",
    Vopf: "\u{1D54D}",
    Vscr: "\u{1D4B1}",
    Vvdash: "\u22AA",
    Wcirc: "\u0174",
    Wedge: "\u22C0",
    Wfr: "\u{1D51A}",
    Wopf: "\u{1D54E}",
    Wscr: "\u{1D4B2}",
    Xfr: "\u{1D51B}",
    Xi: "\u039E",
    Xopf: "\u{1D54F}",
    Xscr: "\u{1D4B3}",
    YAcy: "\u042F",
    YIcy: "\u0407",
    YUcy: "\u042E",
    Yacute: "\xDD",
    Ycirc: "\u0176",
    Ycy: "\u042B",
    Yfr: "\u{1D51C}",
    Yopf: "\u{1D550}",
    Yscr: "\u{1D4B4}",
    Yuml: "\u0178",
    ZHcy: "\u0416",
    Zacute: "\u0179",
    Zcaron: "\u017D",
    Zcy: "\u0417",
    Zdot: "\u017B",
    ZeroWidthSpace: "\u200B",
    Zeta: "\u0396",
    Zfr: "\u2128",
    Zopf: "\u2124",
    Zscr: "\u{1D4B5}",
    aacute: "\xE1",
    abreve: "\u0103",
    ac: "\u223E",
    acE: "\u223E\u0333",
    acd: "\u223F",
    acirc: "\xE2",
    acute: "\xB4",
    acy: "\u0430",
    aelig: "\xE6",
    af: "\u2061",
    afr: "\u{1D51E}",
    agrave: "\xE0",
    alefsym: "\u2135",
    aleph: "\u2135",
    alpha: "\u03B1",
    amacr: "\u0101",
    amalg: "\u2A3F",
    amp: "&",
    and: "\u2227",
    andand: "\u2A55",
    andd: "\u2A5C",
    andslope: "\u2A58",
    andv: "\u2A5A",
    ang: "\u2220",
    ange: "\u29A4",
    angle: "\u2220",
    angmsd: "\u2221",
    angmsdaa: "\u29A8",
    angmsdab: "\u29A9",
    angmsdac: "\u29AA",
    angmsdad: "\u29AB",
    angmsdae: "\u29AC",
    angmsdaf: "\u29AD",
    angmsdag: "\u29AE",
    angmsdah: "\u29AF",
    angrt: "\u221F",
    angrtvb: "\u22BE",
    angrtvbd: "\u299D",
    angsph: "\u2222",
    angst: "\xC5",
    angzarr: "\u237C",
    aogon: "\u0105",
    aopf: "\u{1D552}",
    ap: "\u2248",
    apE: "\u2A70",
    apacir: "\u2A6F",
    ape: "\u224A",
    apid: "\u224B",
    apos: "'",
    approx: "\u2248",
    approxeq: "\u224A",
    aring: "\xE5",
    ascr: "\u{1D4B6}",
    ast: "*",
    asymp: "\u2248",
    asympeq: "\u224D",
    atilde: "\xE3",
    auml: "\xE4",
    awconint: "\u2233",
    awint: "\u2A11",
    bNot: "\u2AED",
    backcong: "\u224C",
    backepsilon: "\u03F6",
    backprime: "\u2035",
    backsim: "\u223D",
    backsimeq: "\u22CD",
    barvee: "\u22BD",
    barwed: "\u2305",
    barwedge: "\u2305",
    bbrk: "\u23B5",
    bbrktbrk: "\u23B6",
    bcong: "\u224C",
    bcy: "\u0431",
    bdquo: "\u201E",
    becaus: "\u2235",
    because: "\u2235",
    bemptyv: "\u29B0",
    bepsi: "\u03F6",
    bernou: "\u212C",
    beta: "\u03B2",
    beth: "\u2136",
    between: "\u226C",
    bfr: "\u{1D51F}",
    bigcap: "\u22C2",
    bigcirc: "\u25EF",
    bigcup: "\u22C3",
    bigodot: "\u2A00",
    bigoplus: "\u2A01",
    bigotimes: "\u2A02",
    bigsqcup: "\u2A06",
    bigstar: "\u2605",
    bigtriangledown: "\u25BD",
    bigtriangleup: "\u25B3",
    biguplus: "\u2A04",
    bigvee: "\u22C1",
    bigwedge: "\u22C0",
    bkarow: "\u290D",
    blacklozenge: "\u29EB",
    blacksquare: "\u25AA",
    blacktriangle: "\u25B4",
    blacktriangledown: "\u25BE",
    blacktriangleleft: "\u25C2",
    blacktriangleright: "\u25B8",
    blank: "\u2423",
    blk12: "\u2592",
    blk14: "\u2591",
    blk34: "\u2593",
    block: "\u2588",
    bne: "=\u20E5",
    bnequiv: "\u2261\u20E5",
    bnot: "\u2310",
    bopf: "\u{1D553}",
    bot: "\u22A5",
    bottom: "\u22A5",
    bowtie: "\u22C8",
    boxDL: "\u2557",
    boxDR: "\u2554",
    boxDl: "\u2556",
    boxDr: "\u2553",
    boxH: "\u2550",
    boxHD: "\u2566",
    boxHU: "\u2569",
    boxHd: "\u2564",
    boxHu: "\u2567",
    boxUL: "\u255D",
    boxUR: "\u255A",
    boxUl: "\u255C",
    boxUr: "\u2559",
    boxV: "\u2551",
    boxVH: "\u256C",
    boxVL: "\u2563",
    boxVR: "\u2560",
    boxVh: "\u256B",
    boxVl: "\u2562",
    boxVr: "\u255F",
    boxbox: "\u29C9",
    boxdL: "\u2555",
    boxdR: "\u2552",
    boxdl: "\u2510",
    boxdr: "\u250C",
    boxh: "\u2500",
    boxhD: "\u2565",
    boxhU: "\u2568",
    boxhd: "\u252C",
    boxhu: "\u2534",
    boxminus: "\u229F",
    boxplus: "\u229E",
    boxtimes: "\u22A0",
    boxuL: "\u255B",
    boxuR: "\u2558",
    boxul: "\u2518",
    boxur: "\u2514",
    boxv: "\u2502",
    boxvH: "\u256A",
    boxvL: "\u2561",
    boxvR: "\u255E",
    boxvh: "\u253C",
    boxvl: "\u2524",
    boxvr: "\u251C",
    bprime: "\u2035",
    breve: "\u02D8",
    brvbar: "\xA6",
    bscr: "\u{1D4B7}",
    bsemi: "\u204F",
    bsim: "\u223D",
    bsime: "\u22CD",
    bsol: "\\",
    bsolb: "\u29C5",
    bsolhsub: "\u27C8",
    bull: "\u2022",
    bullet: "\u2022",
    bump: "\u224E",
    bumpE: "\u2AAE",
    bumpe: "\u224F",
    bumpeq: "\u224F",
    cacute: "\u0107",
    cap: "\u2229",
    capand: "\u2A44",
    capbrcup: "\u2A49",
    capcap: "\u2A4B",
    capcup: "\u2A47",
    capdot: "\u2A40",
    caps: "\u2229\uFE00",
    caret: "\u2041",
    caron: "\u02C7",
    ccaps: "\u2A4D",
    ccaron: "\u010D",
    ccedil: "\xE7",
    ccirc: "\u0109",
    ccups: "\u2A4C",
    ccupssm: "\u2A50",
    cdot: "\u010B",
    cedil: "\xB8",
    cemptyv: "\u29B2",
    cent: "\xA2",
    centerdot: "\xB7",
    cfr: "\u{1D520}",
    chcy: "\u0447",
    check: "\u2713",
    checkmark: "\u2713",
    chi: "\u03C7",
    cir: "\u25CB",
    cirE: "\u29C3",
    circ: "\u02C6",
    circeq: "\u2257",
    circlearrowleft: "\u21BA",
    circlearrowright: "\u21BB",
    circledR: "\xAE",
    circledS: "\u24C8",
    circledast: "\u229B",
    circledcirc: "\u229A",
    circleddash: "\u229D",
    cire: "\u2257",
    cirfnint: "\u2A10",
    cirmid: "\u2AEF",
    cirscir: "\u29C2",
    clubs: "\u2663",
    clubsuit: "\u2663",
    colon: ":",
    colone: "\u2254",
    coloneq: "\u2254",
    comma: ",",
    commat: "@",
    comp: "\u2201",
    compfn: "\u2218",
    complement: "\u2201",
    complexes: "\u2102",
    cong: "\u2245",
    congdot: "\u2A6D",
    conint: "\u222E",
    copf: "\u{1D554}",
    coprod: "\u2210",
    copy: "\xA9",
    copysr: "\u2117",
    crarr: "\u21B5",
    cross: "\u2717",
    cscr: "\u{1D4B8}",
    csub: "\u2ACF",
    csube: "\u2AD1",
    csup: "\u2AD0",
    csupe: "\u2AD2",
    ctdot: "\u22EF",
    cudarrl: "\u2938",
    cudarrr: "\u2935",
    cuepr: "\u22DE",
    cuesc: "\u22DF",
    cularr: "\u21B6",
    cularrp: "\u293D",
    cup: "\u222A",
    cupbrcap: "\u2A48",
    cupcap: "\u2A46",
    cupcup: "\u2A4A",
    cupdot: "\u228D",
    cupor: "\u2A45",
    cups: "\u222A\uFE00",
    curarr: "\u21B7",
    curarrm: "\u293C",
    curlyeqprec: "\u22DE",
    curlyeqsucc: "\u22DF",
    curlyvee: "\u22CE",
    curlywedge: "\u22CF",
    curren: "\xA4",
    curvearrowleft: "\u21B6",
    curvearrowright: "\u21B7",
    cuvee: "\u22CE",
    cuwed: "\u22CF",
    cwconint: "\u2232",
    cwint: "\u2231",
    cylcty: "\u232D",
    dArr: "\u21D3",
    dHar: "\u2965",
    dagger: "\u2020",
    daleth: "\u2138",
    darr: "\u2193",
    dash: "\u2010",
    dashv: "\u22A3",
    dbkarow: "\u290F",
    dblac: "\u02DD",
    dcaron: "\u010F",
    dcy: "\u0434",
    dd: "\u2146",
    ddagger: "\u2021",
    ddarr: "\u21CA",
    ddotseq: "\u2A77",
    deg: "\xB0",
    delta: "\u03B4",
    demptyv: "\u29B1",
    dfisht: "\u297F",
    dfr: "\u{1D521}",
    dharl: "\u21C3",
    dharr: "\u21C2",
    diam: "\u22C4",
    diamond: "\u22C4",
    diamondsuit: "\u2666",
    diams: "\u2666",
    die: "\xA8",
    digamma: "\u03DD",
    disin: "\u22F2",
    div: "\xF7",
    divide: "\xF7",
    divideontimes: "\u22C7",
    divonx: "\u22C7",
    djcy: "\u0452",
    dlcorn: "\u231E",
    dlcrop: "\u230D",
    dollar: "$",
    dopf: "\u{1D555}",
    dot: "\u02D9",
    doteq: "\u2250",
    doteqdot: "\u2251",
    dotminus: "\u2238",
    dotplus: "\u2214",
    dotsquare: "\u22A1",
    doublebarwedge: "\u2306",
    downarrow: "\u2193",
    downdownarrows: "\u21CA",
    downharpoonleft: "\u21C3",
    downharpoonright: "\u21C2",
    drbkarow: "\u2910",
    drcorn: "\u231F",
    drcrop: "\u230C",
    dscr: "\u{1D4B9}",
    dscy: "\u0455",
    dsol: "\u29F6",
    dstrok: "\u0111",
    dtdot: "\u22F1",
    dtri: "\u25BF",
    dtrif: "\u25BE",
    duarr: "\u21F5",
    duhar: "\u296F",
    dwangle: "\u29A6",
    dzcy: "\u045F",
    dzigrarr: "\u27FF",
    eDDot: "\u2A77",
    eDot: "\u2251",
    eacute: "\xE9",
    easter: "\u2A6E",
    ecaron: "\u011B",
    ecir: "\u2256",
    ecirc: "\xEA",
    ecolon: "\u2255",
    ecy: "\u044D",
    edot: "\u0117",
    ee: "\u2147",
    efDot: "\u2252",
    efr: "\u{1D522}",
    eg: "\u2A9A",
    egrave: "\xE8",
    egs: "\u2A96",
    egsdot: "\u2A98",
    el: "\u2A99",
    elinters: "\u23E7",
    ell: "\u2113",
    els: "\u2A95",
    elsdot: "\u2A97",
    emacr: "\u0113",
    empty: "\u2205",
    emptyset: "\u2205",
    emptyv: "\u2205",
    emsp13: "\u2004",
    emsp14: "\u2005",
    emsp: "\u2003",
    eng: "\u014B",
    ensp: "\u2002",
    eogon: "\u0119",
    eopf: "\u{1D556}",
    epar: "\u22D5",
    eparsl: "\u29E3",
    eplus: "\u2A71",
    epsi: "\u03B5",
    epsilon: "\u03B5",
    epsiv: "\u03F5",
    eqcirc: "\u2256",
    eqcolon: "\u2255",
    eqsim: "\u2242",
    eqslantgtr: "\u2A96",
    eqslantless: "\u2A95",
    equals: "=",
    equest: "\u225F",
    equiv: "\u2261",
    equivDD: "\u2A78",
    eqvparsl: "\u29E5",
    erDot: "\u2253",
    erarr: "\u2971",
    escr: "\u212F",
    esdot: "\u2250",
    esim: "\u2242",
    eta: "\u03B7",
    eth: "\xF0",
    euml: "\xEB",
    euro: "\u20AC",
    excl: "!",
    exist: "\u2203",
    expectation: "\u2130",
    exponentiale: "\u2147",
    fallingdotseq: "\u2252",
    fcy: "\u0444",
    female: "\u2640",
    ffilig: "\uFB03",
    fflig: "\uFB00",
    ffllig: "\uFB04",
    ffr: "\u{1D523}",
    filig: "\uFB01",
    fjlig: "fj",
    flat: "\u266D",
    fllig: "\uFB02",
    fltns: "\u25B1",
    fnof: "\u0192",
    fopf: "\u{1D557}",
    forall: "\u2200",
    fork: "\u22D4",
    forkv: "\u2AD9",
    fpartint: "\u2A0D",
    frac12: "\xBD",
    frac13: "\u2153",
    frac14: "\xBC",
    frac15: "\u2155",
    frac16: "\u2159",
    frac18: "\u215B",
    frac23: "\u2154",
    frac25: "\u2156",
    frac34: "\xBE",
    frac35: "\u2157",
    frac38: "\u215C",
    frac45: "\u2158",
    frac56: "\u215A",
    frac58: "\u215D",
    frac78: "\u215E",
    frasl: "\u2044",
    frown: "\u2322",
    fscr: "\u{1D4BB}",
    gE: "\u2267",
    gEl: "\u2A8C",
    gacute: "\u01F5",
    gamma: "\u03B3",
    gammad: "\u03DD",
    gap: "\u2A86",
    gbreve: "\u011F",
    gcirc: "\u011D",
    gcy: "\u0433",
    gdot: "\u0121",
    ge: "\u2265",
    gel: "\u22DB",
    geq: "\u2265",
    geqq: "\u2267",
    geqslant: "\u2A7E",
    ges: "\u2A7E",
    gescc: "\u2AA9",
    gesdot: "\u2A80",
    gesdoto: "\u2A82",
    gesdotol: "\u2A84",
    gesl: "\u22DB\uFE00",
    gesles: "\u2A94",
    gfr: "\u{1D524}",
    gg: "\u226B",
    ggg: "\u22D9",
    gimel: "\u2137",
    gjcy: "\u0453",
    gl: "\u2277",
    glE: "\u2A92",
    gla: "\u2AA5",
    glj: "\u2AA4",
    gnE: "\u2269",
    gnap: "\u2A8A",
    gnapprox: "\u2A8A",
    gne: "\u2A88",
    gneq: "\u2A88",
    gneqq: "\u2269",
    gnsim: "\u22E7",
    gopf: "\u{1D558}",
    grave: "`",
    gscr: "\u210A",
    gsim: "\u2273",
    gsime: "\u2A8E",
    gsiml: "\u2A90",
    gt: ">",
    gtcc: "\u2AA7",
    gtcir: "\u2A7A",
    gtdot: "\u22D7",
    gtlPar: "\u2995",
    gtquest: "\u2A7C",
    gtrapprox: "\u2A86",
    gtrarr: "\u2978",
    gtrdot: "\u22D7",
    gtreqless: "\u22DB",
    gtreqqless: "\u2A8C",
    gtrless: "\u2277",
    gtrsim: "\u2273",
    gvertneqq: "\u2269\uFE00",
    gvnE: "\u2269\uFE00",
    hArr: "\u21D4",
    hairsp: "\u200A",
    half: "\xBD",
    hamilt: "\u210B",
    hardcy: "\u044A",
    harr: "\u2194",
    harrcir: "\u2948",
    harrw: "\u21AD",
    hbar: "\u210F",
    hcirc: "\u0125",
    hearts: "\u2665",
    heartsuit: "\u2665",
    hellip: "\u2026",
    hercon: "\u22B9",
    hfr: "\u{1D525}",
    hksearow: "\u2925",
    hkswarow: "\u2926",
    hoarr: "\u21FF",
    homtht: "\u223B",
    hookleftarrow: "\u21A9",
    hookrightarrow: "\u21AA",
    hopf: "\u{1D559}",
    horbar: "\u2015",
    hscr: "\u{1D4BD}",
    hslash: "\u210F",
    hstrok: "\u0127",
    hybull: "\u2043",
    hyphen: "\u2010",
    iacute: "\xED",
    ic: "\u2063",
    icirc: "\xEE",
    icy: "\u0438",
    iecy: "\u0435",
    iexcl: "\xA1",
    iff: "\u21D4",
    ifr: "\u{1D526}",
    igrave: "\xEC",
    ii: "\u2148",
    iiiint: "\u2A0C",
    iiint: "\u222D",
    iinfin: "\u29DC",
    iiota: "\u2129",
    ijlig: "\u0133",
    imacr: "\u012B",
    image: "\u2111",
    imagline: "\u2110",
    imagpart: "\u2111",
    imath: "\u0131",
    imof: "\u22B7",
    imped: "\u01B5",
    in: "\u2208",
    incare: "\u2105",
    infin: "\u221E",
    infintie: "\u29DD",
    inodot: "\u0131",
    int: "\u222B",
    intcal: "\u22BA",
    integers: "\u2124",
    intercal: "\u22BA",
    intlarhk: "\u2A17",
    intprod: "\u2A3C",
    iocy: "\u0451",
    iogon: "\u012F",
    iopf: "\u{1D55A}",
    iota: "\u03B9",
    iprod: "\u2A3C",
    iquest: "\xBF",
    iscr: "\u{1D4BE}",
    isin: "\u2208",
    isinE: "\u22F9",
    isindot: "\u22F5",
    isins: "\u22F4",
    isinsv: "\u22F3",
    isinv: "\u2208",
    it: "\u2062",
    itilde: "\u0129",
    iukcy: "\u0456",
    iuml: "\xEF",
    jcirc: "\u0135",
    jcy: "\u0439",
    jfr: "\u{1D527}",
    jmath: "\u0237",
    jopf: "\u{1D55B}",
    jscr: "\u{1D4BF}",
    jsercy: "\u0458",
    jukcy: "\u0454",
    kappa: "\u03BA",
    kappav: "\u03F0",
    kcedil: "\u0137",
    kcy: "\u043A",
    kfr: "\u{1D528}",
    kgreen: "\u0138",
    khcy: "\u0445",
    kjcy: "\u045C",
    kopf: "\u{1D55C}",
    kscr: "\u{1D4C0}",
    lAarr: "\u21DA",
    lArr: "\u21D0",
    lAtail: "\u291B",
    lBarr: "\u290E",
    lE: "\u2266",
    lEg: "\u2A8B",
    lHar: "\u2962",
    lacute: "\u013A",
    laemptyv: "\u29B4",
    lagran: "\u2112",
    lambda: "\u03BB",
    lang: "\u27E8",
    langd: "\u2991",
    langle: "\u27E8",
    lap: "\u2A85",
    laquo: "\xAB",
    larr: "\u2190",
    larrb: "\u21E4",
    larrbfs: "\u291F",
    larrfs: "\u291D",
    larrhk: "\u21A9",
    larrlp: "\u21AB",
    larrpl: "\u2939",
    larrsim: "\u2973",
    larrtl: "\u21A2",
    lat: "\u2AAB",
    latail: "\u2919",
    late: "\u2AAD",
    lates: "\u2AAD\uFE00",
    lbarr: "\u290C",
    lbbrk: "\u2772",
    lbrace: "{",
    lbrack: "[",
    lbrke: "\u298B",
    lbrksld: "\u298F",
    lbrkslu: "\u298D",
    lcaron: "\u013E",
    lcedil: "\u013C",
    lceil: "\u2308",
    lcub: "{",
    lcy: "\u043B",
    ldca: "\u2936",
    ldquo: "\u201C",
    ldquor: "\u201E",
    ldrdhar: "\u2967",
    ldrushar: "\u294B",
    ldsh: "\u21B2",
    le: "\u2264",
    leftarrow: "\u2190",
    leftarrowtail: "\u21A2",
    leftharpoondown: "\u21BD",
    leftharpoonup: "\u21BC",
    leftleftarrows: "\u21C7",
    leftrightarrow: "\u2194",
    leftrightarrows: "\u21C6",
    leftrightharpoons: "\u21CB",
    leftrightsquigarrow: "\u21AD",
    leftthreetimes: "\u22CB",
    leg: "\u22DA",
    leq: "\u2264",
    leqq: "\u2266",
    leqslant: "\u2A7D",
    les: "\u2A7D",
    lescc: "\u2AA8",
    lesdot: "\u2A7F",
    lesdoto: "\u2A81",
    lesdotor: "\u2A83",
    lesg: "\u22DA\uFE00",
    lesges: "\u2A93",
    lessapprox: "\u2A85",
    lessdot: "\u22D6",
    lesseqgtr: "\u22DA",
    lesseqqgtr: "\u2A8B",
    lessgtr: "\u2276",
    lesssim: "\u2272",
    lfisht: "\u297C",
    lfloor: "\u230A",
    lfr: "\u{1D529}",
    lg: "\u2276",
    lgE: "\u2A91",
    lhard: "\u21BD",
    lharu: "\u21BC",
    lharul: "\u296A",
    lhblk: "\u2584",
    ljcy: "\u0459",
    ll: "\u226A",
    llarr: "\u21C7",
    llcorner: "\u231E",
    llhard: "\u296B",
    lltri: "\u25FA",
    lmidot: "\u0140",
    lmoust: "\u23B0",
    lmoustache: "\u23B0",
    lnE: "\u2268",
    lnap: "\u2A89",
    lnapprox: "\u2A89",
    lne: "\u2A87",
    lneq: "\u2A87",
    lneqq: "\u2268",
    lnsim: "\u22E6",
    loang: "\u27EC",
    loarr: "\u21FD",
    lobrk: "\u27E6",
    longleftarrow: "\u27F5",
    longleftrightarrow: "\u27F7",
    longmapsto: "\u27FC",
    longrightarrow: "\u27F6",
    looparrowleft: "\u21AB",
    looparrowright: "\u21AC",
    lopar: "\u2985",
    lopf: "\u{1D55D}",
    loplus: "\u2A2D",
    lotimes: "\u2A34",
    lowast: "\u2217",
    lowbar: "_",
    loz: "\u25CA",
    lozenge: "\u25CA",
    lozf: "\u29EB",
    lpar: "(",
    lparlt: "\u2993",
    lrarr: "\u21C6",
    lrcorner: "\u231F",
    lrhar: "\u21CB",
    lrhard: "\u296D",
    lrm: "\u200E",
    lrtri: "\u22BF",
    lsaquo: "\u2039",
    lscr: "\u{1D4C1}",
    lsh: "\u21B0",
    lsim: "\u2272",
    lsime: "\u2A8D",
    lsimg: "\u2A8F",
    lsqb: "[",
    lsquo: "\u2018",
    lsquor: "\u201A",
    lstrok: "\u0142",
    lt: "<",
    ltcc: "\u2AA6",
    ltcir: "\u2A79",
    ltdot: "\u22D6",
    lthree: "\u22CB",
    ltimes: "\u22C9",
    ltlarr: "\u2976",
    ltquest: "\u2A7B",
    ltrPar: "\u2996",
    ltri: "\u25C3",
    ltrie: "\u22B4",
    ltrif: "\u25C2",
    lurdshar: "\u294A",
    luruhar: "\u2966",
    lvertneqq: "\u2268\uFE00",
    lvnE: "\u2268\uFE00",
    mDDot: "\u223A",
    macr: "\xAF",
    male: "\u2642",
    malt: "\u2720",
    maltese: "\u2720",
    map: "\u21A6",
    mapsto: "\u21A6",
    mapstodown: "\u21A7",
    mapstoleft: "\u21A4",
    mapstoup: "\u21A5",
    marker: "\u25AE",
    mcomma: "\u2A29",
    mcy: "\u043C",
    mdash: "\u2014",
    measuredangle: "\u2221",
    mfr: "\u{1D52A}",
    mho: "\u2127",
    micro: "\xB5",
    mid: "\u2223",
    midast: "*",
    midcir: "\u2AF0",
    middot: "\xB7",
    minus: "\u2212",
    minusb: "\u229F",
    minusd: "\u2238",
    minusdu: "\u2A2A",
    mlcp: "\u2ADB",
    mldr: "\u2026",
    mnplus: "\u2213",
    models: "\u22A7",
    mopf: "\u{1D55E}",
    mp: "\u2213",
    mscr: "\u{1D4C2}",
    mstpos: "\u223E",
    mu: "\u03BC",
    multimap: "\u22B8",
    mumap: "\u22B8",
    nGg: "\u22D9\u0338",
    nGt: "\u226B\u20D2",
    nGtv: "\u226B\u0338",
    nLeftarrow: "\u21CD",
    nLeftrightarrow: "\u21CE",
    nLl: "\u22D8\u0338",
    nLt: "\u226A\u20D2",
    nLtv: "\u226A\u0338",
    nRightarrow: "\u21CF",
    nVDash: "\u22AF",
    nVdash: "\u22AE",
    nabla: "\u2207",
    nacute: "\u0144",
    nang: "\u2220\u20D2",
    nap: "\u2249",
    napE: "\u2A70\u0338",
    napid: "\u224B\u0338",
    napos: "\u0149",
    napprox: "\u2249",
    natur: "\u266E",
    natural: "\u266E",
    naturals: "\u2115",
    nbsp: "\xA0",
    nbump: "\u224E\u0338",
    nbumpe: "\u224F\u0338",
    ncap: "\u2A43",
    ncaron: "\u0148",
    ncedil: "\u0146",
    ncong: "\u2247",
    ncongdot: "\u2A6D\u0338",
    ncup: "\u2A42",
    ncy: "\u043D",
    ndash: "\u2013",
    ne: "\u2260",
    neArr: "\u21D7",
    nearhk: "\u2924",
    nearr: "\u2197",
    nearrow: "\u2197",
    nedot: "\u2250\u0338",
    nequiv: "\u2262",
    nesear: "\u2928",
    nesim: "\u2242\u0338",
    nexist: "\u2204",
    nexists: "\u2204",
    nfr: "\u{1D52B}",
    ngE: "\u2267\u0338",
    nge: "\u2271",
    ngeq: "\u2271",
    ngeqq: "\u2267\u0338",
    ngeqslant: "\u2A7E\u0338",
    nges: "\u2A7E\u0338",
    ngsim: "\u2275",
    ngt: "\u226F",
    ngtr: "\u226F",
    nhArr: "\u21CE",
    nharr: "\u21AE",
    nhpar: "\u2AF2",
    ni: "\u220B",
    nis: "\u22FC",
    nisd: "\u22FA",
    niv: "\u220B",
    njcy: "\u045A",
    nlArr: "\u21CD",
    nlE: "\u2266\u0338",
    nlarr: "\u219A",
    nldr: "\u2025",
    nle: "\u2270",
    nleftarrow: "\u219A",
    nleftrightarrow: "\u21AE",
    nleq: "\u2270",
    nleqq: "\u2266\u0338",
    nleqslant: "\u2A7D\u0338",
    nles: "\u2A7D\u0338",
    nless: "\u226E",
    nlsim: "\u2274",
    nlt: "\u226E",
    nltri: "\u22EA",
    nltrie: "\u22EC",
    nmid: "\u2224",
    nopf: "\u{1D55F}",
    not: "\xAC",
    notin: "\u2209",
    notinE: "\u22F9\u0338",
    notindot: "\u22F5\u0338",
    notinva: "\u2209",
    notinvb: "\u22F7",
    notinvc: "\u22F6",
    notni: "\u220C",
    notniva: "\u220C",
    notnivb: "\u22FE",
    notnivc: "\u22FD",
    npar: "\u2226",
    nparallel: "\u2226",
    nparsl: "\u2AFD\u20E5",
    npart: "\u2202\u0338",
    npolint: "\u2A14",
    npr: "\u2280",
    nprcue: "\u22E0",
    npre: "\u2AAF\u0338",
    nprec: "\u2280",
    npreceq: "\u2AAF\u0338",
    nrArr: "\u21CF",
    nrarr: "\u219B",
    nrarrc: "\u2933\u0338",
    nrarrw: "\u219D\u0338",
    nrightarrow: "\u219B",
    nrtri: "\u22EB",
    nrtrie: "\u22ED",
    nsc: "\u2281",
    nsccue: "\u22E1",
    nsce: "\u2AB0\u0338",
    nscr: "\u{1D4C3}",
    nshortmid: "\u2224",
    nshortparallel: "\u2226",
    nsim: "\u2241",
    nsime: "\u2244",
    nsimeq: "\u2244",
    nsmid: "\u2224",
    nspar: "\u2226",
    nsqsube: "\u22E2",
    nsqsupe: "\u22E3",
    nsub: "\u2284",
    nsubE: "\u2AC5\u0338",
    nsube: "\u2288",
    nsubset: "\u2282\u20D2",
    nsubseteq: "\u2288",
    nsubseteqq: "\u2AC5\u0338",
    nsucc: "\u2281",
    nsucceq: "\u2AB0\u0338",
    nsup: "\u2285",
    nsupE: "\u2AC6\u0338",
    nsupe: "\u2289",
    nsupset: "\u2283\u20D2",
    nsupseteq: "\u2289",
    nsupseteqq: "\u2AC6\u0338",
    ntgl: "\u2279",
    ntilde: "\xF1",
    ntlg: "\u2278",
    ntriangleleft: "\u22EA",
    ntrianglelefteq: "\u22EC",
    ntriangleright: "\u22EB",
    ntrianglerighteq: "\u22ED",
    nu: "\u03BD",
    num: "#",
    numero: "\u2116",
    numsp: "\u2007",
    nvDash: "\u22AD",
    nvHarr: "\u2904",
    nvap: "\u224D\u20D2",
    nvdash: "\u22AC",
    nvge: "\u2265\u20D2",
    nvgt: ">\u20D2",
    nvinfin: "\u29DE",
    nvlArr: "\u2902",
    nvle: "\u2264\u20D2",
    nvlt: "<\u20D2",
    nvltrie: "\u22B4\u20D2",
    nvrArr: "\u2903",
    nvrtrie: "\u22B5\u20D2",
    nvsim: "\u223C\u20D2",
    nwArr: "\u21D6",
    nwarhk: "\u2923",
    nwarr: "\u2196",
    nwarrow: "\u2196",
    nwnear: "\u2927",
    oS: "\u24C8",
    oacute: "\xF3",
    oast: "\u229B",
    ocir: "\u229A",
    ocirc: "\xF4",
    ocy: "\u043E",
    odash: "\u229D",
    odblac: "\u0151",
    odiv: "\u2A38",
    odot: "\u2299",
    odsold: "\u29BC",
    oelig: "\u0153",
    ofcir: "\u29BF",
    ofr: "\u{1D52C}",
    ogon: "\u02DB",
    ograve: "\xF2",
    ogt: "\u29C1",
    ohbar: "\u29B5",
    ohm: "\u03A9",
    oint: "\u222E",
    olarr: "\u21BA",
    olcir: "\u29BE",
    olcross: "\u29BB",
    oline: "\u203E",
    olt: "\u29C0",
    omacr: "\u014D",
    omega: "\u03C9",
    omicron: "\u03BF",
    omid: "\u29B6",
    ominus: "\u2296",
    oopf: "\u{1D560}",
    opar: "\u29B7",
    operp: "\u29B9",
    oplus: "\u2295",
    or: "\u2228",
    orarr: "\u21BB",
    ord: "\u2A5D",
    order: "\u2134",
    orderof: "\u2134",
    ordf: "\xAA",
    ordm: "\xBA",
    origof: "\u22B6",
    oror: "\u2A56",
    orslope: "\u2A57",
    orv: "\u2A5B",
    oscr: "\u2134",
    oslash: "\xF8",
    osol: "\u2298",
    otilde: "\xF5",
    otimes: "\u2297",
    otimesas: "\u2A36",
    ouml: "\xF6",
    ovbar: "\u233D",
    par: "\u2225",
    para: "\xB6",
    parallel: "\u2225",
    parsim: "\u2AF3",
    parsl: "\u2AFD",
    part: "\u2202",
    pcy: "\u043F",
    percnt: "%",
    period: ".",
    permil: "\u2030",
    perp: "\u22A5",
    pertenk: "\u2031",
    pfr: "\u{1D52D}",
    phi: "\u03C6",
    phiv: "\u03D5",
    phmmat: "\u2133",
    phone: "\u260E",
    pi: "\u03C0",
    pitchfork: "\u22D4",
    piv: "\u03D6",
    planck: "\u210F",
    planckh: "\u210E",
    plankv: "\u210F",
    plus: "+",
    plusacir: "\u2A23",
    plusb: "\u229E",
    pluscir: "\u2A22",
    plusdo: "\u2214",
    plusdu: "\u2A25",
    pluse: "\u2A72",
    plusmn: "\xB1",
    plussim: "\u2A26",
    plustwo: "\u2A27",
    pm: "\xB1",
    pointint: "\u2A15",
    popf: "\u{1D561}",
    pound: "\xA3",
    pr: "\u227A",
    prE: "\u2AB3",
    prap: "\u2AB7",
    prcue: "\u227C",
    pre: "\u2AAF",
    prec: "\u227A",
    precapprox: "\u2AB7",
    preccurlyeq: "\u227C",
    preceq: "\u2AAF",
    precnapprox: "\u2AB9",
    precneqq: "\u2AB5",
    precnsim: "\u22E8",
    precsim: "\u227E",
    prime: "\u2032",
    primes: "\u2119",
    prnE: "\u2AB5",
    prnap: "\u2AB9",
    prnsim: "\u22E8",
    prod: "\u220F",
    profalar: "\u232E",
    profline: "\u2312",
    profsurf: "\u2313",
    prop: "\u221D",
    propto: "\u221D",
    prsim: "\u227E",
    prurel: "\u22B0",
    pscr: "\u{1D4C5}",
    psi: "\u03C8",
    puncsp: "\u2008",
    qfr: "\u{1D52E}",
    qint: "\u2A0C",
    qopf: "\u{1D562}",
    qprime: "\u2057",
    qscr: "\u{1D4C6}",
    quaternions: "\u210D",
    quatint: "\u2A16",
    quest: "?",
    questeq: "\u225F",
    quot: '"',
    rAarr: "\u21DB",
    rArr: "\u21D2",
    rAtail: "\u291C",
    rBarr: "\u290F",
    rHar: "\u2964",
    race: "\u223D\u0331",
    racute: "\u0155",
    radic: "\u221A",
    raemptyv: "\u29B3",
    rang: "\u27E9",
    rangd: "\u2992",
    range: "\u29A5",
    rangle: "\u27E9",
    raquo: "\xBB",
    rarr: "\u2192",
    rarrap: "\u2975",
    rarrb: "\u21E5",
    rarrbfs: "\u2920",
    rarrc: "\u2933",
    rarrfs: "\u291E",
    rarrhk: "\u21AA",
    rarrlp: "\u21AC",
    rarrpl: "\u2945",
    rarrsim: "\u2974",
    rarrtl: "\u21A3",
    rarrw: "\u219D",
    ratail: "\u291A",
    ratio: "\u2236",
    rationals: "\u211A",
    rbarr: "\u290D",
    rbbrk: "\u2773",
    rbrace: "}",
    rbrack: "]",
    rbrke: "\u298C",
    rbrksld: "\u298E",
    rbrkslu: "\u2990",
    rcaron: "\u0159",
    rcedil: "\u0157",
    rceil: "\u2309",
    rcub: "}",
    rcy: "\u0440",
    rdca: "\u2937",
    rdldhar: "\u2969",
    rdquo: "\u201D",
    rdquor: "\u201D",
    rdsh: "\u21B3",
    real: "\u211C",
    realine: "\u211B",
    realpart: "\u211C",
    reals: "\u211D",
    rect: "\u25AD",
    reg: "\xAE",
    rfisht: "\u297D",
    rfloor: "\u230B",
    rfr: "\u{1D52F}",
    rhard: "\u21C1",
    rharu: "\u21C0",
    rharul: "\u296C",
    rho: "\u03C1",
    rhov: "\u03F1",
    rightarrow: "\u2192",
    rightarrowtail: "\u21A3",
    rightharpoondown: "\u21C1",
    rightharpoonup: "\u21C0",
    rightleftarrows: "\u21C4",
    rightleftharpoons: "\u21CC",
    rightrightarrows: "\u21C9",
    rightsquigarrow: "\u219D",
    rightthreetimes: "\u22CC",
    ring: "\u02DA",
    risingdotseq: "\u2253",
    rlarr: "\u21C4",
    rlhar: "\u21CC",
    rlm: "\u200F",
    rmoust: "\u23B1",
    rmoustache: "\u23B1",
    rnmid: "\u2AEE",
    roang: "\u27ED",
    roarr: "\u21FE",
    robrk: "\u27E7",
    ropar: "\u2986",
    ropf: "\u{1D563}",
    roplus: "\u2A2E",
    rotimes: "\u2A35",
    rpar: ")",
    rpargt: "\u2994",
    rppolint: "\u2A12",
    rrarr: "\u21C9",
    rsaquo: "\u203A",
    rscr: "\u{1D4C7}",
    rsh: "\u21B1",
    rsqb: "]",
    rsquo: "\u2019",
    rsquor: "\u2019",
    rthree: "\u22CC",
    rtimes: "\u22CA",
    rtri: "\u25B9",
    rtrie: "\u22B5",
    rtrif: "\u25B8",
    rtriltri: "\u29CE",
    ruluhar: "\u2968",
    rx: "\u211E",
    sacute: "\u015B",
    sbquo: "\u201A",
    sc: "\u227B",
    scE: "\u2AB4",
    scap: "\u2AB8",
    scaron: "\u0161",
    sccue: "\u227D",
    sce: "\u2AB0",
    scedil: "\u015F",
    scirc: "\u015D",
    scnE: "\u2AB6",
    scnap: "\u2ABA",
    scnsim: "\u22E9",
    scpolint: "\u2A13",
    scsim: "\u227F",
    scy: "\u0441",
    sdot: "\u22C5",
    sdotb: "\u22A1",
    sdote: "\u2A66",
    seArr: "\u21D8",
    searhk: "\u2925",
    searr: "\u2198",
    searrow: "\u2198",
    sect: "\xA7",
    semi: ";",
    seswar: "\u2929",
    setminus: "\u2216",
    setmn: "\u2216",
    sext: "\u2736",
    sfr: "\u{1D530}",
    sfrown: "\u2322",
    sharp: "\u266F",
    shchcy: "\u0449",
    shcy: "\u0448",
    shortmid: "\u2223",
    shortparallel: "\u2225",
    shy: "\xAD",
    sigma: "\u03C3",
    sigmaf: "\u03C2",
    sigmav: "\u03C2",
    sim: "\u223C",
    simdot: "\u2A6A",
    sime: "\u2243",
    simeq: "\u2243",
    simg: "\u2A9E",
    simgE: "\u2AA0",
    siml: "\u2A9D",
    simlE: "\u2A9F",
    simne: "\u2246",
    simplus: "\u2A24",
    simrarr: "\u2972",
    slarr: "\u2190",
    smallsetminus: "\u2216",
    smashp: "\u2A33",
    smeparsl: "\u29E4",
    smid: "\u2223",
    smile: "\u2323",
    smt: "\u2AAA",
    smte: "\u2AAC",
    smtes: "\u2AAC\uFE00",
    softcy: "\u044C",
    sol: "/",
    solb: "\u29C4",
    solbar: "\u233F",
    sopf: "\u{1D564}",
    spades: "\u2660",
    spadesuit: "\u2660",
    spar: "\u2225",
    sqcap: "\u2293",
    sqcaps: "\u2293\uFE00",
    sqcup: "\u2294",
    sqcups: "\u2294\uFE00",
    sqsub: "\u228F",
    sqsube: "\u2291",
    sqsubset: "\u228F",
    sqsubseteq: "\u2291",
    sqsup: "\u2290",
    sqsupe: "\u2292",
    sqsupset: "\u2290",
    sqsupseteq: "\u2292",
    squ: "\u25A1",
    square: "\u25A1",
    squarf: "\u25AA",
    squf: "\u25AA",
    srarr: "\u2192",
    sscr: "\u{1D4C8}",
    ssetmn: "\u2216",
    ssmile: "\u2323",
    sstarf: "\u22C6",
    star: "\u2606",
    starf: "\u2605",
    straightepsilon: "\u03F5",
    straightphi: "\u03D5",
    strns: "\xAF",
    sub: "\u2282",
    subE: "\u2AC5",
    subdot: "\u2ABD",
    sube: "\u2286",
    subedot: "\u2AC3",
    submult: "\u2AC1",
    subnE: "\u2ACB",
    subne: "\u228A",
    subplus: "\u2ABF",
    subrarr: "\u2979",
    subset: "\u2282",
    subseteq: "\u2286",
    subseteqq: "\u2AC5",
    subsetneq: "\u228A",
    subsetneqq: "\u2ACB",
    subsim: "\u2AC7",
    subsub: "\u2AD5",
    subsup: "\u2AD3",
    succ: "\u227B",
    succapprox: "\u2AB8",
    succcurlyeq: "\u227D",
    succeq: "\u2AB0",
    succnapprox: "\u2ABA",
    succneqq: "\u2AB6",
    succnsim: "\u22E9",
    succsim: "\u227F",
    sum: "\u2211",
    sung: "\u266A",
    sup1: "\xB9",
    sup2: "\xB2",
    sup3: "\xB3",
    sup: "\u2283",
    supE: "\u2AC6",
    supdot: "\u2ABE",
    supdsub: "\u2AD8",
    supe: "\u2287",
    supedot: "\u2AC4",
    suphsol: "\u27C9",
    suphsub: "\u2AD7",
    suplarr: "\u297B",
    supmult: "\u2AC2",
    supnE: "\u2ACC",
    supne: "\u228B",
    supplus: "\u2AC0",
    supset: "\u2283",
    supseteq: "\u2287",
    supseteqq: "\u2AC6",
    supsetneq: "\u228B",
    supsetneqq: "\u2ACC",
    supsim: "\u2AC8",
    supsub: "\u2AD4",
    supsup: "\u2AD6",
    swArr: "\u21D9",
    swarhk: "\u2926",
    swarr: "\u2199",
    swarrow: "\u2199",
    swnwar: "\u292A",
    szlig: "\xDF",
    target: "\u2316",
    tau: "\u03C4",
    tbrk: "\u23B4",
    tcaron: "\u0165",
    tcedil: "\u0163",
    tcy: "\u0442",
    tdot: "\u20DB",
    telrec: "\u2315",
    tfr: "\u{1D531}",
    there4: "\u2234",
    therefore: "\u2234",
    theta: "\u03B8",
    thetasym: "\u03D1",
    thetav: "\u03D1",
    thickapprox: "\u2248",
    thicksim: "\u223C",
    thinsp: "\u2009",
    thkap: "\u2248",
    thksim: "\u223C",
    thorn: "\xFE",
    tilde: "\u02DC",
    times: "\xD7",
    timesb: "\u22A0",
    timesbar: "\u2A31",
    timesd: "\u2A30",
    tint: "\u222D",
    toea: "\u2928",
    top: "\u22A4",
    topbot: "\u2336",
    topcir: "\u2AF1",
    topf: "\u{1D565}",
    topfork: "\u2ADA",
    tosa: "\u2929",
    tprime: "\u2034",
    trade: "\u2122",
    triangle: "\u25B5",
    triangledown: "\u25BF",
    triangleleft: "\u25C3",
    trianglelefteq: "\u22B4",
    triangleq: "\u225C",
    triangleright: "\u25B9",
    trianglerighteq: "\u22B5",
    tridot: "\u25EC",
    trie: "\u225C",
    triminus: "\u2A3A",
    triplus: "\u2A39",
    trisb: "\u29CD",
    tritime: "\u2A3B",
    trpezium: "\u23E2",
    tscr: "\u{1D4C9}",
    tscy: "\u0446",
    tshcy: "\u045B",
    tstrok: "\u0167",
    twixt: "\u226C",
    twoheadleftarrow: "\u219E",
    twoheadrightarrow: "\u21A0",
    uArr: "\u21D1",
    uHar: "\u2963",
    uacute: "\xFA",
    uarr: "\u2191",
    ubrcy: "\u045E",
    ubreve: "\u016D",
    ucirc: "\xFB",
    ucy: "\u0443",
    udarr: "\u21C5",
    udblac: "\u0171",
    udhar: "\u296E",
    ufisht: "\u297E",
    ufr: "\u{1D532}",
    ugrave: "\xF9",
    uharl: "\u21BF",
    uharr: "\u21BE",
    uhblk: "\u2580",
    ulcorn: "\u231C",
    ulcorner: "\u231C",
    ulcrop: "\u230F",
    ultri: "\u25F8",
    umacr: "\u016B",
    uml: "\xA8",
    uogon: "\u0173",
    uopf: "\u{1D566}",
    uparrow: "\u2191",
    updownarrow: "\u2195",
    upharpoonleft: "\u21BF",
    upharpoonright: "\u21BE",
    uplus: "\u228E",
    upsi: "\u03C5",
    upsih: "\u03D2",
    upsilon: "\u03C5",
    upuparrows: "\u21C8",
    urcorn: "\u231D",
    urcorner: "\u231D",
    urcrop: "\u230E",
    uring: "\u016F",
    urtri: "\u25F9",
    uscr: "\u{1D4CA}",
    utdot: "\u22F0",
    utilde: "\u0169",
    utri: "\u25B5",
    utrif: "\u25B4",
    uuarr: "\u21C8",
    uuml: "\xFC",
    uwangle: "\u29A7",
    vArr: "\u21D5",
    vBar: "\u2AE8",
    vBarv: "\u2AE9",
    vDash: "\u22A8",
    vangrt: "\u299C",
    varepsilon: "\u03F5",
    varkappa: "\u03F0",
    varnothing: "\u2205",
    varphi: "\u03D5",
    varpi: "\u03D6",
    varpropto: "\u221D",
    varr: "\u2195",
    varrho: "\u03F1",
    varsigma: "\u03C2",
    varsubsetneq: "\u228A\uFE00",
    varsubsetneqq: "\u2ACB\uFE00",
    varsupsetneq: "\u228B\uFE00",
    varsupsetneqq: "\u2ACC\uFE00",
    vartheta: "\u03D1",
    vartriangleleft: "\u22B2",
    vartriangleright: "\u22B3",
    vcy: "\u0432",
    vdash: "\u22A2",
    vee: "\u2228",
    veebar: "\u22BB",
    veeeq: "\u225A",
    vellip: "\u22EE",
    verbar: "|",
    vert: "|",
    vfr: "\u{1D533}",
    vltri: "\u22B2",
    vnsub: "\u2282\u20D2",
    vnsup: "\u2283\u20D2",
    vopf: "\u{1D567}",
    vprop: "\u221D",
    vrtri: "\u22B3",
    vscr: "\u{1D4CB}",
    vsubnE: "\u2ACB\uFE00",
    vsubne: "\u228A\uFE00",
    vsupnE: "\u2ACC\uFE00",
    vsupne: "\u228B\uFE00",
    vzigzag: "\u299A",
    wcirc: "\u0175",
    wedbar: "\u2A5F",
    wedge: "\u2227",
    wedgeq: "\u2259",
    weierp: "\u2118",
    wfr: "\u{1D534}",
    wopf: "\u{1D568}",
    wp: "\u2118",
    wr: "\u2240",
    wreath: "\u2240",
    wscr: "\u{1D4CC}",
    xcap: "\u22C2",
    xcirc: "\u25EF",
    xcup: "\u22C3",
    xdtri: "\u25BD",
    xfr: "\u{1D535}",
    xhArr: "\u27FA",
    xharr: "\u27F7",
    xi: "\u03BE",
    xlArr: "\u27F8",
    xlarr: "\u27F5",
    xmap: "\u27FC",
    xnis: "\u22FB",
    xodot: "\u2A00",
    xopf: "\u{1D569}",
    xoplus: "\u2A01",
    xotime: "\u2A02",
    xrArr: "\u27F9",
    xrarr: "\u27F6",
    xscr: "\u{1D4CD}",
    xsqcup: "\u2A06",
    xuplus: "\u2A04",
    xutri: "\u25B3",
    xvee: "\u22C1",
    xwedge: "\u22C0",
    yacute: "\xFD",
    yacy: "\u044F",
    ycirc: "\u0177",
    ycy: "\u044B",
    yen: "\xA5",
    yfr: "\u{1D536}",
    yicy: "\u0457",
    yopf: "\u{1D56A}",
    yscr: "\u{1D4CE}",
    yucy: "\u044E",
    yuml: "\xFF",
    zacute: "\u017A",
    zcaron: "\u017E",
    zcy: "\u0437",
    zdot: "\u017C",
    zeetrf: "\u2128",
    zeta: "\u03B6",
    zfr: "\u{1D537}",
    zhcy: "\u0436",
    zigrarr: "\u21DD",
    zopf: "\u{1D56B}",
    zscr: "\u{1D4CF}",
    zwj: "\u200D",
    zwnj: "\u200C"
  }, h5 = {}.hasOwnProperty;
  s(Ys, "decodeNamedCharacterReference");
  $n = String.fromCharCode, p5 = [
    "",
    /* 1: Non terminated (named) */
    "Named character references must be terminated by a semicolon",
    /* 2: Non terminated (numeric) */
    "Numeric character references must be terminated by a semicolon",
    /* 3: Empty (named) */
    "Named character references cannot be empty",
    /* 4: Empty (numeric) */
    "Numeric character references cannot be empty",
    /* 5: Unknown (named) */
    "Named character references must be known",
    /* 6: Disallowed (numeric) */
    "Numeric character references cannot be disallowed",
    /* 7: Prohibited (numeric) */
    "Numeric character references cannot be outside the permissible Unicode range"
  ];
  s(f5, "parseEntities");
  s(d5, "prohibited");
  s(m5, "disallowed");
  s(g5, "core");
  s(D5, "charactersToExpression");
  s(y5, "formatBasic");
  s(x5, "stringifyEntitiesLight");
  yb = "  ";
  s(E5, "mdxJsxFromMarkdown");
  s(b5, "mdxJsxToMarkdown");
  s(v5, "containerFlow");
  s(xb, "inferDepth");
  s(Eb, "createIndent");
  s(C5, "peekElement");
  s(w5, "mdxjsEsmFromMarkdown");
  s(A5, "mdxjsEsmToMarkdown");
  s(F5, "enterMdxjsEsm");
  s(S5, "exitMdxjsEsm");
  s(_5, "exitMdxjsEsmData");
  s(k5, "handleMdxjsEsm");
  s(T5, "mdxFromMarkdown");
  s(B5, "mdxToMarkdown");
  P5 = Tu(X4(), 1), I5 = ki(new RegExp("\\p{P}", "u")), gr = ki(/[A-Za-z]/), Lt = ki(/[\dA-Za-z]/), O5 = ki(/[#-'*+\--9=?A-Z^-~]/);
  s(Vp, "asciiControl");
  Up = ki(/\d/), R5 = ki(/[\dA-Fa-f]/), bb = ki(/[!-/:-@[-`{-~]/);
  s(ne, "markdownLineEnding");
  s(Qe, "markdownLineEndingOrSpace");
  s(Fe, "markdownSpace");
  s(N5, "unicodePunctuation");
  ei = ki(/\s/);
  s(ki, "regexCheck");
  s(L5, "color");
  M5 = {}.hasOwnProperty, j5 = Symbol("continue"), kp = Symbol("exit"), q5 = Symbol("skip");
  s($5, "visit");
  s(FE, "toResult");
  s(Tp, "nodelike");
  s(vb, "eventsToAcorn");
  s(SE, "empty");
  s(V5, "collect");
  s(U5, "relativeToPoint");
  s(z5, "serializeChunks");
  s(ti, "positionFromEstree");
  s(_E, "pointOrUndefined");
  s(Bp, "numberOrUndefined");
  Jn = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression", H5 = "#unexp\
ected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-", W5 = "#unexpected-lazy-line-in-expression-in-container-expecte\
d-line-to-be-prefixed", kE = "#unexpected-type-in-code-expected-an-object-spread-spread", J5 = "#unexpected-extra-content-in-spread-only-a-s\
ingle-spread-is-supported", G5 = "#could-not-parse-expression-with-acorn";
  s(Ju, "factoryMdxExpression");
  s(X5, "mdxExpressionParse");
  s(Pe, "factorySpace");
  s(Y5, "mdxExpression");
  TE = "https://github.com/micromark/micromark-extension-mdx-jsx";
  s(Cb, "factoryTag");
  s(K5, "serializeCharCode");
  s(Q5, "jsxText");
  s(Z5, "jsxFlow");
  s(eR, "mdxJsx");
  s(tR, "mdxMd");
  s(Or, "splice");
  s(tr, "push");
  s(BE, "classifyCharacter");
  s(Gp, "resolveAll");
  zp = {
    name: "attention",
    tokenize: iR,
    resolveAll: rR
  };
  s(rR, "resolveAllAttention");
  s(iR, "tokenizeAttention");
  s(PE, "movePoint");
  nR = {
    name: "autolink",
    tokenize: sR
  };
  s(sR, "tokenizeAutolink");
  Qs = {
    tokenize: aR,
    partial: !0
  };
  s(aR, "tokenizeBlankLine");
  wb = {
    name: "blockQuote",
    tokenize: uR,
    continuation: {
      tokenize: oR
    },
    exit: lR
  };
  s(uR, "tokenizeBlockQuoteStart");
  s(oR, "tokenizeBlockQuoteContinuation");
  s(lR, "exit");
  Ab = {
    name: "characterEscape",
    tokenize: cR
  };
  s(cR, "tokenizeCharacterEscape");
  Fb = {
    name: "characterReference",
    tokenize: hR
  };
  s(hR, "tokenizeCharacterReference");
  IE = {
    tokenize: fR,
    partial: !0
  }, OE = {
    name: "codeFenced",
    tokenize: pR,
    concrete: !0
  };
  s(pR, "tokenizeCodeFenced");
  s(fR, "tokenizeNonLazyContinuation");
  Pp = {
    name: "codeIndented",
    tokenize: mR
  }, dR = {
    tokenize: gR,
    partial: !0
  };
  s(mR, "tokenizeCodeIndented");
  s(gR, "tokenizeFurtherStart");
  DR = {
    name: "codeText",
    tokenize: ER,
    resolve: yR,
    previous: xR
  };
  s(yR, "resolveCodeText");
  s(xR, "previous");
  s(ER, "tokenizeCodeText");
  s(Sb, "subtokenize");
  s(bR, "subcontent");
  vR = {
    tokenize: AR,
    resolve: wR
  }, CR = {
    tokenize: FR,
    partial: !0
  };
  s(wR, "resolveContent");
  s(AR, "tokenizeContent");
  s(FR, "tokenizeContinuation");
  s(_b, "factoryDestination");
  s(kb, "factoryLabel");
  s(Tb, "factoryTitle");
  s(Gs, "factoryWhitespace");
  s(Gn, "normalizeIdentifier");
  SR = {
    name: "definition",
    tokenize: kR
  }, _R = {
    tokenize: TR,
    partial: !0
  };
  s(kR, "tokenizeDefinition");
  s(TR, "tokenizeTitleBefore");
  BR = {
    name: "hardBreakEscape",
    tokenize: PR
  };
  s(PR, "tokenizeHardBreakEscape");
  IR = {
    name: "headingAtx",
    tokenize: RR,
    resolve: OR
  };
  s(OR, "resolveHeadingAtx");
  s(RR, "tokenizeHeadingAtx");
  NR = [
    "address",
    "article",
    "aside",
    "base",
    "basefont",
    "blockquote",
    "body",
    "caption",
    "center",
    "col",
    "colgroup",
    "dd",
    "details",
    "dialog",
    "dir",
    "div",
    "dl",
    "dt",
    "fieldset",
    "figcaption",
    "figure",
    "footer",
    "form",
    "frame",
    "frameset",
    "h1",
    "h2",
    "h3",
    "h4",
    "h5",
    "h6",
    "head",
    "header",
    "hr",
    "html",
    "iframe",
    "legend",
    "li",
    "link",
    "main",
    "menu",
    "menuitem",
    "nav",
    "noframes",
    "ol",
    "optgroup",
    "option",
    "p",
    "param",
    "search",
    "section",
    "summary",
    "table",
    "tbody",
    "td",
    "tfoot",
    "th",
    "thead",
    "title",
    "tr",
    "track",
    "ul"
  ], RE = ["pre", "script", "style", "textarea"], LR = {
    name: "htmlFlow",
    tokenize: $R,
    resolveTo: qR,
    concrete: !0
  }, MR = {
    tokenize: UR,
    partial: !0
  }, jR = {
    tokenize: VR,
    partial: !0
  };
  s(qR, "resolveToHtmlFlow");
  s($R, "tokenizeHtmlFlow");
  s(VR, "tokenizeNonLazyContinuationStart");
  s(UR, "tokenizeBlankLineBefore");
  zR = {
    name: "htmlText",
    tokenize: HR
  };
  s(HR, "tokenizeHtmlText");
  Xp = {
    name: "labelEnd",
    tokenize: KR,
    resolveTo: YR,
    resolveAll: XR
  }, WR = {
    tokenize: QR
  }, JR = {
    tokenize: ZR
  }, GR = {
    tokenize: e7
  };
  s(XR, "resolveAllLabelEnd");
  s(YR, "resolveToLabelEnd");
  s(KR, "tokenizeLabelEnd");
  s(QR, "tokenizeResource");
  s(ZR, "tokenizeReferenceFull");
  s(e7, "tokenizeReferenceCollapsed");
  t7 = {
    name: "labelStartImage",
    tokenize: r7,
    resolveAll: Xp.resolveAll
  };
  s(r7, "tokenizeLabelStartImage");
  i7 = {
    name: "labelStartLink",
    tokenize: n7,
    resolveAll: Xp.resolveAll
  };
  s(n7, "tokenizeLabelStartLink");
  Ip = {
    name: "lineEnding",
    tokenize: s7
  };
  s(s7, "tokenizeLineEnding");
  Wu = {
    name: "thematicBreak",
    tokenize: a7
  };
  s(a7, "tokenizeThematicBreak");
  kt = {
    name: "list",
    tokenize: l7,
    continuation: {
      tokenize: c7
    },
    exit: p7
  }, u7 = {
    tokenize: f7,
    partial: !0
  }, o7 = {
    tokenize: h7,
    partial: !0
  };
  s(l7, "tokenizeListStart");
  s(c7, "tokenizeListContinuation");
  s(h7, "tokenizeIndent");
  s(p7, "tokenizeListEnd");
  s(f7, "tokenizeListItemPrefixWhitespace");
  NE = {
    name: "setextUnderline",
    tokenize: m7,
    resolveTo: d7
  };
  s(d7, "resolveToSetextUnderline");
  s(m7, "tokenizeSetextUnderline");
  g7 = {
    tokenize: x7,
    partial: !0
  }, LE = "https://github.com/micromark/micromark-extension-mdxjs-esm", D7 = /* @__PURE__ */ new Set(["ExportAllDeclaration", "ExportDefault\
Declaration", "ExportNamedDeclaration", "ImportDeclaration"]);
  s(y7, "mdxjsEsm");
  s(x7, "tokenizeNextBlank");
  ME = {}.hasOwnProperty;
  s(Bb, "combineExtensions");
  s(E7, "syntaxExtension");
  s(b7, "constructs");
  s(v7, "mdxjs");
  C7 = {};
  s(w7, "remarkMdx");
  A7 = {};
  s(F7, "toString");
  s(Pb, "one");
  s(jE, "all");
  s(S7, "node");
  s(Ib, "decodeNumericCharacterReference");
  s(Xn, "normalizeUri");
  _7 = {
    tokenize: k7
  };
  s(k7, "initializeContent");
  T7 = {
    tokenize: B7
  }, qE = {
    tokenize: P7
  };
  s(B7, "initializeDocument");
  s(P7, "tokenizeContainer");
  I7 = {
    tokenize: O7
  };
  s(O7, "initializeFlow");
  R7 = {
    resolveAll: Rb()
  }, N7 = Ob("string"), L7 = Ob("text");
  s(Ob, "initializeFactory");
  s(Rb, "createResolver");
  s(M7, "resolveAllLineSuffixes");
  s(j7, "createTokenizer");
  s(q7, "sliceChunks");
  s($7, "serializeChunks2");
  Nb = {};
  ip(Nb, {
    attentionMarkers: /* @__PURE__ */ s(() => X7, "attentionMarkers"),
    contentInitial: /* @__PURE__ */ s(() => U7, "contentInitial"),
    disable: /* @__PURE__ */ s(() => Y7, "disable"),
    document: /* @__PURE__ */ s(() => V7, "document"),
    flow: /* @__PURE__ */ s(() => H7, "flow"),
    flowInitial: /* @__PURE__ */ s(() => z7, "flowInitial"),
    insideSpan: /* @__PURE__ */ s(() => G7, "insideSpan"),
    string: /* @__PURE__ */ s(() => W7, "string"),
    text: /* @__PURE__ */ s(() => J7, "text")
  });
  V7 = {
    42: kt,
    43: kt,
    45: kt,
    48: kt,
    49: kt,
    50: kt,
    51: kt,
    52: kt,
    53: kt,
    54: kt,
    55: kt,
    56: kt,
    57: kt,
    62: wb
  }, U7 = {
    91: SR
  }, z7 = {
    [-2]: Pp,
    [-1]: Pp,
    32: Pp
  }, H7 = {
    35: IR,
    42: Wu,
    45: [NE, Wu],
    60: LR,
    61: NE,
    95: Wu,
    96: OE,
    126: OE
  }, W7 = {
    38: Fb,
    92: Ab
  }, J7 = {
    [-5]: Ip,
    [-4]: Ip,
    [-3]: Ip,
    33: t7,
    38: Fb,
    42: zp,
    60: [nR, zR],
    91: i7,
    92: [BR, Ab],
    93: Xp,
    95: zp,
    96: DR
  }, G7 = {
    null: [zp, R7]
  }, X7 = {
    null: [42, 95]
  }, Y7 = {
    null: []
  };
  s(K7, "parse");
  s(Q7, "postprocess");
  $E = /[\0\t\n\r]/g;
  s(Z7, "preprocess");
  eN = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
  s(tN, "decodeString");
  s(rN, "decode");
  Lb = {}.hasOwnProperty;
  s(iN, "fromMarkdown");
  s(nN, "compiler");
  s(Fi, "point2");
  s(Mb, "configure");
  s(sN, "extension");
  s(VE, "defaultOnError");
  s(aN, "remarkParse");
  s(uN, "blockquote");
  s(oN, "hardBreak");
  s(lN, "code");
  s(cN, "strikethrough");
  s(hN, "emphasis");
  s(pN, "footnoteReference");
  s(fN, "heading");
  s(dN, "html");
  s(jb, "revert");
  s(mN, "imageReference");
  s(gN, "image");
  s(DN, "inlineCode");
  s(yN, "linkReference");
  s(xN, "link");
  s(EN, "listItem");
  s(bN, "listLoose");
  s(qb, "listItemLoose");
  s(vN, "list2");
  s(CN, "paragraph");
  s(wN, "root");
  s(AN, "strong");
  s(FN, "table");
  s(SN, "tableRow");
  s(_N, "tableCell");
  UE = 9, zE = 32;
  s(kN, "trimLines");
  s(HE, "trimLine");
  s(TN, "text3");
  s(BN, "thematicBreak2");
  PN = {
    blockquote: uN,
    break: oN,
    code: lN,
    delete: cN,
    emphasis: hN,
    footnoteReference: pN,
    heading: fN,
    html: dN,
    imageReference: mN,
    image: gN,
    inlineCode: DN,
    linkReference: yN,
    link: xN,
    listItem: EN,
    list: vN,
    paragraph: CN,
    // @ts-expect-error: root is different, but hard to type.
    root: wN,
    strong: AN,
    table: FN,
    tableCell: _N,
    tableRow: SN,
    text: TN,
    thematicBreak: BN,
    toml: $u,
    yaml: $u,
    definition: $u,
    footnoteDefinition: $u
  };
  s($u, "ignore");
  $b = -1, Qu = 0, Gu = 1, Xu = 2, Yp = 3, Kp = 4, Qp = 5, Zp = 6, Vb = 7, Ub = 8, WE = typeof self == "object" ? self : globalThis, IN = /* @__PURE__ */ s(
  (e, t) => {
    let r = /* @__PURE__ */ s((n, a) => (e.set(a, n), n), "as"), i = /* @__PURE__ */ s((n) => {
      if (e.has(n))
        return e.get(n);
      let [a, u] = t[n];
      switch (a) {
        case Qu:
        case $b:
          return r(u, n);
        case Gu: {
          let o = r([], n);
          for (let l of u)
            o.push(i(l));
          return o;
        }
        case Xu: {
          let o = r({}, n);
          for (let [l, c] of u)
            o[i(l)] = i(c);
          return o;
        }
        case Yp:
          return r(new Date(u), n);
        case Kp: {
          let { source: o, flags: l } = u;
          return r(new RegExp(o, l), n);
        }
        case Qp: {
          let o = r(/* @__PURE__ */ new Map(), n);
          for (let [l, c] of u)
            o.set(i(l), i(c));
          return o;
        }
        case Zp: {
          let o = r(/* @__PURE__ */ new Set(), n);
          for (let l of u)
            o.add(i(l));
          return o;
        }
        case Vb: {
          let { name: o, message: l } = u;
          return r(new WE[o](l), n);
        }
        case Ub:
          return r(BigInt(u), n);
        case "BigInt":
          return r(Object(BigInt(u)), n);
      }
      return r(new WE[a](u), n);
    }, "unpair");
    return i;
  }, "deserializer"), JE = /* @__PURE__ */ s((e) => IN(/* @__PURE__ */ new Map(), e)(0), "deserialize"), Vn = "", { toString: ON } = {}, { keys: RN } =
  Object, Js = /* @__PURE__ */ s((e) => {
    let t = typeof e;
    if (t !== "object" || !e)
      return [Qu, t];
    let r = ON.call(e).slice(8, -1);
    switch (r) {
      case "Array":
        return [Gu, Vn];
      case "Object":
        return [Xu, Vn];
      case "Date":
        return [Yp, Vn];
      case "RegExp":
        return [Kp, Vn];
      case "Map":
        return [Qp, Vn];
      case "Set":
        return [Zp, Vn];
    }
    return r.includes("Array") ? [Gu, r] : r.includes("Error") ? [Vb, r] : [Xu, r];
  }, "typeOf"), Vu = /* @__PURE__ */ s(([e, t]) => e === Qu && (t === "function" || t === "symbol"), "shouldSkip"), NN = /* @__PURE__ */ s((e, t, r, i) => {
    let n = /* @__PURE__ */ s((u, o) => {
      let l = i.push(u) - 1;
      return r.set(o, l), l;
    }, "as"), a = /* @__PURE__ */ s((u) => {
      if (r.has(u))
        return r.get(u);
      let [o, l] = Js(u);
      switch (o) {
        case Qu: {
          let h = u;
          switch (l) {
            case "bigint":
              o = Ub, h = u.toString();
              break;
            case "function":
            case "symbol":
              if (e)
                throw new TypeError("unable to serialize " + l);
              h = null;
              break;
            case "undefined":
              return n([$b], u);
          }
          return n([o, h], u);
        }
        case Gu: {
          if (l)
            return n([l, [...u]], u);
          let h = [], p = n([o, h], u);
          for (let d of u)
            h.push(a(d));
          return p;
        }
        case Xu: {
          if (l)
            switch (l) {
              case "BigInt":
                return n([l, u.toString()], u);
              case "Boolean":
              case "Number":
              case "String":
                return n([l, u.valueOf()], u);
            }
          if (t && "toJSON" in u)
            return a(u.toJSON());
          let h = [], p = n([o, h], u);
          for (let d of RN(u))
            (e || !Vu(Js(u[d]))) && h.push([a(d), a(u[d])]);
          return p;
        }
        case Yp:
          return n([o, u.toISOString()], u);
        case Kp: {
          let { source: h, flags: p } = u;
          return n([o, { source: h, flags: p }], u);
        }
        case Qp: {
          let h = [], p = n([o, h], u);
          for (let [d, m] of u)
            (e || !(Vu(Js(d)) || Vu(Js(m)))) && h.push([a(d), a(m)]);
          return p;
        }
        case Zp: {
          let h = [], p = n([o, h], u);
          for (let d of u)
            (e || !Vu(Js(d))) && h.push(a(d));
          return p;
        }
      }
      let { message: c } = u;
      return n([o, { name: l, message: c }], u);
    }, "pair");
    return a;
  }, "serializer"), GE = /* @__PURE__ */ s((e, { json: t, lossy: r } = {}) => {
    let i = [];
    return NN(!(t || r), !!t, /* @__PURE__ */ new Map(), i)(e), i;
  }, "serialize"), Yu = typeof structuredClone == "function" ? (
    /* c8 ignore start */
    (e, t) => t && ("json" in t || "lossy" in t) ? JE(GE(e, t)) : structuredClone(e)
  ) : (e, t) => JE(GE(e, t));
  s(LN, "defaultFootnoteBackContent");
  s(MN, "defaultFootnoteBackLabel");
  s(jN, "footer");
  zb = // Note: overloads in JSDoc can’t yet use different `@template`s.
  /**
   * @type {(
   *   (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
   *   (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
   *   (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
   *   ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
   *   ((test?: Test) => Check)
   * )}
   */
  /**
   * @param {Test} [test]
   * @returns {Check}
   */
  /* @__PURE__ */ s(function(e) {
    if (e == null)
      return UN;
    if (typeof e == "function")
      return Zu(e);
    if (typeof e == "object")
      return Array.isArray(e) ? qN(e) : $N(e);
    if (typeof e == "string")
      return VN(e);
    throw new Error("Expected function, string, or object as test");
  }, "convert");
  s(qN, "anyFactory");
  s($N, "propsFactory");
  s(VN, "typeFactory");
  s(Zu, "castFactory");
  s(UN, "ok2");
  s(zN, "looksLikeANode");
  s(HN, "color2");
  Hb = [], WN = !0, XE = !1, JN = "skip";
  s(GN, "visitParents");
  s(XN, "toResult2");
  s(ef, "visit2");
  Hp = {}.hasOwnProperty, YN = {};
  s(KN, "createState");
  s(QN, "patch");
  s(ZN, "applyData");
  s(eL, "defaultUnknownHandler");
  s(tL, "wrap");
  s(YE, "trimMarkdownSpaceStart");
  s(KE, "toHast");
  s(rL, "remarkRehype");
  s(QE, "bail");
  Op = Tu(Y4(), 1);
  s(Wp, "isPlainObject");
  s(iL, "trough");
  s(nL, "wrap2");
  sL = /**
   * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
   */
  /** @type {unknown} */
  /**
   * @this {Function}
   * @param {string | symbol} property
   * @returns {(...parameters: Array<unknown>) => unknown}
   */
  /* @__PURE__ */ s(function(e) {
    let i = (
      /** @type {Record<string | symbol, Function>} */
      // Prototypes do exist.
      // type-coverage:ignore-next-line
      this.constructor.prototype
    ), n = i[e], a = /* @__PURE__ */ s(function() {
      return n.apply(a, arguments);
    }, "apply");
    Object.setPrototypeOf(a, i);
    let u = Object.getOwnPropertyNames(n);
    for (let o of u) {
      let l = Object.getOwnPropertyDescriptor(n, o);
      l && Object.defineProperty(a, o, l);
    }
    return a;
  }, "CallableInstance"), aL = {}.hasOwnProperty, Wb = class extends sL {
    static {
      s(this, "Processor");
    }
    /**
     * Create a processor.
     */
    constructor() {
      super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.
      frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = iL();
    }
    /**
     * Copy a processor.
     *
     * @deprecated
     *   This is a private internal method and should not be used.
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *   New *unfrozen* processor ({@link Processor `Processor`}) that is
     *   configured to work the same as its ancestor.
     *   When the descendant processor is configured in the future it does not
     *   affect the ancestral processor.
     */
    copy() {
      let e = (
        /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
        new Wb()
      ), t = -1;
      for (; ++t < this.attachers.length; ) {
        let r = this.attachers[t];
        e.use(...r);
      }
      return e.data((0, Op.default)(!0, {}, this.namespace)), e;
    }
    /**
     * Configure the processor with info available to all plugins.
     * Information is stored in an object.
     *
     * Typically, options can be given to a specific plugin, but sometimes it
     * makes sense to have information shared with several plugins.
     * For example, a list of HTML elements that are self-closing, which is
     * needed during all phases.
     *
     * > 👉 **Note**: setting information cannot occur on *frozen* processors.
     * > Call the processor first to create a new unfrozen processor.
     *
     * > 👉 **Note**: to register custom data in TypeScript, augment the
     * > {@link Data `Data`} interface.
     *
     * @example
     *   This example show how to get and set info:
     *
     *   ```js
     *   import {unified} from 'unified'
     *
     *   const processor = unified().data('alpha', 'bravo')
     *
     *   processor.data('alpha') // => 'bravo'
     *
     *   processor.data() // => {alpha: 'bravo'}
     *
     *   processor.data({charlie: 'delta'})
     *
     *   processor.data() // => {charlie: 'delta'}
     *   ```
     *
     * @template {keyof Data} Key
     *
     * @overload
     * @returns {Data}
     *
     * @overload
     * @param {Data} dataset
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *
     * @overload
     * @param {Key} key
     * @returns {Data[Key]}
     *
     * @overload
     * @param {Key} key
     * @param {Data[Key]} value
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *
     * @param {Data | Key} [key]
     *   Key to get or set, or entire dataset to set, or nothing to get the
     *   entire dataset (optional).
     * @param {Data[Key]} [value]
     *   Value to set (optional).
     * @returns {unknown}
     *   The current processor when setting, the value at `key` when getting, or
     *   the entire dataset when getting without key.
     */
    data(e, t) {
      return typeof e == "string" ? arguments.length === 2 ? (Lp("data", this.frozen), this.namespace[e] = t, this) : aL.call(this.namespace,
      e) && this.namespace[e] || void 0 : e ? (Lp("data", this.frozen), this.namespace = e, this) : this.namespace;
    }
    /**
     * Freeze a processor.
     *
     * Frozen processors are meant to be extended and not to be configured
     * directly.
     *
     * When a processor is frozen it cannot be unfrozen.
     * New processors working the same way can be created by calling the
     * processor.
     *
     * It’s possible to freeze processors explicitly by calling `.freeze()`.
     * Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,
     * `.stringify()`, `.process()`, or `.processSync()` are called.
     *
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *   The current processor.
     */
    freeze() {
      if (this.frozen)
        return this;
      let e = (
        /** @type {Processor} */
        /** @type {unknown} */
        this
      );
      for (; ++this.freezeIndex < this.attachers.length; ) {
        let [t, ...r] = this.attachers[this.freezeIndex];
        if (r[0] === !1)
          continue;
        r[0] === !0 && (r[0] = void 0);
        let i = t.call(e, ...r);
        typeof i == "function" && this.transformers.use(i);
      }
      return this.frozen = !0, this.freezeIndex = Number.POSITIVE_INFINITY, this;
    }
    /**
     * Parse text to a syntax tree.
     *
     * > 👉 **Note**: `parse` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `parse` performs the parse phase, not the run phase or other
     * > phases.
     *
     * @param {Compatible | undefined} [file]
     *   file to parse (optional); typically `string` or `VFile`; any value
     *   accepted as `x` in `new VFile(x)`.
     * @returns {ParseTree extends undefined ? Node : ParseTree}
     *   Syntax tree representing `file`.
     */
    parse(e) {
      this.freeze();
      let t = Uu(e), r = this.parser || this.Parser;
      return Rp("parse", r), r(String(t), t);
    }
    /**
     * Process the given file as configured on the processor.
     *
     * > 👉 **Note**: `process` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `process` performs the parse, run, and stringify phases.
     *
     * @overload
     * @param {Compatible | undefined} file
     * @param {ProcessCallback<VFileWithOutput<CompileResult>>} done
     * @returns {undefined}
     *
     * @overload
     * @param {Compatible | undefined} [file]
     * @returns {Promise<VFileWithOutput<CompileResult>>}
     *
     * @param {Compatible | undefined} [file]
     *   File (optional); typically `string` or `VFile`]; any value accepted as
     *   `x` in `new VFile(x)`.
     * @param {ProcessCallback<VFileWithOutput<CompileResult>> | undefined} [done]
     *   Callback (optional).
     * @returns {Promise<VFile> | undefined}
     *   Nothing if `done` is given.
     *   Otherwise a promise, rejected with a fatal error or resolved with the
     *   processed file.
     *
     *   The parsed, transformed, and compiled value is available at
     *   `file.value` (see note).
     *
     *   > 👉 **Note**: unified typically compiles by serializing: most
     *   > compilers return `string` (or `Uint8Array`).
     *   > Some compilers, such as the one configured with
     *   > [`rehype-react`][rehype-react], return other values (in this case, a
     *   > React tree).
     *   > If you’re using a compiler that doesn’t serialize, expect different
     *   > result values.
     *   >
     *   > To register custom results in TypeScript, add them to
     *   > {@link CompileResultMap `CompileResultMap`}.
     *
     *   [rehype-react]: https://github.com/rehypejs/rehype-react
     */
    process(e, t) {
      let r = this;
      return this.freeze(), Rp("process", this.parser || this.Parser), Np("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(
      i);
      function i(n, a) {
        let u = Uu(e), o = (
          /** @type {HeadTree extends undefined ? Node : HeadTree} */
          /** @type {unknown} */
          r.parse(u)
        );
        r.run(o, u, function(c, h, p) {
          if (c || !h || !p)
            return l(c);
          let d = (
            /** @type {CompileTree extends undefined ? Node : CompileTree} */
            /** @type {unknown} */
            h
          ), m = r.stringify(d, p);
          lL(m) ? p.value = m : p.result = m, l(
            c,
            /** @type {VFileWithOutput<CompileResult>} */
            p
          );
        });
        function l(c, h) {
          c || !h ? a(c) : n ? n(h) : t(void 0, h);
        }
        s(l, "realDone");
      }
      s(i, "executor");
    }
    /**
     * Process the given file as configured on the processor.
     *
     * An error is thrown if asynchronous transforms are configured.
     *
     * > 👉 **Note**: `processSync` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `processSync` performs the parse, run, and stringify phases.
     *
     * @param {Compatible | undefined} [file]
     *   File (optional); typically `string` or `VFile`; any value accepted as
     *   `x` in `new VFile(x)`.
     * @returns {VFileWithOutput<CompileResult>}
     *   The processed file.
     *
     *   The parsed, transformed, and compiled value is available at
     *   `file.value` (see note).
     *
     *   > 👉 **Note**: unified typically compiles by serializing: most
     *   > compilers return `string` (or `Uint8Array`).
     *   > Some compilers, such as the one configured with
     *   > [`rehype-react`][rehype-react], return other values (in this case, a
     *   > React tree).
     *   > If you’re using a compiler that doesn’t serialize, expect different
     *   > result values.
     *   >
     *   > To register custom results in TypeScript, add them to
     *   > {@link CompileResultMap `CompileResultMap`}.
     *
     *   [rehype-react]: https://github.com/rehypejs/rehype-react
     */
    processSync(e) {
      let t = !1, r;
      return this.freeze(), Rp("processSync", this.parser || this.Parser), Np("processSync", this.compiler || this.Compiler), this.process(e,
      i), eb("processSync", "process", t), r;
      function i(n, a) {
        t = !0, QE(n), r = a;
      }
      s(i, "realDone");
    }
    /**
     * Run *transformers* on a syntax tree.
     *
     * > 👉 **Note**: `run` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `run` performs the run phase, not other phases.
     *
     * @overload
     * @param {HeadTree extends undefined ? Node : HeadTree} tree
     * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
     * @returns {undefined}
     *
     * @overload
     * @param {HeadTree extends undefined ? Node : HeadTree} tree
     * @param {Compatible | undefined} file
     * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
     * @returns {undefined}
     *
     * @overload
     * @param {HeadTree extends undefined ? Node : HeadTree} tree
     * @param {Compatible | undefined} [file]
     * @returns {Promise<TailTree extends undefined ? Node : TailTree>}
     *
     * @param {HeadTree extends undefined ? Node : HeadTree} tree
     *   Tree to transform and inspect.
     * @param {(
     *   RunCallback<TailTree extends undefined ? Node : TailTree> |
     *   Compatible
     * )} [file]
     *   File associated with `node` (optional); any value accepted as `x` in
     *   `new VFile(x)`.
     * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} [done]
     *   Callback (optional).
     * @returns {Promise<TailTree extends undefined ? Node : TailTree> | undefined}
     *   Nothing if `done` is given.
     *   Otherwise, a promise rejected with a fatal error or resolved with the
     *   transformed tree.
     */
    run(e, t, r) {
      ZE(e), this.freeze();
      let i = this.transformers;
      return !r && typeof t == "function" && (r = t, t = void 0), r ? n(void 0, r) : new Promise(n);
      function n(a, u) {
        let o = Uu(t);
        i.run(e, o, l);
        function l(c, h, p) {
          let d = (
            /** @type {TailTree extends undefined ? Node : TailTree} */
            h || e
          );
          c ? u(c) : a ? a(d) : r(void 0, d, p);
        }
        s(l, "realDone");
      }
      s(n, "executor");
    }
    /**
     * Run *transformers* on a syntax tree.
     *
     * An error is thrown if asynchronous transforms are configured.
     *
     * > 👉 **Note**: `runSync` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `runSync` performs the run phase, not other phases.
     *
     * @param {HeadTree extends undefined ? Node : HeadTree} tree
     *   Tree to transform and inspect.
     * @param {Compatible | undefined} [file]
     *   File associated with `node` (optional); any value accepted as `x` in
     *   `new VFile(x)`.
     * @returns {TailTree extends undefined ? Node : TailTree}
     *   Transformed tree.
     */
    runSync(e, t) {
      let r = !1, i;
      return this.run(e, t, n), eb("runSync", "run", r), i;
      function n(a, u) {
        QE(a), i = u, r = !0;
      }
      s(n, "realDone");
    }
    /**
     * Compile a syntax tree.
     *
     * > 👉 **Note**: `stringify` freezes the processor if not already *frozen*.
     *
     * > 👉 **Note**: `stringify` performs the stringify phase, not the run phase
     * > or other phases.
     *
     * @param {CompileTree extends undefined ? Node : CompileTree} tree
     *   Tree to compile.
     * @param {Compatible | undefined} [file]
     *   File associated with `node` (optional); any value accepted as `x` in
     *   `new VFile(x)`.
     * @returns {CompileResult extends undefined ? Value : CompileResult}
     *   Textual representation of the tree (see note).
     *
     *   > 👉 **Note**: unified typically compiles by serializing: most compilers
     *   > return `string` (or `Uint8Array`).
     *   > Some compilers, such as the one configured with
     *   > [`rehype-react`][rehype-react], return other values (in this case, a
     *   > React tree).
     *   > If you’re using a compiler that doesn’t serialize, expect different
     *   > result values.
     *   >
     *   > To register custom results in TypeScript, add them to
     *   > {@link CompileResultMap `CompileResultMap`}.
     *
     *   [rehype-react]: https://github.com/rehypejs/rehype-react
     */
    stringify(e, t) {
      this.freeze();
      let r = Uu(t), i = this.compiler || this.Compiler;
      return Np("stringify", i), ZE(e), i(e, r);
    }
    /**
     * Configure the processor to use a plugin, a list of usable values, or a
     * preset.
     *
     * If the processor is already using a plugin, the previous plugin
     * configuration is changed based on the options that are passed in.
     * In other words, the plugin is not added a second time.
     *
     * > 👉 **Note**: `use` cannot be called on *frozen* processors.
     * > Call the processor first to create a new unfrozen processor.
     *
     * @example
     *   There are many ways to pass plugins to `.use()`.
     *   This example gives an overview:
     *
     *   ```js
     *   import {unified} from 'unified'
     *
     *   unified()
     *     // Plugin with options:
     *     .use(pluginA, {x: true, y: true})
     *     // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):
     *     .use(pluginA, {y: false, z: true})
     *     // Plugins:
     *     .use([pluginB, pluginC])
     *     // Two plugins, the second with options:
     *     .use([pluginD, [pluginE, {}]])
     *     // Preset with plugins and settings:
     *     .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})
     *     // Settings only:
     *     .use({settings: {position: false}})
     *   ```
     *
     * @template {Array<unknown>} [Parameters=[]]
     * @template {Node | string | undefined} [Input=undefined]
     * @template [Output=Input]
     *
     * @overload
     * @param {Preset | null | undefined} [preset]
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *
     * @overload
     * @param {PluggableList} list
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *
     * @overload
     * @param {Plugin<Parameters, Input, Output>} plugin
     * @param {...(Parameters | [boolean])} parameters
     * @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
     *
     * @param {PluggableList | Plugin | Preset | null | undefined} value
     *   Usable value.
     * @param {...unknown} parameters
     *   Parameters, when a plugin is given as a usable value.
     * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
     *   Current processor.
     */
    use(e, ...t) {
      let r = this.attachers, i = this.namespace;
      if (Lp("use", this.frozen), e != null)
        if (typeof e == "function")
          o(e, t);
        else if (typeof e == "object")
          Array.isArray(e) ? u(e) : a(e);
        else
          throw new TypeError("Expected usable value, not `" + e + "`");
      return this;
      function n(l) {
        if (typeof l == "function")
          o(l, []);
        else if (typeof l == "object")
          if (Array.isArray(l)) {
            let [c, ...h] = (
              /** @type {PluginTuple<Array<unknown>>} */
              l
            );
            o(c, h);
          } else
            a(l);
        else
          throw new TypeError("Expected usable value, not `" + l + "`");
      }
      function a(l) {
        if (!("plugins" in l) && !("settings" in l))
          throw new Error(
            "Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and some\
times with `settings`, but this has neither"
          );
        u(l.plugins), l.settings && (i.settings = (0, Op.default)(!0, i.settings, l.settings));
      }
      function u(l) {
        let c = -1;
        if (l != null)
          if (Array.isArray(l))
            for (; ++c < l.length; ) {
              let h = l[c];
              n(h);
            }
          else
            throw new TypeError("Expected a list of plugins, not `" + l + "`");
      }
      function o(l, c) {
        let h = -1, p = -1;
        for (; ++h < r.length; )
          if (r[h][0] === l) {
            p = h;
            break;
          }
        if (p === -1)
          r.push([l, ...c]);
        else if (c.length > 0) {
          let [d, ...m] = c, g = r[p][1];
          Wp(g) && Wp(d) && (d = (0, Op.default)(!0, g, d)), r[p] = [l, d, ...m];
        }
      }
    }
  }, uL = new Wb().freeze();
  s(Rp, "assertParser");
  s(Np, "assertCompiler");
  s(Lp, "assertUnfrozen");
  s(ZE, "assertNode");
  s(eb, "assertDone");
  s(Uu, "vfile");
  s(oL, "looksLikeAVFile2");
  s(lL, "looksLikeAValue");
  s(cL, "isUint8Array2");
  hL = class {
    static {
      s(this, "WalkerBase");
    }
    constructor() {
      this.should_skip = !1, this.should_remove = !1, this.replacement = null, this.context = {
        skip: /* @__PURE__ */ s(() => this.should_skip = !0, "skip"),
        remove: /* @__PURE__ */ s(() => this.should_remove = !0, "remove"),
        replace: /* @__PURE__ */ s((e) => this.replacement = e, "replace")
      };
    }
    /**
     * @template {Node} Parent
     * @param {Parent | null | undefined} parent
     * @param {keyof Parent | null | undefined} prop
     * @param {number | null | undefined} index
     * @param {Node} node
     */
    replace(e, t, r, i) {
      e && t && (r != null ? e[t][r] = i : e[t] = i);
    }
    /**
     * @template {Node} Parent
     * @param {Parent | null | undefined} parent
     * @param {keyof Parent | null | undefined} prop
     * @param {number | null | undefined} index
     */
    remove(e, t, r) {
      e && t && (r != null ? e[t].splice(r, 1) : delete e[t]);
    }
  }, pL = class extends hL {
    static {
      s(this, "SyncWalker");
    }
    /**
     *
     * @param {SyncHandler} [enter]
     * @param {SyncHandler} [leave]
     */
    constructor(e, t) {
      super(), this.should_skip = !1, this.should_remove = !1, this.replacement = null, this.context = {
        skip: /* @__PURE__ */ s(() => this.should_skip = !0, "skip"),
        remove: /* @__PURE__ */ s(() => this.should_remove = !0, "remove"),
        replace: /* @__PURE__ */ s((r) => this.replacement = r, "replace")
      }, this.enter = e, this.leave = t;
    }
    /**
     * @template {Node} Parent
     * @param {Node} node
     * @param {Parent | null} parent
     * @param {keyof Parent} [prop]
     * @param {number | null} [index]
     * @returns {Node | null}
     */
    visit(e, t, r, i) {
      if (e) {
        if (this.enter) {
          let a = this.should_skip, u = this.should_remove, o = this.replacement;
          this.should_skip = !1, this.should_remove = !1, this.replacement = null, this.enter.call(this.context, e, t, r, i), this.replacement &&
          (e = this.replacement, this.replace(t, r, i, e)), this.should_remove && this.remove(t, r, i);
          let l = this.should_skip, c = this.should_remove;
          if (this.should_skip = a, this.should_remove = u, this.replacement = o, l)
            return e;
          if (c)
            return null;
        }
        let n;
        for (n in e) {
          let a = e[n];
          if (a && typeof a == "object")
            if (Array.isArray(a)) {
              let u = (
                /** @type {Array<unknown>} */
                a
              );
              for (let o = 0; o < u.length; o += 1) {
                let l = u[o];
                tb(l) && (this.visit(l, e, n, o) || o--);
              }
            } else tb(a) && this.visit(a, e, n, null);
        }
        if (this.leave) {
          let a = this.replacement, u = this.should_remove;
          this.replacement = null, this.should_remove = !1, this.leave.call(this.context, e, t, r, i), this.replacement && (e = this.replacement,
          this.replace(t, r, i, e)), this.should_remove && this.remove(t, r, i);
          let o = this.should_remove;
          if (this.replacement = a, this.should_remove = u, o)
            return null;
        }
      }
      return e;
    }
  };
  s(tb, "isNode");
  s(Ks, "walk");
  s(Jb, "is_reference");
  s(Gb, "analyze");
  s(Xb, "add_reference");
  Un = class {
    static {
      s(this, "Scope");
    }
    /**
     * @param {Scope | null} parent 
     * @param {boolean} block 
     */
    constructor(e, t) {
      this.parent = e, this.block = t, this.declarations = /* @__PURE__ */ new Map(), this.initialised_declarations = /* @__PURE__ */ new Set(),
      this.references = /* @__PURE__ */ new Set();
    }
    /**
     * @param {import('estree').VariableDeclaration | import('estree').ClassDeclaration} node
     */
    add_declaration(e) {
      if (e.type === "VariableDeclaration")
        if (e.kind === "var" && this.block && this.parent)
          this.parent.add_declaration(e);
        else {
          let t = /* @__PURE__ */ s((r) => {
            Jp(r.id).forEach((i) => {
              this.declarations.set(i, e), r.init && this.initialised_declarations.add(i);
            });
          }, "handle_declarator");
          e.declarations.forEach(t);
        }
      else e.id && this.declarations.set(e.id.name, e);
    }
    /**
     * @param {string} name
     * @returns {Scope | null}
     */
    find_owner(e) {
      return this.declarations.has(e) ? this : this.parent && this.parent.find_owner(e);
    }
    /**
     * @param {string} name
     * @returns {boolean}
     */
    has(e) {
      return this.declarations.has(e) || !!this.parent && this.parent.has(e);
    }
  };
  s(Jp, "extract_names");
  s(Wn, "extract_identifiers");
  s(Si, "create");
  s(fL, "declarationToExpression");
  s(dL, "isDeclaration");
  s(tf, "specifiersToDeclarations");
  s(_i, "toIdOrMemberExpression");
  s(rb, "toJsxIdOrMemberExpression");
  s(mL, "recmaDocument");
  s(gL, "resolveDynamicMdxSpecifier");
  s(DL, "createImportMetaUrlVariable");
  Mp = /@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;
  s(yL, "buildJsx");
  s(xL, "toProperty");
  s(Ku, "toIdentifier");
  s(ib, "toMemberExpression");
  s(Xs, "create2");
  s(EL, "recmaJsxBuild");
  s(nb, "toBinaryAddition");
  s(bL, "recmaJsxRewrite");
  s(vL, "createImportProvider");
  s(zn, "isNamedFunction");
  s(jp, "inScope");
  ({ stringify: CL } = JSON);
  if (!String.prototype.repeat)
    throw new Error(
      "String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation"
    );
  if (!String.prototype.endsWith)
    throw new Error(
      "String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation"
    );
  zu = {
    "||": 2,
    "??": 3,
    "&&": 4,
    "|": 5,
    "^": 6,
    "&": 7,
    "==": 8,
    "!=": 8,
    "===": 8,
    "!==": 8,
    "<": 9,
    ">": 9,
    "<=": 9,
    ">=": 9,
    in: 9,
    instanceof: 9,
    "<<": 10,
    ">>": 10,
    ">>>": 10,
    "+": 11,
    "-": 11,
    "*": 12,
    "%": 12,
    "/": 12,
    "**": 13
  }, mr = 17, wL = {
    // Definitions
    ArrayExpression: 20,
    TaggedTemplateExpression: 20,
    ThisExpression: 20,
    Identifier: 20,
    PrivateIdentifier: 20,
    Literal: 18,
    TemplateLiteral: 20,
    Super: 20,
    SequenceExpression: 20,
    // Operations
    MemberExpression: 19,
    ChainExpression: 19,
    CallExpression: 19,
    NewExpression: 19,
    // Other definitions
    ArrowFunctionExpression: mr,
    ClassExpression: mr,
    FunctionExpression: mr,
    ObjectExpression: mr,
    // Other operations
    UpdateExpression: 16,
    UnaryExpression: 15,
    AwaitExpression: 15,
    BinaryExpression: 14,
    LogicalExpression: 13,
    ConditionalExpression: 4,
    AssignmentExpression: 3,
    YieldExpression: 2,
    RestElement: 1
  };
  s(Hn, "formatSequence");
  s(Yb, "expressionNeedsParenthesis");
  s(Hu, "formatExpression");
  s(AL, "reindent");
  s(Et, "formatComments");
  s(FL, "hasCallExpression");
  s(qp, "formatVariableDeclaration");
  Kb = {
    /*
    Default generator.
    */
    Program(e, t) {
      let r = t.indent.repeat(t.indentLevel), { lineEnd: i, writeComments: n } = t;
      n && e.comments != null && Et(t, e.comments, r, i);
      let a = e.body, { length: u } = a;
      for (let o = 0; o < u; o++) {
        let l = a[o];
        n && l.comments != null && Et(t, l.comments, r, i), t.write(r), this[l.type](l, t), t.write(i);
      }
      n && e.trailingComments != null && Et(t, e.trailingComments, r, i);
    },
    BlockStatement: cb = /* @__PURE__ */ s(function(e, t) {
      let r = t.indent.repeat(t.indentLevel++), { lineEnd: i, writeComments: n } = t, a = r + t.indent;
      t.write("{");
      let u = e.body;
      if (u != null && u.length > 0) {
        t.write(i), n && e.comments != null && Et(t, e.comments, a, i);
        let { length: o } = u;
        for (let l = 0; l < o; l++) {
          let c = u[l];
          n && c.comments != null && Et(t, c.comments, a, i), t.write(a), this[c.type](c, t), t.write(i);
        }
        t.write(r);
      } else
        n && e.comments != null && (t.write(i), Et(t, e.comments, a, i), t.write(r));
      n && e.trailingComments != null && Et(t, e.trailingComments, a, i), t.write("}"), t.indentLevel--;
    }, "BlockStatement"),
    ClassBody: cb,
    StaticBlock(e, t) {
      t.write("static "), this.BlockStatement(e, t);
    },
    EmptyStatement(e, t) {
      t.write(";");
    },
    ExpressionStatement(e, t) {
      let r = t.expressionsPrecedence[e.expression.type];
      r === mr || r === 3 && e.expression.left.type[0] === "O" ? (t.write("("), this[e.expression.type](e.expression, t), t.write(")")) : this[e.
      expression.type](e.expression, t), t.write(";");
    },
    IfStatement(e, t) {
      t.write("if ("), this[e.test.type](e.test, t), t.write(") "), this[e.consequent.type](e.consequent, t), e.alternate != null && (t.write(
      " else "), this[e.alternate.type](e.alternate, t));
    },
    LabeledStatement(e, t) {
      this[e.label.type](e.label, t), t.write(": "), this[e.body.type](e.body, t);
    },
    BreakStatement(e, t) {
      t.write("break"), e.label != null && (t.write(" "), this[e.label.type](e.label, t)), t.write(";");
    },
    ContinueStatement(e, t) {
      t.write("continue"), e.label != null && (t.write(" "), this[e.label.type](e.label, t)), t.write(";");
    },
    WithStatement(e, t) {
      t.write("with ("), this[e.object.type](e.object, t), t.write(") "), this[e.body.type](e.body, t);
    },
    SwitchStatement(e, t) {
      let r = t.indent.repeat(t.indentLevel++), { lineEnd: i, writeComments: n } = t;
      t.indentLevel++;
      let a = r + t.indent, u = a + t.indent;
      t.write("switch ("), this[e.discriminant.type](e.discriminant, t), t.write(") {" + i);
      let { cases: o } = e, { length: l } = o;
      for (let c = 0; c < l; c++) {
        let h = o[c];
        n && h.comments != null && Et(t, h.comments, a, i), h.test ? (t.write(a + "case "), this[h.test.type](h.test, t), t.write(":" + i)) :
        t.write(a + "default:" + i);
        let { consequent: p } = h, { length: d } = p;
        for (let m = 0; m < d; m++) {
          let g = p[m];
          n && g.comments != null && Et(t, g.comments, u, i), t.write(u), this[g.type](g, t), t.write(i);
        }
      }
      t.indentLevel -= 2, t.write(r + "}");
    },
    ReturnStatement(e, t) {
      t.write("return"), e.argument && (t.write(" "), this[e.argument.type](e.argument, t)), t.write(";");
    },
    ThrowStatement(e, t) {
      t.write("throw "), this[e.argument.type](e.argument, t), t.write(";");
    },
    TryStatement(e, t) {
      if (t.write("try "), this[e.block.type](e.block, t), e.handler) {
        let { handler: r } = e;
        r.param == null ? t.write(" catch ") : (t.write(" catch ("), this[r.param.type](r.param, t), t.write(") ")), this[r.body.type](r.body,
        t);
      }
      e.finalizer && (t.write(" finally "), this[e.finalizer.type](e.finalizer, t));
    },
    WhileStatement(e, t) {
      t.write("while ("), this[e.test.type](e.test, t), t.write(") "), this[e.body.type](e.body, t);
    },
    DoWhileStatement(e, t) {
      t.write("do "), this[e.body.type](e.body, t), t.write(" while ("), this[e.test.type](e.test, t), t.write(");");
    },
    ForStatement(e, t) {
      if (t.write("for ("), e.init != null) {
        let { init: r } = e;
        r.type[0] === "V" ? qp(t, r) : this[r.type](r, t);
      }
      t.write("; "), e.test && this[e.test.type](e.test, t), t.write("; "), e.update && this[e.update.type](e.update, t), t.write(") "), this[e.
      body.type](e.body, t);
    },
    ForInStatement: sb = /* @__PURE__ */ s(function(e, t) {
      t.write(`for ${e.await ? "await " : ""}(`);
      let { left: r } = e;
      r.type[0] === "V" ? qp(t, r) : this[r.type](r, t), t.write(e.type[3] === "I" ? " in " : " of "), this[e.right.type](e.right, t), t.write(
      ") "), this[e.body.type](e.body, t);
    }, "ForInStatement"),
    ForOfStatement: sb,
    DebuggerStatement(e, t) {
      t.write("debugger;", e);
    },
    FunctionDeclaration: ab = /* @__PURE__ */ s(function(e, t) {
      t.write(
        (e.async ? "async " : "") + (e.generator ? "function* " : "function ") + (e.id ? e.id.name : ""),
        e
      ), Hn(t, e.params), t.write(" "), this[e.body.type](e.body, t);
    }, "FunctionDeclaration"),
    FunctionExpression: ab,
    VariableDeclaration(e, t) {
      qp(t, e), t.write(";");
    },
    VariableDeclarator(e, t) {
      this[e.id.type](e.id, t), e.init != null && (t.write(" = "), this[e.init.type](e.init, t));
    },
    ClassDeclaration(e, t) {
      if (t.write("class " + (e.id ? `${e.id.name} ` : ""), e), e.superClass) {
        t.write("extends ");
        let { superClass: r } = e, { type: i } = r, n = t.expressionsPrecedence[i];
        (i[0] !== "C" || i[1] !== "l" || i[5] !== "E") && (n === mr || n < t.expressionsPrecedence.ClassExpression) ? (t.write("("), this[e.
        superClass.type](r, t), t.write(")")) : this[r.type](r, t), t.write(" ");
      }
      this.ClassBody(e.body, t);
    },
    ImportDeclaration(e, t) {
      t.write("import ");
      let { specifiers: r } = e, { length: i } = r, n = 0;
      if (i > 0) {
        for (; n < i; ) {
          n > 0 && t.write(", ");
          let a = r[n], u = a.type[6];
          if (u === "D")
            t.write(a.local.name, a), n++;
          else if (u === "N")
            t.write("* as " + a.local.name, a), n++;
          else
            break;
        }
        if (n < i) {
          for (t.write("{"); ; ) {
            let a = r[n], { name: u } = a.imported;
            if (t.write(u, a), u !== a.local.name && t.write(" as " + a.local.name), ++n < i)
              t.write(", ");
            else
              break;
          }
          t.write("}");
        }
        t.write(" from ");
      }
      this.Literal(e.source, t), t.write(";");
    },
    ImportExpression(e, t) {
      t.write("import("), this[e.source.type](e.source, t), t.write(")");
    },
    ExportDefaultDeclaration(e, t) {
      t.write("export default "), this[e.declaration.type](e.declaration, t), t.expressionsPrecedence[e.declaration.type] != null && e.declaration.
      type[0] !== "F" && t.write(";");
    },
    ExportNamedDeclaration(e, t) {
      if (t.write("export "), e.declaration)
        this[e.declaration.type](e.declaration, t);
      else {
        t.write("{");
        let { specifiers: r } = e, { length: i } = r;
        if (i > 0)
          for (let n = 0; ; ) {
            let a = r[n], { name: u } = a.local;
            if (t.write(u, a), u !== a.exported.name && t.write(" as " + a.exported.name), ++n < i)
              t.write(", ");
            else
              break;
          }
        t.write("}"), e.source && (t.write(" from "), this.Literal(e.source, t)), t.write(";");
      }
    },
    ExportAllDeclaration(e, t) {
      e.exported != null ? t.write("export * as " + e.exported.name + " from ") : t.write("export * from "), this.Literal(e.source, t), t.write(
      ";");
    },
    MethodDefinition(e, t) {
      e.static && t.write("static ");
      let r = e.kind[0];
      (r === "g" || r === "s") && t.write(e.kind + " "), e.value.async && t.write("async "), e.value.generator && t.write("*"), e.computed ?
      (t.write("["), this[e.key.type](e.key, t), t.write("]")) : this[e.key.type](e.key, t), Hn(t, e.value.params), t.write(" "), this[e.value.
      body.type](e.value.body, t);
    },
    ClassExpression(e, t) {
      this.ClassDeclaration(e, t);
    },
    ArrowFunctionExpression(e, t) {
      t.write(e.async ? "async " : "", e);
      let { params: r } = e;
      r != null && (r.length === 1 && r[0].type[0] === "I" ? t.write(r[0].name, r[0]) : Hn(t, e.params)), t.write(" => "), e.body.type[0] ===
      "O" ? (t.write("("), this.ObjectExpression(e.body, t), t.write(")")) : this[e.body.type](e.body, t);
    },
    ThisExpression(e, t) {
      t.write("this", e);
    },
    Super(e, t) {
      t.write("super", e);
    },
    RestElement: ub = /* @__PURE__ */ s(function(e, t) {
      t.write("..."), this[e.argument.type](e.argument, t);
    }, "RestElement"),
    SpreadElement: ub,
    YieldExpression(e, t) {
      t.write(e.delegate ? "yield*" : "yield"), e.argument && (t.write(" "), this[e.argument.type](e.argument, t));
    },
    AwaitExpression(e, t) {
      t.write("await ", e), Hu(t, e.argument, e);
    },
    TemplateLiteral(e, t) {
      let { quasis: r, expressions: i } = e;
      t.write("`");
      let { length: n } = i;
      for (let u = 0; u < n; u++) {
        let o = i[u], l = r[u];
        t.write(l.value.raw, l), t.write("${"), this[o.type](o, t), t.write("}");
      }
      let a = r[r.length - 1];
      t.write(a.value.raw, a), t.write("`");
    },
    TemplateElement(e, t) {
      t.write(e.value.raw, e);
    },
    TaggedTemplateExpression(e, t) {
      Hu(t, e.tag, e), this[e.quasi.type](e.quasi, t);
    },
    ArrayExpression: lb = /* @__PURE__ */ s(function(e, t) {
      if (t.write("["), e.elements.length > 0) {
        let { elements: r } = e, { length: i } = r;
        for (let n = 0; ; ) {
          let a = r[n];
          if (a != null && this[a.type](a, t), ++n < i)
            t.write(", ");
          else {
            a == null && t.write(", ");
            break;
          }
        }
      }
      t.write("]");
    }, "ArrayExpression"),
    ArrayPattern: lb,
    ObjectExpression(e, t) {
      let r = t.indent.repeat(t.indentLevel++), { lineEnd: i, writeComments: n } = t, a = r + t.indent;
      if (t.write("{"), e.properties.length > 0) {
        t.write(i), n && e.comments != null && Et(t, e.comments, a, i);
        let u = "," + i, { properties: o } = e, { length: l } = o;
        for (let c = 0; ; ) {
          let h = o[c];
          if (n && h.comments != null && Et(t, h.comments, a, i), t.write(a), this[h.type](h, t), ++c < l)
            t.write(u);
          else
            break;
        }
        t.write(i), n && e.trailingComments != null && Et(t, e.trailingComments, a, i), t.write(r + "}");
      } else n ? e.comments != null ? (t.write(i), Et(t, e.comments, a, i), e.trailingComments != null && Et(t, e.trailingComments, a, i), t.
      write(r + "}")) : e.trailingComments != null ? (t.write(i), Et(t, e.trailingComments, a, i), t.write(r + "}")) : t.write("}") : t.write(
      "}");
      t.indentLevel--;
    },
    Property(e, t) {
      e.method || e.kind[0] !== "i" ? this.MethodDefinition(e, t) : (e.shorthand || (e.computed ? (t.write("["), this[e.key.type](e.key, t),
      t.write("]")) : this[e.key.type](e.key, t), t.write(": ")), this[e.value.type](e.value, t));
    },
    PropertyDefinition(e, t) {
      if (e.static && t.write("static "), e.computed && t.write("["), this[e.key.type](e.key, t), e.computed && t.write("]"), e.value == null) {
        e.key.type[0] !== "F" && t.write(";");
        return;
      }
      t.write(" = "), this[e.value.type](e.value, t), t.write(";");
    },
    ObjectPattern(e, t) {
      if (t.write("{"), e.properties.length > 0) {
        let { properties: r } = e, { length: i } = r;
        for (let n = 0; this[r[n].type](r[n], t), ++n < i; )
          t.write(", ");
      }
      t.write("}");
    },
    SequenceExpression(e, t) {
      Hn(t, e.expressions);
    },
    UnaryExpression(e, t) {
      if (e.prefix) {
        let {
          operator: r,
          argument: i,
          argument: { type: n }
        } = e;
        t.write(r);
        let a = Yb(t, i, e);
        !a && (r.length > 1 || n[0] === "U" && (n[1] === "n" || n[1] === "p") && i.prefix && i.operator[0] === r && (r === "+" || r === "-")) &&
        t.write(" "), a ? (t.write(r.length > 1 ? " (" : "("), this[n](i, t), t.write(")")) : this[n](i, t);
      } else
        this[e.argument.type](e.argument, t), t.write(e.operator);
    },
    UpdateExpression(e, t) {
      e.prefix ? (t.write(e.operator), this[e.argument.type](e.argument, t)) : (this[e.argument.type](e.argument, t), t.write(e.operator));
    },
    AssignmentExpression(e, t) {
      this[e.left.type](e.left, t), t.write(" " + e.operator + " "), this[e.right.type](e.right, t);
    },
    AssignmentPattern(e, t) {
      this[e.left.type](e.left, t), t.write(" = "), this[e.right.type](e.right, t);
    },
    BinaryExpression: ob = /* @__PURE__ */ s(function(e, t) {
      let r = e.operator === "in";
      r && t.write("("), Hu(t, e.left, e, !1), t.write(" " + e.operator + " "), Hu(t, e.right, e, !0), r && t.write(")");
    }, "BinaryExpression"),
    LogicalExpression: ob,
    ConditionalExpression(e, t) {
      let { test: r } = e, i = t.expressionsPrecedence[r.type];
      i === mr || i <= t.expressionsPrecedence.ConditionalExpression ? (t.write("("), this[r.type](r, t), t.write(")")) : this[r.type](r, t),
      t.write(" ? "), this[e.consequent.type](e.consequent, t), t.write(" : "), this[e.alternate.type](e.alternate, t);
    },
    NewExpression(e, t) {
      t.write("new ");
      let r = t.expressionsPrecedence[e.callee.type];
      r === mr || r < t.expressionsPrecedence.CallExpression || FL(e.callee) ? (t.write("("), this[e.callee.type](e.callee, t), t.write(")")) :
      this[e.callee.type](e.callee, t), Hn(t, e.arguments);
    },
    CallExpression(e, t) {
      let r = t.expressionsPrecedence[e.callee.type];
      r === mr || r < t.expressionsPrecedence.CallExpression ? (t.write("("), this[e.callee.type](e.callee, t), t.write(")")) : this[e.callee.
      type](e.callee, t), e.optional && t.write("?."), Hn(t, e.arguments);
    },
    ChainExpression(e, t) {
      this[e.expression.type](e.expression, t);
    },
    MemberExpression(e, t) {
      let r = t.expressionsPrecedence[e.object.type];
      r === mr || r < t.expressionsPrecedence.MemberExpression ? (t.write("("), this[e.object.type](e.object, t), t.write(")")) : this[e.object.
      type](e.object, t), e.computed ? (e.optional && t.write("?."), t.write("["), this[e.property.type](e.property, t), t.write("]")) : (e.
      optional ? t.write("?.") : t.write("."), this[e.property.type](e.property, t));
    },
    MetaProperty(e, t) {
      t.write(e.meta.name + "." + e.property.name, e);
    },
    Identifier(e, t) {
      t.write(e.name, e);
    },
    PrivateIdentifier(e, t) {
      t.write(`#${e.name}`, e);
    },
    Literal(e, t) {
      e.raw != null ? t.write(e.raw, e) : e.regex != null ? this.RegExpLiteral(e, t) : e.bigint != null ? t.write(e.bigint + "n", e) : t.write(
      CL(e.value), e);
    },
    RegExpLiteral(e, t) {
      let { regex: r } = e;
      t.write(`/${r.pattern}/${r.flags}`, e);
    }
  }, SL = {}, _L = class {
    static {
      s(this, "State");
    }
    constructor(e) {
      let t = e ?? SL;
      this.output = "", t.output != null ? (this.output = t.output, this.write = this.writeToStream) : this.output = "", this.generator = t.
      generator != null ? t.generator : Kb, this.expressionsPrecedence = t.expressionsPrecedence != null ? t.expressionsPrecedence : wL, this.
      indent = t.indent != null ? t.indent : "  ", this.lineEnd = t.lineEnd != null ? t.lineEnd : `
`, this.indentLevel = t.startingIndentLevel != null ? t.startingIndentLevel : 0, this.writeComments = t.comments ? t.comments : !1, t.sourceMap !=
      null && (this.write = t.output == null ? this.writeAndMap : this.writeToStreamAndMap, this.sourceMap = t.sourceMap, this.line = 1, this.
      column = 0, this.lineEndSize = this.lineEnd.split(`
`).length - 1, this.mapping = {
        original: null,
        // Uses the entire state to avoid generating ephemeral objects
        generated: this,
        name: void 0,
        source: t.sourceMap.file || t.sourceMap._file
      });
    }
    write(e) {
      this.output += e;
    }
    writeToStream(e) {
      this.output.write(e);
    }
    writeAndMap(e, t) {
      this.output += e, this.map(e, t);
    }
    writeToStreamAndMap(e, t) {
      this.output.write(e), this.map(e, t);
    }
    map(e, t) {
      if (t != null) {
        let { type: n } = t;
        if (n[0] === "L" && n[2] === "n") {
          this.column = 0, this.line++;
          return;
        }
        if (t.loc != null) {
          let { mapping: a } = this;
          a.original = t.loc.start, a.name = t.name, this.sourceMap.addMapping(a);
        }
        if (n[0] === "T" && n[8] === "E" || n[0] === "L" && n[1] === "i" && typeof t.value == "string") {
          let { length: a } = e, { column: u, line: o } = this;
          for (let l = 0; l < a; l++)
            e[l] === `
` ? (u = 0, o++) : u++;
          this.column = u, this.line = o;
          return;
        }
      }
      let { length: r } = e, { lineEnd: i } = this;
      r > 0 && (this.lineEndSize > 0 && (i.length === 1 ? e[r - 1] === i : e.endsWith(i)) ? (this.line += this.lineEndSize, this.column = 0) :
      this.column += r);
    }
    toString() {
      return this.output;
    }
  };
  s(kL, "generate");
  TL = {};
  s(hb, "toJs");
  pb = {
    JSXAttribute: BL,
    JSXClosingElement: PL,
    JSXClosingFragment: IL,
    JSXElement: OL,
    JSXEmptyExpression: RL,
    JSXExpressionContainer: NL,
    JSXFragment: LL,
    JSXIdentifier: ML,
    JSXMemberExpression: jL,
    JSXNamespacedName: qL,
    JSXOpeningElement: $L,
    JSXOpeningFragment: VL,
    JSXSpreadAttribute: UL,
    JSXText: zL
  };
  s(BL, "jsxAttribute");
  s(PL, "jsxClosingElement");
  s(IL, "jsxClosingFragment");
  s(OL, "jsxElement");
  s(RL, "jsxEmptyExpression");
  s(NL, "jsxExpressionContainer");
  s(LL, "jsxFragment");
  s(ML, "jsxIdentifier");
  s(jL, "jsxMemberExpression");
  s(qL, "jsxNamespacedName");
  s($L, "jsxOpeningElement");
  s(VL, "jsxOpeningFragment");
  s(UL, "jsxSpreadAttribute");
  s(zL, "jsxText2");
  s(Qb, "encodeJsx");
  s(HL, "replaceJsxChar");
  s(WL, "recmaStringify");
  s(JL, "rehypeRecma");
  s(GL, "rehypeRemoveRaw");
  XL = /\s+/g, YL = /[\t\n\v\f\r ]+/g;
  s(KL, "collapseWhiteSpace");
  s(QL, "replaceLineEnding");
  s(ZL, "replaceSpace");
  s(eM, "trimFactory");
  s(tM, "remarkMarkAndUnravel");
  Zb = /** @type {const} */
  [
    "mdxFlowExpression",
    "mdxJsxFlowElement",
    "mdxJsxTextElement",
    "mdxTextExpression",
    "mdxjsEsm"
  ], fb = [
    "compilers",
    "filepath",
    "hastPlugins",
    "mdPlugins",
    "skipExport",
    "wrapExport"
  ], db = !1;
  s(rf, "createProcessor");
  s(ev, "compile");
  s(tv, "compileSync");
  s(rv, "resolveEvaluateOptions");
  rM = Object.getPrototypeOf(nf).constructor;
  s(nf, "run");
  s(iv, "runSync");
  s(iM, "evaluate");
  s(nM, "evaluateSync");
});

// ../node_modules/@storybook/docs-mdx/dist/index.js
var cv = {};
di(cv, {
  analyze: () => lM,
  extractImports: () => ov,
  plugin: () => lv
});
var sf, uv, av, sM, aM, uM, oM, ov, lv, lM, hv = ut(() => {
  cp();
  sf = /* @__PURE__ */ s((e, t) => e.attributes.find((r) => r.type === "JSXAttribute" && r.name.name === t), "getAttr"), uv = /* @__PURE__ */ s(
  (e, t) => sf(e, t)?.value, "getAttrValue"), av = /* @__PURE__ */ s((e, t) => {
    let r = uv(e, t);
    if (r) {
      if (r.type === "Literal")
        return r.value;
      throw new Error(`Expected string literal ${t}, received ${r.type}`);
    }
  }, "getAttrLiteral"), sM = /* @__PURE__ */ s((e, t) => {
    let r = uv(e, "of");
    if (r)
      if (r.type === "JSXExpressionContainer") {
        let i = r.expression;
        if (i?.type === "Identifier") {
          let n = t[i.name];
          if (n)
            return n;
          throw new Error(`Unknown identifier ${i.name}`);
        } else
          throw new Error(`Expected identifier, received ${i.type}`);
      } else
        throw new Error(`Expected JSX expression, received ${r.type}`);
  }, "getOf"), aM = /* @__PURE__ */ s((e) => {
    let t = sf(e, "tags");
    if (!t)
      return;
    let r = t.value;
    if (r.type === "JSXExpressionContainer") {
      let i = r.expression;
      if (i.type === "ArrayExpression")
        return i.elements.map((a) => {
          if (a.type === "Literal" && typeof a.value == "string")
            return a.value;
          throw new Error(`Expected string literal tag, received ${a.type}`);
        });
      throw new Error(`Expected tags array, received ${i.type}`);
    } else
      throw new Error(`Expected JSX expression tags, received ${r.type}`);
  }, "getTags"), uM = /* @__PURE__ */ s((e) => {
    let t = sf(e, "isTemplate");
    if (!t)
      return !1;
    let r = t.value;
    if (r == null)
      return !0;
    if (r.type === "JSXExpressionContainer") {
      let i = r.expression;
      if (i.type === "Literal" && typeof i.value == "boolean")
        return i.value;
      throw new Error(`Expected boolean isTemplate, received ${typeof i.value}`);
    } else
      throw new Error(`Expected expression isTemplate, received ${r.type}`);
  }, "getIsTemplate"), oM = /* @__PURE__ */ s((e, t) => {
    let r = { title: void 0, of: void 0, name: void 0, isTemplate: !1 }, i = e.body.filter(
      (a) => a.type === "ExpressionStatement" && a.expression.type === "JSXFragment"
    );
    if (i.length > 1)
      throw new Error("duplicate contents");
    return i.length === 0 || i[0].expression.children.forEach((a) => {
      if (a.type === "JSXElement") {
        let { openingElement: u } = a;
        if (u.name.name === "Meta") {
          if (r.title || r.name || r.of)
            throw new Error("Meta can only be declared once");
          r.title = av(u, "title"), r.name = av(u, "name"), r.of = sM(u, t), r.isTemplate = uM(u), r.metaTags = aM(u);
        }
      } else if (a.type !== "JSXExpressionContainer")
        throw new Error(`Unexpected JSX child: ${a.type}`);
    }), r;
  }, "extractTitle"), ov = /* @__PURE__ */ s((e) => {
    let t = {};
    return e.body.forEach((r) => {
      if (r.type === "ImportDeclaration") {
        let { source: i, specifiers: n } = r;
        if (i.type === "Literal")
          n.forEach((a) => {
            t[a.local.name] = i.value.toString();
          });
        else
          throw new Error("MDX: unexpected import source");
      }
    }), t;
  }, "extractImports"), lv = /* @__PURE__ */ s((e) => (t) => {
    let r = Bu(t), i = ov(r), { title: n, of: a, name: u, isTemplate: o, metaTags: l } = oM(r, i);
    return e.title = n, e.of = a, e.name = u, e.isTemplate = o, e.metaTags = l, e.imports = Array.from(new Set(Object.values(i))), t;
  }, "plugin"), lM = /* @__PURE__ */ s(async (e) => {
    let t = {
      title: void 0,
      of: void 0,
      name: void 0,
      isTemplate: !1,
      metaTags: void 0,
      imports: void 0
    }, { compile: r } = await Promise.resolve().then(() => (sv(), nv));
    await r(e, {
      rehypePlugins: [[lv, t]]
    });
    let { title: i, of: n, name: a, isTemplate: u, metaTags: o, imports: l = [] } = t;
    return { title: i, of: n, name: a, isTemplate: u, metaTags: o, imports: l };
  }, "analyze");
});

// ../node_modules/totalist/sync/index.mjs
var vv = {};
di(vv, {
  totalist: () => bv
});
import { join as hf, resolve as EM } from "path";
import { readdirSync as bM, statSync as vM } from "fs";
function bv(e, t, r = "") {
  e = EM(".", e);
  let i = bM(e), n = 0, a, u;
  for (; n < i.length; n++)
    a = hf(e, i[n]), u = vM(a), u.isDirectory() ? bv(a, t, hf(r, i[n])) : t(hf(r, i[n]), a, u);
}
var Cv = ut(() => {
  s(bv, "totalist");
});

// ../node_modules/@polka/url/build.mjs
var Av = {};
di(Av, {
  parse: () => pf
});
import * as wv from "node:querystring";
function pf(e) {
  let t = e.url;
  if (t == null) return;
  let r = e._parsedUrl;
  if (r && r.raw === t) return r;
  let i = t, n = "", a;
  if (t.length > 1) {
    let u = t.indexOf("?", 1);
    u !== -1 && (n = t.substring(u), i = t.substring(0, u), n.length > 1 && (a = wv.parse(n.substring(1))));
  }
  return e._parsedUrl = { pathname: i, search: n, query: a, raw: t };
}
var ff = ut(() => {
  s(pf, "parse");
});

// ../node_modules/mrmime/index.mjs
var Sv = {};
di(Sv, {
  lookup: () => CM,
  mimes: () => Fv
});
function CM(e) {
  let t = ("" + e).trim().toLowerCase(), r = t.lastIndexOf(".");
  return Fv[~r ? t.substring(++r) : t];
}
var Fv, _v = ut(() => {
  Fv = {
    "3g2": "video/3gpp2",
    "3gp": "video/3gpp",
    "3gpp": "video/3gpp",
    "3mf": "model/3mf",
    aac: "audio/aac",
    ac: "application/pkix-attr-cert",
    adp: "audio/adpcm",
    adts: "audio/aac",
    ai: "application/postscript",
    aml: "application/automationml-aml+xml",
    amlx: "application/automationml-amlx+zip",
    amr: "audio/amr",
    apng: "image/apng",
    appcache: "text/cache-manifest",
    appinstaller: "application/appinstaller",
    appx: "application/appx",
    appxbundle: "application/appxbundle",
    asc: "application/pgp-keys",
    atom: "application/atom+xml",
    atomcat: "application/atomcat+xml",
    atomdeleted: "application/atomdeleted+xml",
    atomsvc: "application/atomsvc+xml",
    au: "audio/basic",
    avci: "image/avci",
    avcs: "image/avcs",
    avif: "image/avif",
    aw: "application/applixware",
    bdoc: "application/bdoc",
    bin: "application/octet-stream",
    bmp: "image/bmp",
    bpk: "application/octet-stream",
    btf: "image/prs.btif",
    btif: "image/prs.btif",
    buffer: "application/octet-stream",
    ccxml: "application/ccxml+xml",
    cdfx: "application/cdfx+xml",
    cdmia: "application/cdmi-capability",
    cdmic: "application/cdmi-container",
    cdmid: "application/cdmi-domain",
    cdmio: "application/cdmi-object",
    cdmiq: "application/cdmi-queue",
    cer: "application/pkix-cert",
    cgm: "image/cgm",
    cjs: "application/node",
    class: "application/java-vm",
    coffee: "text/coffeescript",
    conf: "text/plain",
    cpl: "application/cpl+xml",
    cpt: "application/mac-compactpro",
    crl: "application/pkix-crl",
    css: "text/css",
    csv: "text/csv",
    cu: "application/cu-seeme",
    cwl: "application/cwl",
    cww: "application/prs.cww",
    davmount: "application/davmount+xml",
    dbk: "application/docbook+xml",
    deb: "application/octet-stream",
    def: "text/plain",
    deploy: "application/octet-stream",
    dib: "image/bmp",
    "disposition-notification": "message/disposition-notification",
    dist: "application/octet-stream",
    distz: "application/octet-stream",
    dll: "application/octet-stream",
    dmg: "application/octet-stream",
    dms: "application/octet-stream",
    doc: "application/msword",
    dot: "application/msword",
    dpx: "image/dpx",
    drle: "image/dicom-rle",
    dsc: "text/prs.lines.tag",
    dssc: "application/dssc+der",
    dtd: "application/xml-dtd",
    dump: "application/octet-stream",
    dwd: "application/atsc-dwd+xml",
    ear: "application/java-archive",
    ecma: "application/ecmascript",
    elc: "application/octet-stream",
    emf: "image/emf",
    eml: "message/rfc822",
    emma: "application/emma+xml",
    emotionml: "application/emotionml+xml",
    eps: "application/postscript",
    epub: "application/epub+zip",
    exe: "application/octet-stream",
    exi: "application/exi",
    exp: "application/express",
    exr: "image/aces",
    ez: "application/andrew-inset",
    fdf: "application/fdf",
    fdt: "application/fdt+xml",
    fits: "image/fits",
    g3: "image/g3fax",
    gbr: "application/rpki-ghostbusters",
    geojson: "application/geo+json",
    gif: "image/gif",
    glb: "model/gltf-binary",
    gltf: "model/gltf+json",
    gml: "application/gml+xml",
    gpx: "application/gpx+xml",
    gram: "application/srgs",
    grxml: "application/srgs+xml",
    gxf: "application/gxf",
    gz: "application/gzip",
    h261: "video/h261",
    h263: "video/h263",
    h264: "video/h264",
    heic: "image/heic",
    heics: "image/heic-sequence",
    heif: "image/heif",
    heifs: "image/heif-sequence",
    hej2: "image/hej2k",
    held: "application/atsc-held+xml",
    hjson: "application/hjson",
    hlp: "application/winhlp",
    hqx: "application/mac-binhex40",
    hsj2: "image/hsj2",
    htm: "text/html",
    html: "text/html",
    ics: "text/calendar",
    ief: "image/ief",
    ifb: "text/calendar",
    iges: "model/iges",
    igs: "model/iges",
    img: "application/octet-stream",
    in: "text/plain",
    ini: "text/plain",
    ink: "application/inkml+xml",
    inkml: "application/inkml+xml",
    ipfix: "application/ipfix",
    iso: "application/octet-stream",
    its: "application/its+xml",
    jade: "text/jade",
    jar: "application/java-archive",
    jhc: "image/jphc",
    jls: "image/jls",
    jp2: "image/jp2",
    jpe: "image/jpeg",
    jpeg: "image/jpeg",
    jpf: "image/jpx",
    jpg: "image/jpeg",
    jpg2: "image/jp2",
    jpgm: "image/jpm",
    jpgv: "video/jpeg",
    jph: "image/jph",
    jpm: "image/jpm",
    jpx: "image/jpx",
    js: "text/javascript",
    json: "application/json",
    json5: "application/json5",
    jsonld: "application/ld+json",
    jsonml: "application/jsonml+json",
    jsx: "text/jsx",
    jt: "model/jt",
    jxl: "image/jxl",
    jxr: "image/jxr",
    jxra: "image/jxra",
    jxrs: "image/jxrs",
    jxs: "image/jxs",
    jxsc: "image/jxsc",
    jxsi: "image/jxsi",
    jxss: "image/jxss",
    kar: "audio/midi",
    ktx: "image/ktx",
    ktx2: "image/ktx2",
    less: "text/less",
    lgr: "application/lgr+xml",
    list: "text/plain",
    litcoffee: "text/coffeescript",
    log: "text/plain",
    lostxml: "application/lost+xml",
    lrf: "application/octet-stream",
    m1v: "video/mpeg",
    m21: "application/mp21",
    m2a: "audio/mpeg",
    m2t: "video/mp2t",
    m2ts: "video/mp2t",
    m2v: "video/mpeg",
    m3a: "audio/mpeg",
    m4a: "audio/mp4",
    m4p: "application/mp4",
    m4s: "video/iso.segment",
    ma: "application/mathematica",
    mads: "application/mads+xml",
    maei: "application/mmt-aei+xml",
    man: "text/troff",
    manifest: "text/cache-manifest",
    map: "application/json",
    mar: "application/octet-stream",
    markdown: "text/markdown",
    mathml: "application/mathml+xml",
    mb: "application/mathematica",
    mbox: "application/mbox",
    md: "text/markdown",
    mdx: "text/mdx",
    me: "text/troff",
    mesh: "model/mesh",
    meta4: "application/metalink4+xml",
    metalink: "application/metalink+xml",
    mets: "application/mets+xml",
    mft: "application/rpki-manifest",
    mid: "audio/midi",
    midi: "audio/midi",
    mime: "message/rfc822",
    mj2: "video/mj2",
    mjp2: "video/mj2",
    mjs: "text/javascript",
    mml: "text/mathml",
    mods: "application/mods+xml",
    mov: "video/quicktime",
    mp2: "audio/mpeg",
    mp21: "application/mp21",
    mp2a: "audio/mpeg",
    mp3: "audio/mpeg",
    mp4: "video/mp4",
    mp4a: "audio/mp4",
    mp4s: "application/mp4",
    mp4v: "video/mp4",
    mpd: "application/dash+xml",
    mpe: "video/mpeg",
    mpeg: "video/mpeg",
    mpf: "application/media-policy-dataset+xml",
    mpg: "video/mpeg",
    mpg4: "video/mp4",
    mpga: "audio/mpeg",
    mpp: "application/dash-patch+xml",
    mrc: "application/marc",
    mrcx: "application/marcxml+xml",
    ms: "text/troff",
    mscml: "application/mediaservercontrol+xml",
    msh: "model/mesh",
    msi: "application/octet-stream",
    msix: "application/msix",
    msixbundle: "application/msixbundle",
    msm: "application/octet-stream",
    msp: "application/octet-stream",
    mtl: "model/mtl",
    mts: "video/mp2t",
    musd: "application/mmt-usd+xml",
    mxf: "application/mxf",
    mxmf: "audio/mobile-xmf",
    mxml: "application/xv+xml",
    n3: "text/n3",
    nb: "application/mathematica",
    nq: "application/n-quads",
    nt: "application/n-triples",
    obj: "model/obj",
    oda: "application/oda",
    oga: "audio/ogg",
    ogg: "audio/ogg",
    ogv: "video/ogg",
    ogx: "application/ogg",
    omdoc: "application/omdoc+xml",
    onepkg: "application/onenote",
    onetmp: "application/onenote",
    onetoc: "application/onenote",
    onetoc2: "application/onenote",
    opf: "application/oebps-package+xml",
    opus: "audio/ogg",
    otf: "font/otf",
    owl: "application/rdf+xml",
    oxps: "application/oxps",
    p10: "application/pkcs10",
    p7c: "application/pkcs7-mime",
    p7m: "application/pkcs7-mime",
    p7s: "application/pkcs7-signature",
    p8: "application/pkcs8",
    pdf: "application/pdf",
    pfr: "application/font-tdpfr",
    pgp: "application/pgp-encrypted",
    pkg: "application/octet-stream",
    pki: "application/pkixcmp",
    pkipath: "application/pkix-pkipath",
    pls: "application/pls+xml",
    png: "image/png",
    prc: "model/prc",
    prf: "application/pics-rules",
    provx: "application/provenance+xml",
    ps: "application/postscript",
    pskcxml: "application/pskc+xml",
    pti: "image/prs.pti",
    qt: "video/quicktime",
    raml: "application/raml+yaml",
    rapd: "application/route-apd+xml",
    rdf: "application/rdf+xml",
    relo: "application/p2p-overlay+xml",
    rif: "application/reginfo+xml",
    rl: "application/resource-lists+xml",
    rld: "application/resource-lists-diff+xml",
    rmi: "audio/midi",
    rnc: "application/relax-ng-compact-syntax",
    rng: "application/xml",
    roa: "application/rpki-roa",
    roff: "text/troff",
    rq: "application/sparql-query",
    rs: "application/rls-services+xml",
    rsat: "application/atsc-rsat+xml",
    rsd: "application/rsd+xml",
    rsheet: "application/urc-ressheet+xml",
    rss: "application/rss+xml",
    rtf: "text/rtf",
    rtx: "text/richtext",
    rusd: "application/route-usd+xml",
    s3m: "audio/s3m",
    sbml: "application/sbml+xml",
    scq: "application/scvp-cv-request",
    scs: "application/scvp-cv-response",
    sdp: "application/sdp",
    senmlx: "application/senml+xml",
    sensmlx: "application/sensml+xml",
    ser: "application/java-serialized-object",
    setpay: "application/set-payment-initiation",
    setreg: "application/set-registration-initiation",
    sgi: "image/sgi",
    sgm: "text/sgml",
    sgml: "text/sgml",
    shex: "text/shex",
    shf: "application/shf+xml",
    shtml: "text/html",
    sieve: "application/sieve",
    sig: "application/pgp-signature",
    sil: "audio/silk",
    silo: "model/mesh",
    siv: "application/sieve",
    slim: "text/slim",
    slm: "text/slim",
    sls: "application/route-s-tsid+xml",
    smi: "application/smil+xml",
    smil: "application/smil+xml",
    snd: "audio/basic",
    so: "application/octet-stream",
    spdx: "text/spdx",
    spp: "application/scvp-vp-response",
    spq: "application/scvp-vp-request",
    spx: "audio/ogg",
    sql: "application/sql",
    sru: "application/sru+xml",
    srx: "application/sparql-results+xml",
    ssdl: "application/ssdl+xml",
    ssml: "application/ssml+xml",
    stk: "application/hyperstudio",
    stl: "model/stl",
    stpx: "model/step+xml",
    stpxz: "model/step-xml+zip",
    stpz: "model/step+zip",
    styl: "text/stylus",
    stylus: "text/stylus",
    svg: "image/svg+xml",
    svgz: "image/svg+xml",
    swidtag: "application/swid+xml",
    t: "text/troff",
    t38: "image/t38",
    td: "application/urc-targetdesc+xml",
    tei: "application/tei+xml",
    teicorpus: "application/tei+xml",
    text: "text/plain",
    tfi: "application/thraud+xml",
    tfx: "image/tiff-fx",
    tif: "image/tiff",
    tiff: "image/tiff",
    toml: "application/toml",
    tr: "text/troff",
    trig: "application/trig",
    ts: "video/mp2t",
    tsd: "application/timestamped-data",
    tsv: "text/tab-separated-values",
    ttc: "font/collection",
    ttf: "font/ttf",
    ttl: "text/turtle",
    ttml: "application/ttml+xml",
    txt: "text/plain",
    u3d: "model/u3d",
    u8dsn: "message/global-delivery-status",
    u8hdr: "message/global-headers",
    u8mdn: "message/global-disposition-notification",
    u8msg: "message/global",
    ubj: "application/ubjson",
    uri: "text/uri-list",
    uris: "text/uri-list",
    urls: "text/uri-list",
    vcard: "text/vcard",
    vrml: "model/vrml",
    vtt: "text/vtt",
    vxml: "application/voicexml+xml",
    war: "application/java-archive",
    wasm: "application/wasm",
    wav: "audio/wav",
    weba: "audio/webm",
    webm: "video/webm",
    webmanifest: "application/manifest+json",
    webp: "image/webp",
    wgsl: "text/wgsl",
    wgt: "application/widget",
    wif: "application/watcherinfo+xml",
    wmf: "image/wmf",
    woff: "font/woff",
    woff2: "font/woff2",
    wrl: "model/vrml",
    wsdl: "application/wsdl+xml",
    wspolicy: "application/wspolicy+xml",
    x3d: "model/x3d+xml",
    x3db: "model/x3d+fastinfoset",
    x3dbz: "model/x3d+binary",
    x3dv: "model/x3d-vrml",
    x3dvz: "model/x3d+vrml",
    x3dz: "model/x3d+xml",
    xaml: "application/xaml+xml",
    xav: "application/xcap-att+xml",
    xca: "application/xcap-caps+xml",
    xcs: "application/calendar+xml",
    xdf: "application/xcap-diff+xml",
    xdssc: "application/dssc+xml",
    xel: "application/xcap-el+xml",
    xenc: "application/xenc+xml",
    xer: "application/patch-ops-error+xml",
    xfdf: "application/xfdf",
    xht: "application/xhtml+xml",
    xhtml: "application/xhtml+xml",
    xhvml: "application/xv+xml",
    xlf: "application/xliff+xml",
    xm: "audio/xm",
    xml: "text/xml",
    xns: "application/xcap-ns+xml",
    xop: "application/xop+xml",
    xpl: "application/xproc+xml",
    xsd: "application/xml",
    xsf: "application/prs.xsf+xml",
    xsl: "application/xml",
    xslt: "application/xml",
    xspf: "application/xspf+xml",
    xvm: "application/xv+xml",
    xvml: "application/xv+xml",
    yaml: "text/yaml",
    yang: "application/yang",
    yin: "application/yin+xml",
    yml: "text/yaml",
    zip: "application/zip"
  };
  s(CM, "lookup");
});

// ../node_modules/sirv/build.js
var Pv = B((jee, Bv) => {
  var df = H("fs"), { join: wM, normalize: AM, resolve: FM } = H("path"), { totalist: SM } = (Cv(), Na(vv)), { parse: _M } = (ff(), Na(Av)),
  { lookup: kM } = (_v(), Na(Sv)), TM = /* @__PURE__ */ s(() => {
  }, "noop");
  function BM(e, t) {
    for (let r = 0; r < t.length; r++)
      if (t[r].test(e)) return !0;
  }
  s(BM, "isMatch");
  function kv(e, t) {
    let r = 0, i, n = e.length - 1;
    e.charCodeAt(n) === 47 && (e = e.substring(0, n));
    let a = [], u = `${e}/index`;
    for (; r < t.length; r++)
      i = t[r] ? `.${t[r]}` : "", e && a.push(e + i), a.push(u + i);
    return a;
  }
  s(kv, "toAssume");
  function PM(e, t, r) {
    let i = 0, n, a = kv(t, r);
    for (; i < a.length; i++)
      if (n = e[a[i]]) return n;
  }
  s(PM, "viaCache");
  function IM(e, t, r, i) {
    let n = 0, a = kv(r, i), u, o, l, c;
    for (; n < a.length; n++)
      if (u = AM(wM(e, l = a[n])), u.startsWith(e) && df.existsSync(u)) {
        if (o = df.statSync(u), o.isDirectory()) continue;
        return c = Tv(l, o, t), c["Cache-Control"] = t ? "no-cache" : "no-store", { abs: u, stats: o, headers: c };
      }
  }
  s(IM, "viaLocal");
  function OM(e, t) {
    return t.statusCode = 404, t.end();
  }
  s(OM, "is404");
  function RM(e, t, r, i, n) {
    let a = 200, u, o = {};
    n = { ...n };
    for (let l in n)
      u = t.getHeader(l), u && (n[l] = u);
    if ((u = t.getHeader("content-type")) && (n["Content-Type"] = u), e.headers.range) {
      a = 206;
      let [l, c] = e.headers.range.replace("bytes=", "").split("-"), h = o.end = parseInt(c, 10) || i.size - 1, p = o.start = parseInt(l, 10) ||
      0;
      if (h >= i.size && (h = i.size - 1), p >= i.size)
        return t.setHeader("Content-Range", `bytes */${i.size}`), t.statusCode = 416, t.end();
      n["Content-Range"] = `bytes ${p}-${h}/${i.size}`, n["Content-Length"] = h - p + 1, n["Accept-Ranges"] = "bytes";
    }
    t.writeHead(a, n), df.createReadStream(r, o).pipe(t);
  }
  s(RM, "send");
  var NM = {
    ".br": "br",
    ".gz": "gzip"
  };
  function Tv(e, t, r) {
    let i = NM[e.slice(-3)], n = kM(e.slice(0, i && -3)) || "";
    n === "text/html" && (n += ";charset=utf-8");
    let a = {
      "Content-Length": t.size,
      "Content-Type": n,
      "Last-Modified": t.mtime.toUTCString()
    };
    return i && (a["Content-Encoding"] = i), r && (a.ETag = `W/"${t.size}-${t.mtime.getTime()}"`), a;
  }
  s(Tv, "toHeaders");
  Bv.exports = function(e, t = {}) {
    e = FM(e || ".");
    let r = t.onNoMatch || OM, i = t.setHeaders || TM, n = t.extensions || ["html", "htm"], a = t.gzip && n.map((g) => `${g}.gz`).concat("gz"),
    u = t.brotli && n.map((g) => `${g}.br`).concat("br"), o = {}, l = "/", c = !!t.etag, h = !!t.single;
    if (typeof t.single == "string") {
      let g = t.single.lastIndexOf(".");
      l += ~g ? t.single.substring(0, g) : t.single;
    }
    let p = [];
    t.ignores !== !1 && (p.push(/[/]([A-Za-z\s\d~$._-]+\.\w+){1,}$/), t.dotfiles ? p.push(/\/\.\w/) : p.push(/\/\.well-known/), [].concat(t.
    ignores || []).forEach((g) => {
      p.push(new RegExp(g, "i"));
    }));
    let d = t.maxAge != null && `public,max-age=${t.maxAge}`;
    d && t.immutable ? d += ",immutable" : d && t.maxAge === 0 && (d += ",must-revalidate"), t.dev || SM(e, (g, D, v) => {
      if (!/\.well-known[\\+\/]/.test(g)) {
        if (!t.dotfiles && /(^\.|[\\+|\/+]\.)/.test(g)) return;
      }
      let y = Tv(g, v, c);
      d && (y["Cache-Control"] = d), o["/" + g.normalize().replace(/\\+/g, "/")] = { abs: D, stats: v, headers: y };
    });
    let m = t.dev ? IM.bind(0, e, c) : PM.bind(0, o);
    return function(g, D, v) {
      let y = [""], C = _M(g).pathname, S = g.headers["accept-encoding"] || "";
      if (a && S.includes("gzip") && y.unshift(...a), u && /(br|brotli)/i.test(S) && y.unshift(...u), y.push(...n), C.indexOf("%") !== -1)
        try {
          C = decodeURI(C);
        } catch {
        }
      let T = m(C, y) || h && !BM(C, p) && m(l, y);
      if (!T) return v ? v() : r(g, D);
      if (c && g.headers["if-none-match"] === T.headers.ETag)
        return D.writeHead(304), D.end();
      (a || u) && D.setHeader("Vary", "Accept-Encoding"), i(D, C, T.stats), RM(g, D, T.abs, T.stats, T.headers);
    };
  };
});

// ../node_modules/@discoveryjs/json-ext/package.json
var Xv = B((ote, XM) => {
  XM.exports = {
    name: "@discoveryjs/json-ext",
    version: "0.5.7",
    description: "A set of utilities that extend the use of JSON",
    keywords: [
      "json",
      "utils",
      "stream",
      "async",
      "promise",
      "stringify",
      "info"
    ],
    author: "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
    license: "MIT",
    repository: "discoveryjs/json-ext",
    main: "./src/index",
    browser: {
      "./src/stringify-stream.js": "./src/stringify-stream-browser.js",
      "./src/text-decoder.js": "./src/text-decoder-browser.js",
      "./src/version.js": "./dist/version.js"
    },
    types: "./index.d.ts",
    scripts: {
      test: "mocha --reporter progress",
      lint: "eslint src test",
      "lint-and-test": "npm run lint && npm test",
      build: "rollup --config",
      "test:all": "npm run test:src && npm run test:dist",
      "test:src": "npm test",
      "test:dist": "cross-env MODE=dist npm test && cross-env MODE=dist-min npm test",
      "build-and-test": "npm run build && npm run test:dist",
      coverage: "c8 --reporter=lcovonly npm test",
      prepublishOnly: "npm run lint && npm test && npm run build-and-test"
    },
    devDependencies: {
      "@rollup/plugin-commonjs": "^15.1.0",
      "@rollup/plugin-json": "^4.1.0",
      "@rollup/plugin-node-resolve": "^9.0.0",
      c8: "^7.10.0",
      chalk: "^4.1.0",
      "cross-env": "^7.0.3",
      eslint: "^8.10.0",
      mocha: "^8.4.0",
      rollup: "^2.28.2",
      "rollup-plugin-terser": "^7.0.2"
    },
    engines: {
      node: ">=10.0.0"
    },
    files: [
      "dist",
      "src",
      "index.d.ts"
    ]
  };
});

// ../node_modules/@discoveryjs/json-ext/src/version.js
var Kv = B((lte, Yv) => {
  Yv.exports = Xv().version;
});

// ../node_modules/@discoveryjs/json-ext/src/utils.js
var so = B((cte, Zv) => {
  var YM = {
    // JSON Single Character Escape Sequences
    8: "\\b",
    9: "\\t",
    10: "\\n",
    12: "\\f",
    13: "\\r",
    34: '\\"',
    92: "\\\\"
  };
  function KM(e) {
    return e >= 55296 && e <= 56319;
  }
  s(KM, "isLeadingSurrogate");
  function QM(e) {
    return e >= 56320 && e <= 57343;
  }
  s(QM, "isTrailingSurrogate");
  function Qv(e) {
    return typeof e.pipe == "function" && typeof e._read == "function" && typeof e._readableState == "object" && e._readableState !== null;
  }
  s(Qv, "isReadableStream");
  function ZM(e, t, r, i) {
    switch (r && typeof r.toJSON == "function" && (r = r.toJSON()), i !== null && (r = i.call(e, String(t), r)), typeof r) {
      case "function":
      case "symbol":
        r = void 0;
        break;
      case "object":
        if (r !== null) {
          let n = r.constructor;
          (n === String || n === Number || n === Boolean) && (r = r.valueOf());
        }
        break;
    }
    return r;
  }
  s(ZM, "replaceValue");
  function ej(e) {
    return e === null || typeof e != "object" ? 1 : Array.isArray(e) ? 3 : 2;
  }
  s(ej, "getTypeNative");
  function tj(e) {
    return e === null || typeof e != "object" ? 1 : typeof e.then == "function" ? 4 : Qv(e) ? e._readableState.objectMode ? 6 : 5 : Array.isArray(
    e) ? 3 : 2;
  }
  s(tj, "getTypeAsync");
  function rj(e) {
    return typeof e == "function" ? e : Array.isArray(e) ? [...new Set(
      e.map((r) => {
        let i = r && r.constructor;
        return i === String || i === Number ? String(r) : null;
      }).filter((r) => typeof r == "string")
    )] : null;
  }
  s(rj, "normalizeReplacer");
  function ij(e) {
    return typeof e == "number" ? !Number.isFinite(e) || e < 1 ? !1 : " ".repeat(Math.min(e, 10)) : typeof e == "string" && e.slice(0, 10) ||
    !1;
  }
  s(ij, "normalizeSpace");
  Zv.exports = {
    escapableCharCodeSubstitution: YM,
    isLeadingSurrogate: KM,
    isTrailingSurrogate: QM,
    type: {
      PRIMITIVE: 1,
      PROMISE: 4,
      ARRAY: 3,
      OBJECT: 2,
      STRING_STREAM: 5,
      OBJECT_STREAM: 6
    },
    isReadableStream: Qv,
    replaceValue: ZM,
    getTypeNative: ej,
    getTypeAsync: tj,
    normalizeReplacer: rj,
    normalizeSpace: ij
  };
});

// ../node_modules/@discoveryjs/json-ext/src/stringify-info.js
var iC = B((pte, rC) => {
  var {
    normalizeReplacer: nj,
    normalizeSpace: sj,
    replaceValue: aj,
    getTypeNative: uj,
    getTypeAsync: oj,
    isLeadingSurrogate: lj,
    isTrailingSurrogate: cj,
    escapableCharCodeSubstitution: hj,
    type: {
      PRIMITIVE: eC,
      OBJECT: pj,
      ARRAY: fj,
      PROMISE: dj,
      STRING_STREAM: mj,
      OBJECT_STREAM: gj
    }
  } = so(), Dj = Array.from({ length: 2048 }).map((e, t) => hj.hasOwnProperty(t) ? 2 : t < 32 ? 6 : t < 128 ? 1 : 2);
  function tC(e) {
    let t = 0, r = !1;
    for (let i = 0; i < e.length; i++) {
      let n = e.charCodeAt(i);
      if (n < 2048)
        t += Dj[n];
      else if (lj(n)) {
        t += 6, r = !0;
        continue;
      } else cj(n) ? t = r ? t - 2 : t + 6 : t += 3;
      r = !1;
    }
    return t + 2;
  }
  s(tC, "stringLength");
  function yj(e) {
    switch (typeof e) {
      case "string":
        return tC(e);
      case "number":
        return Number.isFinite(e) ? String(e).length : 4;
      case "boolean":
        return e ? 4 : 5;
      case "undefined":
      case "object":
        return 4;
      /* null */
      default:
        return 0;
    }
  }
  s(yj, "primitiveLength");
  function xj(e) {
    return e = sj(e), typeof e == "string" ? e.length : 0;
  }
  s(xj, "spaceLength");
  rC.exports = /* @__PURE__ */ s(function(t, r, i, n) {
    function a(v, y, C) {
      if (g)
        return;
      C = aj(v, y, C, r);
      let S = d(C);
      if (S !== eC && l.has(C)) {
        h.add(C), D += 4, n.continueOnCircular || (g = !0);
        return;
      }
      switch (S) {
        case eC:
          C !== void 0 || Array.isArray(v) ? D += yj(C) : v === m && (D += 9);
          break;
        case pj: {
          if (o.has(C)) {
            c.add(C), D += o.get(C);
            break;
          }
          let T = D, j = 0;
          D += 2, l.add(C);
          for (let w in C)
            if (hasOwnProperty.call(C, w) && (u === null || u.has(w))) {
              let A = D;
              a(C, w, C[w]), A !== D && (D += tC(w) + 1, j++);
            }
          j > 1 && (D += j - 1), l.delete(C), i > 0 && j > 0 && (D += (1 + (l.size + 1) * i + 1) * j, D += 1 + l.size * i), o.set(C, D - T);
          break;
        }
        case fj: {
          if (o.has(C)) {
            c.add(C), D += o.get(C);
            break;
          }
          let T = D;
          D += 2, l.add(C);
          for (let j = 0; j < C.length; j++)
            a(C, j, C[j]);
          C.length > 1 && (D += C.length - 1), l.delete(C), i > 0 && C.length > 0 && (D += (1 + (l.size + 1) * i) * C.length, D += 1 + l.size *
          i), o.set(C, D - T);
          break;
        }
        case dj:
        case mj:
          p.add(C);
          break;
        case gj:
          D += 2, p.add(C);
          break;
      }
    }
    s(a, "walk");
    let u = null;
    r = nj(r), Array.isArray(r) && (u = new Set(r), r = null), i = xj(i), n = n || {};
    let o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(),
    d = n.async ? oj : uj, m = { "": t }, g = !1, D = 0;
    return a(m, "", t), {
      minLength: isNaN(D) ? 1 / 0 : D,
      circular: [...h],
      duplicate: [...c],
      async: [...p]
    };
  }, "jsonStringifyInfo");
});

// ../node_modules/@discoveryjs/json-ext/src/stringify-stream.js
var pC = B((dte, hC) => {
  var { Readable: Ej } = H("stream"), {
    normalizeReplacer: bj,
    normalizeSpace: vj,
    replaceValue: Cj,
    getTypeAsync: wj,
    type: {
      PRIMITIVE: Aj,
      OBJECT: Fj,
      ARRAY: Sj,
      PROMISE: _j,
      STRING_STREAM: kj,
      OBJECT_STREAM: yf
    }
  } = so(), nC = /* @__PURE__ */ s(() => {
  }, "noop"), Tj = Object.prototype.hasOwnProperty, Bj = JSON.stringify("\uD800") === '"\\ud800"' ? JSON.stringify : (e) => JSON.stringify(e).
  replace(
    new RegExp("\\p{Surrogate}", "gu"),
    (t) => `\\u${t.charCodeAt(0).toString(16)}`
  );
  function Pj() {
    this.push(this._stack.value), this.popStack();
  }
  s(Pj, "push");
  function Ij(e) {
    switch (typeof e) {
      case "string":
        this.push(this.encodeString(e));
        break;
      case "number":
        this.push(Number.isFinite(e) ? this.encodeNumber(e) : "null");
        break;
      case "boolean":
        this.push(e ? "true" : "false");
        break;
      case "undefined":
      case "object":
        this.push("null");
        break;
      default:
        this.destroy(new TypeError(`Do not know how to serialize a ${e.constructor && e.constructor.name || typeof e}`));
    }
  }
  s(Ij, "pushPrimitive");
  function oC(e) {
    let t = this._stack;
    t.first ? this.push(",") : t.first = !0, this.space ? this.push(`
${this.space.repeat(this._depth)}${this.encodeString(e)}: `) : this.push(this.encodeString(e) + ":");
  }
  s(oC, "processObjectEntry");
  function sC() {
    let e = this._stack;
    if (e.index === e.keys.length) {
      this.space && e.first ? this.push(`
${this.space.repeat(this._depth - 1)}}`) : this.push("}"), this.popStack();
      return;
    }
    let t = e.keys[e.index];
    this.processValue(e.value, t, e.value[t], oC), e.index++;
  }
  s(sC, "processObject");
  function lC(e) {
    e !== 0 && this.push(","), this.space && this.push(`
${this.space.repeat(this._depth)}`);
  }
  s(lC, "processArrayItem");
  function aC() {
    let e = this._stack;
    if (e.index === e.value.length) {
      this.space && e.index > 0 ? this.push(`
${this.space.repeat(this._depth - 1)}]`) : this.push("]"), this.popStack();
      return;
    }
    this.processValue(e.value, e.index, e.value[e.index], lC), e.index++;
  }
  s(aC, "processArray");
  function cC(e) {
    return function() {
      let t = this._stack, r = t.value.read(this._readSize);
      r !== null ? (t.first = !1, e.call(this, r, t)) : t.first && !t.value._readableState.reading || t.ended ? this.popStack() : (t.first =
      !0, t.awaiting = !0);
    };
  }
  s(cC, "createStreamReader");
  var uC = cC(function(e, t) {
    this.processValue(t.value, t.index, e, lC), t.index++;
  }), Oj = cC(function(e) {
    this.push(e);
  }), xf = class extends Ej {
    static {
      s(this, "JsonStringifyStream");
    }
    constructor(t, r, i) {
      if (super({
        autoDestroy: !0
      }), this.getKeys = Object.keys, this.replacer = bj(r), Array.isArray(this.replacer)) {
        let n = this.replacer;
        this.getKeys = (a) => n.filter((u) => Tj.call(a, u)), this.replacer = null;
      }
      this.space = vj(i), this._depth = 0, this.error = null, this._processing = !1, this._ended = !1, this._readSize = 0, this._buffer = "",
      this._stack = null, this._visited = /* @__PURE__ */ new WeakSet(), this.pushStack({
        handler: /* @__PURE__ */ s(() => {
          this.popStack(), this.processValue({ "": t }, "", t, nC);
        }, "handler")
      });
    }
    encodeString(t) {
      return /[^\x20-\uD799]|[\x22\x5c]/.test(t) ? Bj(t) : '"' + t + '"';
    }
    encodeNumber(t) {
      return t;
    }
    processValue(t, r, i, n) {
      i = Cj(t, r, i, this.replacer);
      let a = wj(i);
      switch (a) {
        case Aj:
          (n !== oC || i !== void 0) && (n.call(this, r), Ij.call(this, i));
          break;
        case Fj:
          if (n.call(this, r), this._visited.has(i))
            return this.destroy(new TypeError("Converting circular structure to JSON"));
          this._visited.add(i), this._depth++, this.push("{"), this.pushStack({
            handler: sC,
            value: i,
            index: 0,
            first: !1,
            keys: this.getKeys(i)
          });
          break;
        case Sj:
          if (n.call(this, r), this._visited.has(i))
            return this.destroy(new TypeError("Converting circular structure to JSON"));
          this._visited.add(i), this.push("["), this.pushStack({
            handler: aC,
            value: i,
            index: 0
          }), this._depth++;
          break;
        case _j:
          this.pushStack({
            handler: nC,
            awaiting: !0
          }), Promise.resolve(i).then((l) => {
            this.popStack(), this.processValue(t, r, l, n), this.processStack();
          }).catch((l) => {
            this.destroy(l);
          });
          break;
        case kj:
        case yf:
          if (n.call(this, r), i.readableEnded || i._readableState.endEmitted)
            return this.destroy(new Error("Readable Stream has ended before it was serialized. All stream data have been lost"));
          if (i.readableFlowing)
            return this.destroy(new Error("Readable Stream is in flowing mode, data may have been lost. Trying to pause stream."));
          a === yf && (this.push("["), this.pushStack({
            handler: Pj,
            value: this.space ? `
` + this.space.repeat(this._depth) + "]" : "]"
          }), this._depth++);
          let u = this.pushStack({
            handler: a === yf ? uC : Oj,
            value: i,
            index: 0,
            first: !1,
            ended: !1,
            awaiting: !i.readable || i.readableLength === 0
          }), o = /* @__PURE__ */ s(() => {
            u.awaiting && (u.awaiting = !1, this.processStack());
          }, "continueProcessing");
          i.once("error", (l) => this.destroy(l)), i.once("end", () => {
            u.ended = !0, o();
          }), i.on("readable", o);
          break;
      }
    }
    pushStack(t) {
      return t.prev = this._stack, this._stack = t;
    }
    popStack() {
      let { handler: t, value: r } = this._stack;
      (t === sC || t === aC || t === uC) && (this._visited.delete(r), this._depth--), this._stack = this._stack.prev;
    }
    processStack() {
      if (!(this._processing || this._ended)) {
        try {
          for (this._processing = !0; this._stack !== null && !this._stack.awaiting; )
            if (this._stack.handler.call(this), !this._processing)
              return;
          this._processing = !1;
        } catch (t) {
          this.destroy(t);
          return;
        }
        this._stack === null && !this._ended && (this._finish(), this.push(null));
      }
    }
    push(t) {
      if (t !== null) {
        if (this._buffer += t, this._buffer.length < this._readSize)
          return;
        t = this._buffer, this._buffer = "", this._processing = !1;
      }
      super.push(t);
    }
    _read(t) {
      this._readSize = t || this.readableHighWaterMark, this.processStack();
    }
    _finish() {
      this._ended = !0, this._processing = !1, this._stack = null, this._visited = null, this._buffer && this._buffer.length && super.push(this.
      _buffer), this._buffer = "";
    }
    _destroy(t, r) {
      this.error = this.error || t, this._finish(), r(t);
    }
  };
  hC.exports = /* @__PURE__ */ s(function(t, r, i) {
    return new xf(t, r, i);
  }, "createJsonStringifyStream");
});

// ../node_modules/@discoveryjs/json-ext/src/text-decoder.js
var dC = B((gte, fC) => {
  fC.exports = H("util").TextDecoder;
});

// ../node_modules/@discoveryjs/json-ext/src/parse-chunked.js
var DC = B((Dte, gC) => {
  var { isReadableStream: Rj } = so(), Nj = dC(), ia = 1, Lj = 2, Mj = new Nj();
  function mC(e) {
    return e !== null && typeof e == "object";
  }
  s(mC, "isObject");
  function Ef(e, t) {
    return e.name === "SyntaxError" && t.jsonParseOffset && (e.message = e.message.replace(
      /at position (\d+)/,
      (r, i) => "at position " + (Number(i) + t.jsonParseOffset)
    )), e;
  }
  s(Ef, "adjustPosition");
  function jj(e, t) {
    let r = e.length;
    e.length += t.length;
    for (let i = 0; i < t.length; i++)
      e[r + i] = t[i];
  }
  s(jj, "append");
  gC.exports = function(e) {
    let t = new bf();
    if (mC(e) && Rj(e))
      return new Promise((r, i) => {
        e.on("data", (n) => {
          try {
            t.push(n);
          } catch (a) {
            i(Ef(a, t)), t = null;
          }
        }).on("error", (n) => {
          t = null, i(n);
        }).on("end", () => {
          try {
            r(t.finish());
          } catch (n) {
            i(Ef(n, t));
          } finally {
            t = null;
          }
        });
      });
    if (typeof e == "function") {
      let r = e();
      if (mC(r) && (Symbol.iterator in r || Symbol.asyncIterator in r))
        return new Promise(async (i, n) => {
          try {
            for await (let a of r)
              t.push(a);
            i(t.finish());
          } catch (a) {
            n(Ef(a, t));
          } finally {
            t = null;
          }
        });
    }
    throw new Error(
      "Chunk emitter should be readable stream, generator, async generator or function returning an iterable object"
    );
  };
  var bf = class {
    static {
      s(this, "ChunkParser");
    }
    constructor() {
      this.value = void 0, this.valueStack = null, this.stack = new Array(100), this.lastFlushDepth = 0, this.flushDepth = 0, this.stateString =
      !1, this.stateStringEscape = !1, this.pendingByteSeq = null, this.pendingChunk = null, this.chunkOffset = 0, this.jsonParseOffset = 0;
    }
    parseAndAppend(t, r) {
      this.stack[this.lastFlushDepth - 1] === ia ? (r && (this.jsonParseOffset--, t = "{" + t + "}"), Object.assign(this.valueStack.value, JSON.
      parse(t))) : (r && (this.jsonParseOffset--, t = "[" + t + "]"), jj(this.valueStack.value, JSON.parse(t)));
    }
    prepareAddition(t) {
      let { value: r } = this.valueStack;
      if (Array.isArray(r) ? r.length !== 0 : Object.keys(r).length !== 0) {
        if (t[0] === ",")
          return this.jsonParseOffset++, t.slice(1);
        if (t[0] !== "}" && t[0] !== "]")
          return this.jsonParseOffset -= 3, "[[]" + t;
      }
      return t;
    }
    flush(t, r, i) {
      let n = t.slice(r, i);
      if (this.jsonParseOffset = this.chunkOffset + r, this.pendingChunk !== null && (n = this.pendingChunk + n, this.jsonParseOffset -= this.
      pendingChunk.length, this.pendingChunk = null), this.flushDepth === this.lastFlushDepth)
        this.flushDepth > 0 ? this.parseAndAppend(this.prepareAddition(n), !0) : (this.value = JSON.parse(n), this.valueStack = {
          value: this.value,
          prev: null
        });
      else if (this.flushDepth > this.lastFlushDepth) {
        for (let a = this.flushDepth - 1; a >= this.lastFlushDepth; a--)
          n += this.stack[a] === ia ? "}" : "]";
        this.lastFlushDepth === 0 ? (this.value = JSON.parse(n), this.valueStack = {
          value: this.value,
          prev: null
        }) : this.parseAndAppend(this.prepareAddition(n), !0);
        for (let a = this.lastFlushDepth || 1; a < this.flushDepth; a++) {
          let u = this.valueStack.value;
          if (this.stack[a - 1] === ia) {
            let o;
            for (o in u) ;
            u = u[o];
          } else
            u = u[u.length - 1];
          this.valueStack = {
            value: u,
            prev: this.valueStack
          };
        }
      } else {
        n = this.prepareAddition(n);
        for (let a = this.lastFlushDepth - 1; a >= this.flushDepth; a--)
          this.jsonParseOffset--, n = (this.stack[a] === ia ? "{" : "[") + n;
        this.parseAndAppend(n, !1);
        for (let a = this.lastFlushDepth - 1; a >= this.flushDepth; a--)
          this.valueStack = this.valueStack.prev;
      }
      this.lastFlushDepth = this.flushDepth;
    }
    push(t) {
      if (typeof t != "string") {
        if (this.pendingByteSeq !== null) {
          let a = t;
          t = new Uint8Array(this.pendingByteSeq.length + a.length), t.set(this.pendingByteSeq), t.set(a, this.pendingByteSeq.length), this.
          pendingByteSeq = null;
        }
        if (t[t.length - 1] > 127)
          for (let a = 0; a < t.length; a++) {
            let u = t[t.length - 1 - a];
            if (u >> 6 === 3) {
              a++, (a !== 4 && u >> 3 === 30 || a !== 3 && u >> 4 === 14 || a !== 2 && u >> 5 === 6) && (this.pendingByteSeq = t.slice(t.length -
              a), t = t.slice(0, -a));
              break;
            }
          }
        t = Mj.decode(t);
      }
      let r = t.length, i = 0, n = 0;
      e: for (let a = 0; a < r; a++) {
        if (this.stateString) {
          for (; a < r; a++)
            if (this.stateStringEscape)
              this.stateStringEscape = !1;
            else
              switch (t.charCodeAt(a)) {
                case 34:
                  this.stateString = !1;
                  continue e;
                case 92:
                  this.stateStringEscape = !0;
              }
          break;
        }
        switch (t.charCodeAt(a)) {
          case 34:
            this.stateString = !0, this.stateStringEscape = !1;
            break;
          case 44:
            n = a;
            break;
          case 123:
            n = a + 1, this.stack[this.flushDepth++] = ia;
            break;
          case 91:
            n = a + 1, this.stack[this.flushDepth++] = Lj;
            break;
          case 93:
          /* ] */
          case 125:
            n = a + 1, this.flushDepth--, this.flushDepth < this.lastFlushDepth && (this.flush(t, i, n), i = n);
            break;
          case 9:
          /* \t */
          case 10:
          /* \n */
          case 13:
          /* \r */
          case 32:
            i === a && i++, n === a && n++;
            break;
        }
      }
      n > i && this.flush(t, i, n), n < r && (this.pendingChunk !== null ? this.pendingChunk += t : this.pendingChunk = t.slice(n, r)), this.
      chunkOffset += r;
    }
    finish() {
      return this.pendingChunk !== null && (this.flush("", 0, 0), this.pendingChunk = null), this.value;
    }
  };
});

// ../node_modules/@discoveryjs/json-ext/src/index.js
var xC = B((xte, yC) => {
  yC.exports = {
    version: Kv(),
    stringifyInfo: iC(),
    stringifyStream: pC(),
    parseChunked: DC()
  };
});

// ../node_modules/graceful-fs/polyfills.js
var AC = B((Pte, wC) => {
  var Ti = H("constants"), Vj = process.cwd, uo = null, Uj = process.env.GRACEFUL_FS_PLATFORM || process.platform;
  process.cwd = function() {
    return uo || (uo = Vj.call(process)), uo;
  };
  try {
    process.cwd();
  } catch {
  }
  typeof process.chdir == "function" && (wf = process.chdir, process.chdir = function(e) {
    uo = null, wf.call(process, e);
  }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, wf));
  var wf;
  wC.exports = zj;
  function zj(e) {
    Ti.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || r(e), e.chown = a(e.chown), e.fchown =
    a(e.fchown), e.lchown = a(e.lchown), e.chmod = i(e.chmod), e.fchmod = i(e.fchmod), e.lchmod = i(e.lchmod), e.chownSync = u(e.chownSync),
    e.fchownSync = u(e.fchownSync), e.lchownSync = u(e.lchownSync), e.chmodSync = n(e.chmodSync), e.fchmodSync = n(e.fchmodSync), e.lchmodSync =
    n(e.lchmodSync), e.stat = o(e.stat), e.fstat = o(e.fstat), e.lstat = o(e.lstat), e.statSync = l(e.statSync), e.fstatSync = l(e.fstatSync),
    e.lstatSync = l(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(h, p, d) {
      d && process.nextTick(d);
    }, e.lchmodSync = function() {
    }), e.chown && !e.lchown && (e.lchown = function(h, p, d, m) {
      m && process.nextTick(m);
    }, e.lchownSync = function() {
    }), Uj === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(h) {
      function p(d, m, g) {
        var D = Date.now(), v = 0;
        h(d, m, /* @__PURE__ */ s(function y(C) {
          if (C && (C.code === "EACCES" || C.code === "EPERM" || C.code === "EBUSY") && Date.now() - D < 6e4) {
            setTimeout(function() {
              e.stat(m, function(S, T) {
                S && S.code === "ENOENT" ? h(d, m, y) : g(C);
              });
            }, v), v < 100 && (v += 10);
            return;
          }
          g && g(C);
        }, "CB"));
      }
      return s(p, "rename"), Object.setPrototypeOf && Object.setPrototypeOf(p, h), p;
    }(e.rename)), e.read = typeof e.read != "function" ? e.read : function(h) {
      function p(d, m, g, D, v, y) {
        var C;
        if (y && typeof y == "function") {
          var S = 0;
          C = /* @__PURE__ */ s(function(T, j, w) {
            if (T && T.code === "EAGAIN" && S < 10)
              return S++, h.call(e, d, m, g, D, v, C);
            y.apply(this, arguments);
          }, "callback");
        }
        return h.call(e, d, m, g, D, v, C);
      }
      return s(p, "read"), Object.setPrototypeOf && Object.setPrototypeOf(p, h), p;
    }(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : /* @__PURE__ */ function(h) {
      return function(p, d, m, g, D) {
        for (var v = 0; ; )
          try {
            return h.call(e, p, d, m, g, D);
          } catch (y) {
            if (y.code === "EAGAIN" && v < 10) {
              v++;
              continue;
            }
            throw y;
          }
      };
    }(e.readSync);
    function t(h) {
      h.lchmod = function(p, d, m) {
        h.open(
          p,
          Ti.O_WRONLY | Ti.O_SYMLINK,
          d,
          function(g, D) {
            if (g) {
              m && m(g);
              return;
            }
            h.fchmod(D, d, function(v) {
              h.close(D, function(y) {
                m && m(v || y);
              });
            });
          }
        );
      }, h.lchmodSync = function(p, d) {
        var m = h.openSync(p, Ti.O_WRONLY | Ti.O_SYMLINK, d), g = !0, D;
        try {
          D = h.fchmodSync(m, d), g = !1;
        } finally {
          if (g)
            try {
              h.closeSync(m);
            } catch {
            }
          else
            h.closeSync(m);
        }
        return D;
      };
    }
    s(t, "patchLchmod");
    function r(h) {
      Ti.hasOwnProperty("O_SYMLINK") && h.futimes ? (h.lutimes = function(p, d, m, g) {
        h.open(p, Ti.O_SYMLINK, function(D, v) {
          if (D) {
            g && g(D);
            return;
          }
          h.futimes(v, d, m, function(y) {
            h.close(v, function(C) {
              g && g(y || C);
            });
          });
        });
      }, h.lutimesSync = function(p, d, m) {
        var g = h.openSync(p, Ti.O_SYMLINK), D, v = !0;
        try {
          D = h.futimesSync(g, d, m), v = !1;
        } finally {
          if (v)
            try {
              h.closeSync(g);
            } catch {
            }
          else
            h.closeSync(g);
        }
        return D;
      }) : h.futimes && (h.lutimes = function(p, d, m, g) {
        g && process.nextTick(g);
      }, h.lutimesSync = function() {
      });
    }
    s(r, "patchLutimes");
    function i(h) {
      return h && function(p, d, m) {
        return h.call(e, p, d, function(g) {
          c(g) && (g = null), m && m.apply(this, arguments);
        });
      };
    }
    s(i, "chmodFix");
    function n(h) {
      return h && function(p, d) {
        try {
          return h.call(e, p, d);
        } catch (m) {
          if (!c(m)) throw m;
        }
      };
    }
    s(n, "chmodFixSync");
    function a(h) {
      return h && function(p, d, m, g) {
        return h.call(e, p, d, m, function(D) {
          c(D) && (D = null), g && g.apply(this, arguments);
        });
      };
    }
    s(a, "chownFix");
    function u(h) {
      return h && function(p, d, m) {
        try {
          return h.call(e, p, d, m);
        } catch (g) {
          if (!c(g)) throw g;
        }
      };
    }
    s(u, "chownFixSync");
    function o(h) {
      return h && function(p, d, m) {
        typeof d == "function" && (m = d, d = null);
        function g(D, v) {
          v && (v.uid < 0 && (v.uid += 4294967296), v.gid < 0 && (v.gid += 4294967296)), m && m.apply(this, arguments);
        }
        return s(g, "callback"), d ? h.call(e, p, d, g) : h.call(e, p, g);
      };
    }
    s(o, "statFix");
    function l(h) {
      return h && function(p, d) {
        var m = d ? h.call(e, p, d) : h.call(e, p);
        return m && (m.uid < 0 && (m.uid += 4294967296), m.gid < 0 && (m.gid += 4294967296)), m;
      };
    }
    s(l, "statFixSync");
    function c(h) {
      if (!h || h.code === "ENOSYS")
        return !0;
      var p = !process.getuid || process.getuid() !== 0;
      return !!(p && (h.code === "EINVAL" || h.code === "EPERM"));
    }
    s(c, "chownErOk");
  }
  s(zj, "patch");
});

// ../node_modules/graceful-fs/legacy-streams.js
var _C = B((Ote, SC) => {
  var FC = H("stream").Stream;
  SC.exports = Hj;
  function Hj(e) {
    return {
      ReadStream: t,
      WriteStream: r
    };
    function t(i, n) {
      if (!(this instanceof t)) return new t(i, n);
      FC.call(this);
      var a = this;
      this.path = i, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, n =
      n || {};
      for (var u = Object.keys(n), o = 0, l = u.length; o < l; o++) {
        var c = u[o];
        this[c] = n[c];
      }
      if (this.encoding && this.setEncoding(this.encoding), this.start !== void 0) {
        if (typeof this.start != "number")
          throw TypeError("start must be a Number");
        if (this.end === void 0)
          this.end = 1 / 0;
        else if (typeof this.end != "number")
          throw TypeError("end must be a Number");
        if (this.start > this.end)
          throw new Error("start must be <= end");
        this.pos = this.start;
      }
      if (this.fd !== null) {
        process.nextTick(function() {
          a._read();
        });
        return;
      }
      e.open(this.path, this.flags, this.mode, function(h, p) {
        if (h) {
          a.emit("error", h), a.readable = !1;
          return;
        }
        a.fd = p, a.emit("open", p), a._read();
      });
    }
    function r(i, n) {
      if (!(this instanceof r)) return new r(i, n);
      FC.call(this), this.path = i, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten =
      0, n = n || {};
      for (var a = Object.keys(n), u = 0, o = a.length; u < o; u++) {
        var l = a[u];
        this[l] = n[l];
      }
      if (this.start !== void 0) {
        if (typeof this.start != "number")
          throw TypeError("start must be a Number");
        if (this.start < 0)
          throw new Error("start must be >= zero");
        this.pos = this.start;
      }
      this.busy = !1, this._queue = [], this.fd === null && (this._open = e.open, this._queue.push([this._open, this.path, this.flags, this.
      mode, void 0]), this.flush());
    }
  }
  s(Hj, "legacy");
});

// ../node_modules/graceful-fs/clone.js
var TC = B((Nte, kC) => {
  "use strict";
  kC.exports = Jj;
  var Wj = Object.getPrototypeOf || function(e) {
    return e.__proto__;
  };
  function Jj(e) {
    if (e === null || typeof e != "object")
      return e;
    if (e instanceof Object)
      var t = { __proto__: Wj(e) };
    else
      var t = /* @__PURE__ */ Object.create(null);
    return Object.getOwnPropertyNames(e).forEach(function(r) {
      Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
    }), t;
  }
  s(Jj, "clone");
});

// ../node_modules/graceful-fs/graceful-fs.js
var OC = B((Mte, Sf) => {
  var He = H("fs"), Gj = AC(), Xj = _C(), Yj = TC(), oo = H("util"), pt, co;
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (pt = Symbol.for("graceful-fs.queue"), co = Symbol.for("graceful-fs.previ\
ous")) : (pt = "___graceful-fs.queue", co = "___graceful-fs.previous");
  function Kj() {
  }
  s(Kj, "noop");
  function IC(e, t) {
    Object.defineProperty(e, pt, {
      get: /* @__PURE__ */ s(function() {
        return t;
      }, "get")
    });
  }
  s(IC, "publishQueue");
  var rn = Kj;
  oo.debuglog ? rn = oo.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (rn = /* @__PURE__ */ s(function() {
    var e = oo.format.apply(oo, arguments);
    e = "GFS4: " + e.split(/\n/).join(`
GFS4: `), console.error(e);
  }, "debug"));
  He[pt] || (BC = global[pt] || [], IC(He, BC), He.close = function(e) {
    function t(r, i) {
      return e.call(He, r, function(n) {
        n || PC(), typeof i == "function" && i.apply(this, arguments);
      });
    }
    return s(t, "close"), Object.defineProperty(t, co, {
      value: e
    }), t;
  }(He.close), He.closeSync = function(e) {
    function t(r) {
      e.apply(He, arguments), PC();
    }
    return s(t, "closeSync"), Object.defineProperty(t, co, {
      value: e
    }), t;
  }(He.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
    rn(He[pt]), H("assert").equal(He[pt].length, 0);
  }));
  var BC;
  global[pt] || IC(global, He[pt]);
  Sf.exports = Af(Yj(He));
  process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !He.__patched && (Sf.exports = Af(He), He.__patched = !0);
  function Af(e) {
    Gj(e), e.gracefulify = Af, e.createReadStream = j, e.createWriteStream = w;
    var t = e.readFile;
    e.readFile = r;
    function r(k, $, M) {
      return typeof $ == "function" && (M = $, $ = null), V(k, $, M);
      function V(U, G, R, N) {
        return t(U, G, function(z) {
          z && (z.code === "EMFILE" || z.code === "ENFILE") ? Yn([V, [U, G, R], z, N || Date.now(), Date.now()]) : typeof R == "function" &&
          R.apply(this, arguments);
        });
      }
      s(V, "go$readFile");
    }
    s(r, "readFile");
    var i = e.writeFile;
    e.writeFile = n;
    function n(k, $, M, V) {
      return typeof M == "function" && (V = M, M = null), U(k, $, M, V);
      function U(G, R, N, z, Q) {
        return i(G, R, N, function(te) {
          te && (te.code === "EMFILE" || te.code === "ENFILE") ? Yn([U, [G, R, N, z], te, Q || Date.now(), Date.now()]) : typeof z == "funct\
ion" && z.apply(this, arguments);
        });
      }
      s(U, "go$writeFile");
    }
    s(n, "writeFile");
    var a = e.appendFile;
    a && (e.appendFile = u);
    function u(k, $, M, V) {
      return typeof M == "function" && (V = M, M = null), U(k, $, M, V);
      function U(G, R, N, z, Q) {
        return a(G, R, N, function(te) {
          te && (te.code === "EMFILE" || te.code === "ENFILE") ? Yn([U, [G, R, N, z], te, Q || Date.now(), Date.now()]) : typeof z == "funct\
ion" && z.apply(this, arguments);
        });
      }
      s(U, "go$appendFile");
    }
    s(u, "appendFile");
    var o = e.copyFile;
    o && (e.copyFile = l);
    function l(k, $, M, V) {
      return typeof M == "function" && (V = M, M = 0), U(k, $, M, V);
      function U(G, R, N, z, Q) {
        return o(G, R, N, function(te) {
          te && (te.code === "EMFILE" || te.code === "ENFILE") ? Yn([U, [G, R, N, z], te, Q || Date.now(), Date.now()]) : typeof z == "funct\
ion" && z.apply(this, arguments);
        });
      }
      s(U, "go$copyFile");
    }
    s(l, "copyFile");
    var c = e.readdir;
    e.readdir = p;
    var h = /^v[0-5]\./;
    function p(k, $, M) {
      typeof $ == "function" && (M = $, $ = null);
      var V = h.test(process.version) ? /* @__PURE__ */ s(function(R, N, z, Q) {
        return c(R, U(
          R,
          N,
          z,
          Q
        ));
      }, "go$readdir") : /* @__PURE__ */ s(function(R, N, z, Q) {
        return c(R, N, U(
          R,
          N,
          z,
          Q
        ));
      }, "go$readdir");
      return V(k, $, M);
      function U(G, R, N, z) {
        return function(Q, te) {
          Q && (Q.code === "EMFILE" || Q.code === "ENFILE") ? Yn([
            V,
            [G, R, N],
            Q,
            z || Date.now(),
            Date.now()
          ]) : (te && te.sort && te.sort(), typeof N == "function" && N.call(this, Q, te));
        };
      }
    }
    if (s(p, "readdir"), process.version.substr(0, 4) === "v0.8") {
      var d = Xj(e);
      y = d.ReadStream, S = d.WriteStream;
    }
    var m = e.ReadStream;
    m && (y.prototype = Object.create(m.prototype), y.prototype.open = C);
    var g = e.WriteStream;
    g && (S.prototype = Object.create(g.prototype), S.prototype.open = T), Object.defineProperty(e, "ReadStream", {
      get: /* @__PURE__ */ s(function() {
        return y;
      }, "get"),
      set: /* @__PURE__ */ s(function(k) {
        y = k;
      }, "set"),
      enumerable: !0,
      configurable: !0
    }), Object.defineProperty(e, "WriteStream", {
      get: /* @__PURE__ */ s(function() {
        return S;
      }, "get"),
      set: /* @__PURE__ */ s(function(k) {
        S = k;
      }, "set"),
      enumerable: !0,
      configurable: !0
    });
    var D = y;
    Object.defineProperty(e, "FileReadStream", {
      get: /* @__PURE__ */ s(function() {
        return D;
      }, "get"),
      set: /* @__PURE__ */ s(function(k) {
        D = k;
      }, "set"),
      enumerable: !0,
      configurable: !0
    });
    var v = S;
    Object.defineProperty(e, "FileWriteStream", {
      get: /* @__PURE__ */ s(function() {
        return v;
      }, "get"),
      set: /* @__PURE__ */ s(function(k) {
        v = k;
      }, "set"),
      enumerable: !0,
      configurable: !0
    });
    function y(k, $) {
      return this instanceof y ? (m.apply(this, arguments), this) : y.apply(Object.create(y.prototype), arguments);
    }
    s(y, "ReadStream");
    function C() {
      var k = this;
      P(k.path, k.flags, k.mode, function($, M) {
        $ ? (k.autoClose && k.destroy(), k.emit("error", $)) : (k.fd = M, k.emit("open", M), k.read());
      });
    }
    s(C, "ReadStream$open");
    function S(k, $) {
      return this instanceof S ? (g.apply(this, arguments), this) : S.apply(Object.create(S.prototype), arguments);
    }
    s(S, "WriteStream");
    function T() {
      var k = this;
      P(k.path, k.flags, k.mode, function($, M) {
        $ ? (k.destroy(), k.emit("error", $)) : (k.fd = M, k.emit("open", M));
      });
    }
    s(T, "WriteStream$open");
    function j(k, $) {
      return new e.ReadStream(k, $);
    }
    s(j, "createReadStream");
    function w(k, $) {
      return new e.WriteStream(k, $);
    }
    s(w, "createWriteStream");
    var A = e.open;
    e.open = P;
    function P(k, $, M, V) {
      return typeof M == "function" && (V = M, M = null), U(k, $, M, V);
      function U(G, R, N, z, Q) {
        return A(G, R, N, function(te, I) {
          te && (te.code === "EMFILE" || te.code === "ENFILE") ? Yn([U, [G, R, N, z], te, Q || Date.now(), Date.now()]) : typeof z == "funct\
ion" && z.apply(this, arguments);
        });
      }
      s(U, "go$open");
    }
    return s(P, "open"), e;
  }
  s(Af, "patch");
  function Yn(e) {
    rn("ENQUEUE", e[0].name, e[1]), He[pt].push(e), Ff();
  }
  s(Yn, "enqueue");
  var lo;
  function PC() {
    for (var e = Date.now(), t = 0; t < He[pt].length; ++t)
      He[pt][t].length > 2 && (He[pt][t][3] = e, He[pt][t][4] = e);
    Ff();
  }
  s(PC, "resetQueue");
  function Ff() {
    if (clearTimeout(lo), lo = void 0, He[pt].length !== 0) {
      var e = He[pt].shift(), t = e[0], r = e[1], i = e[2], n = e[3], a = e[4];
      if (n === void 0)
        rn("RETRY", t.name, r), t.apply(null, r);
      else if (Date.now() - n >= 6e4) {
        rn("TIMEOUT", t.name, r);
        var u = r.pop();
        typeof u == "function" && u.call(null, i);
      } else {
        var o = Date.now() - a, l = Math.max(a - n, 1), c = Math.min(l * 1.2, 100);
        o >= c ? (rn("RETRY", t.name, r), t.apply(null, r.concat([n]))) : He[pt].push(e);
      }
      lo === void 0 && (lo = setTimeout(Ff, 0));
    }
  }
  s(Ff, "retry");
});

// ../node_modules/watchpack/lib/reducePlan.js
var NC = B((qte, RC) => {
  "use strict";
  var Qj = H("path");
  RC.exports = (e, t) => {
    let r = /* @__PURE__ */ new Map();
    for (let [a, u] of e)
      r.set(a, {
        filePath: a,
        parent: void 0,
        children: void 0,
        entries: 1,
        active: !0,
        value: u
      });
    let i = r.size;
    for (let a of r.values()) {
      let u = Qj.dirname(a.filePath);
      if (u !== a.filePath) {
        let o = r.get(u);
        if (o === void 0)
          o = {
            filePath: u,
            parent: void 0,
            children: [a],
            entries: a.entries,
            active: !1,
            value: void 0
          }, r.set(u, o), a.parent = o;
        else {
          a.parent = o, o.children === void 0 ? o.children = [a] : o.children.push(a);
          do
            o.entries += a.entries, o = o.parent;
          while (o);
        }
      }
    }
    for (; i > t; ) {
      let a = i - t, u, o = 1 / 0;
      for (let p of r.values()) {
        if (p.entries <= 1 || !p.children || !p.parent || p.children.length === 0 || p.children.length === 1 && !p.value) continue;
        let d = p.entries - 1 >= a ? p.entries - 1 - a : a - p.entries + 1 + t * 0.3;
        d < o && (u = p, o = d);
      }
      if (!u) break;
      let l = u.entries - 1;
      u.active = !0, u.entries = 1, i -= l;
      let c = u.parent;
      for (; c; )
        c.entries -= l, c = c.parent;
      let h = new Set(u.children);
      for (let p of h)
        if (p.active = !1, p.entries = 0, p.children)
          for (let d of p.children) h.add(d);
    }
    let n = /* @__PURE__ */ new Map();
    for (let a of r.values()) {
      if (!a.active) continue;
      let u = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set([a]);
      for (let l of o)
        if (!(l.active && l !== a)) {
          if (l.value)
            if (Array.isArray(l.value))
              for (let c of l.value)
                u.set(c, l.filePath);
            else
              u.set(l.value, l.filePath);
          if (l.children)
            for (let c of l.children)
              o.add(c);
        }
      n.set(a.filePath, u);
    }
    return n;
  };
});

// ../node_modules/watchpack/lib/watchEventSource.js
var If = B((fo) => {
  "use strict";
  var MC = H("fs"), po = H("path"), { EventEmitter: Zj } = H("events"), tq = NC(), jC = H("os").platform() === "darwin", rq = H("os").platform() ===
  "win32", iq = jC || rq, LC = +process.env.WATCHPACK_WATCHER_LIMIT || (jC ? 2e3 : 1e4), ho = !!process.env.WATCHPACK_RECURSIVE_WATCHER_LOGGING,
  kf = !1, Kn = 0, na = /* @__PURE__ */ new Map(), sa = /* @__PURE__ */ new Map(), aa = /* @__PURE__ */ new Map(), nn = /* @__PURE__ */ new Map(),
  Tf = class {
    static {
      s(this, "DirectWatcher");
    }
    constructor(t) {
      this.filePath = t, this.watchers = /* @__PURE__ */ new Set(), this.watcher = void 0;
      try {
        let r = MC.watch(t);
        this.watcher = r, r.on("change", (i, n) => {
          for (let a of this.watchers)
            a.emit("change", i, n);
        }), r.on("error", (i) => {
          for (let n of this.watchers)
            n.emit("error", i);
        });
      } catch (r) {
        process.nextTick(() => {
          for (let i of this.watchers)
            i.emit("error", r);
        });
      }
      Kn++;
    }
    add(t) {
      nn.set(t, this), this.watchers.add(t);
    }
    remove(t) {
      this.watchers.delete(t), this.watchers.size === 0 && (aa.delete(this.filePath), Kn--, this.watcher && this.watcher.close());
    }
    getWatchers() {
      return this.watchers;
    }
  }, Bf = class {
    static {
      s(this, "RecursiveWatcher");
    }
    constructor(t) {
      this.rootPath = t, this.mapWatcherToPath = /* @__PURE__ */ new Map(), this.mapPathToWatchers = /* @__PURE__ */ new Map(), this.watcher =
      void 0;
      try {
        let r = MC.watch(t, {
          recursive: !0
        });
        this.watcher = r, r.on("change", (i, n) => {
          if (n) {
            let a = po.dirname(n), u = this.mapPathToWatchers.get(a);
            if (ho && process.stderr.write(
              `[watchpack] dispatch ${i} event in recursive watcher (${this.rootPath}) for '${n}' to ${u ? u.size : 0} watchers
`
            ), u === void 0) return;
            for (let o of u)
              o.emit("change", i, po.basename(n));
          } else {
            ho && process.stderr.write(
              `[watchpack] dispatch ${i} event in recursive watcher (${this.rootPath}) to all watchers
`
            );
            for (let a of this.mapWatcherToPath.keys())
              a.emit("change", i);
          }
        }), r.on("error", (i) => {
          for (let n of this.mapWatcherToPath.keys())
            n.emit("error", i);
        });
      } catch (r) {
        process.nextTick(() => {
          for (let i of this.mapWatcherToPath.keys())
            i.emit("error", r);
        });
      }
      Kn++, ho && process.stderr.write(
        `[watchpack] created recursive watcher at ${t}
`
      );
    }
    add(t, r) {
      nn.set(r, this);
      let i = t.slice(this.rootPath.length + 1) || ".";
      this.mapWatcherToPath.set(r, i);
      let n = this.mapPathToWatchers.get(i);
      if (n === void 0) {
        let a = /* @__PURE__ */ new Set();
        a.add(r), this.mapPathToWatchers.set(i, a);
      } else
        n.add(r);
    }
    remove(t) {
      let r = this.mapWatcherToPath.get(t);
      if (!r) return;
      this.mapWatcherToPath.delete(t);
      let i = this.mapPathToWatchers.get(r);
      i.delete(t), i.size === 0 && this.mapPathToWatchers.delete(r), this.mapWatcherToPath.size === 0 && (sa.delete(this.rootPath), Kn--, this.
      watcher && this.watcher.close(), ho && process.stderr.write(
        `[watchpack] closed recursive watcher at ${this.rootPath}
`
      ));
    }
    getWatchers() {
      return this.mapWatcherToPath;
    }
  }, Pf = class extends Zj {
    static {
      s(this, "Watcher");
    }
    close() {
      if (na.has(this)) {
        na.delete(this);
        return;
      }
      nn.get(this).remove(this), nn.delete(this);
    }
  }, _f = /* @__PURE__ */ s((e) => {
    let t = aa.get(e);
    if (t !== void 0) return t;
    let r = new Tf(e);
    return aa.set(e, r), r;
  }, "createDirectWatcher"), nq = /* @__PURE__ */ s((e) => {
    let t = sa.get(e);
    if (t !== void 0) return t;
    let r = new Bf(e);
    return sa.set(e, r), r;
  }, "createRecursiveWatcher"), qC = /* @__PURE__ */ s(() => {
    let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ s((i, n) => {
      let a = e.get(n);
      a === void 0 ? e.set(n, i) : Array.isArray(a) ? a.push(i) : e.set(n, [a, i]);
    }, "addWatcher");
    for (let [i, n] of na)
      t(i, n);
    if (na.clear(), !iq || LC - Kn >= e.size) {
      for (let [i, n] of e) {
        let a = _f(i);
        if (Array.isArray(n))
          for (let u of n) a.add(u);
        else
          a.add(n);
      }
      return;
    }
    for (let i of sa.values())
      for (let [n, a] of i.getWatchers())
        t(n, po.join(i.rootPath, a));
    for (let i of aa.values())
      for (let n of i.getWatchers())
        t(n, i.filePath);
    let r = tq(e, LC * 0.9);
    for (let [i, n] of r)
      if (n.size === 1)
        for (let [a, u] of n) {
          let o = _f(u), l = nn.get(a);
          l !== o && (o.add(a), l !== void 0 && l.remove(a));
        }
      else {
        let a = new Set(n.values());
        if (a.size > 1) {
          let u = nq(i);
          for (let [o, l] of n) {
            let c = nn.get(o);
            c !== u && (u.add(l, o), c !== void 0 && c.remove(o));
          }
        } else
          for (let u of a) {
            let o = _f(u);
            for (let l of n.keys()) {
              let c = nn.get(l);
              c !== o && (o.add(l), c !== void 0 && c.remove(l));
            }
          }
      }
  }, "execute");
  fo.watch = (e) => {
    let t = new Pf(), r = aa.get(e);
    if (r !== void 0)
      return r.add(t), t;
    let i = e;
    for (; ; ) {
      let n = sa.get(i);
      if (n !== void 0)
        return n.add(e, t), t;
      let a = po.dirname(i);
      if (a === i) break;
      i = a;
    }
    return na.set(t, e), kf || qC(), t;
  };
  fo.batch = (e) => {
    kf = !0;
    try {
      e();
    } finally {
      kf = !1, qC();
    }
  };
  fo.getNumberOfWatchers = () => Kn;
});

// ../node_modules/watchpack/lib/DirectoryWatcher.js
var HC = B((Ute, Nf) => {
  "use strict";
  var zC = H("events").EventEmitter, mo = OC(), ua = H("path"), sq = If(), Zn = Object.freeze({}), bt = 2e3, $C = H("os").platform() === "da\
rwin", oa = process.env.WATCHPACK_POLLING, VC = `${+oa}` === oa ? +oa : !!oa && oa !== "false";
  function Qn(e) {
    return e.toLowerCase();
  }
  s(Qn, "withoutCase");
  function aq(e, t) {
    return function() {
      if (--e === 0)
        return t();
    };
  }
  s(aq, "needCalls");
  var Of = class extends zC {
    static {
      s(this, "Watcher");
    }
    constructor(t, r, i) {
      super(), this.directoryWatcher = t, this.path = r, this.startTime = i && +i;
    }
    checkStartTime(t, r) {
      let i = this.startTime;
      return typeof i != "number" ? !r : i <= t;
    }
    close() {
      this.emit("closed");
    }
  }, Rf = class extends zC {
    static {
      s(this, "DirectoryWatcher");
    }
    constructor(t, r, i) {
      super(), VC && (i.poll = VC), this.watcherManager = t, this.options = i, this.path = r, this.files = /* @__PURE__ */ new Map(), this.filesWithoutCase =
      /* @__PURE__ */ new Map(), this.directories = /* @__PURE__ */ new Map(), this.lastWatchEvent = 0, this.initialScan = !0, this.ignored =
      i.ignored || (() => !1), this.nestedWatching = !1, this.polledWatching = typeof i.poll == "number" ? i.poll : i.poll ? 5007 : !1, this.
      timeout = void 0, this.initialScanRemoved = /* @__PURE__ */ new Set(), this.initialScanFinished = void 0, this.watchers = /* @__PURE__ */ new Map(),
      this.parentWatcher = null, this.refs = 0, this._activeEvents = /* @__PURE__ */ new Map(), this.closed = !1, this.scanning = !1, this.scanAgain =
      !1, this.scanAgainInitial = !1, this.createWatcher(), this.doScan(!0);
    }
    createWatcher() {
      try {
        this.polledWatching ? this.watcher = {
          close: /* @__PURE__ */ s(() => {
            this.timeout && (clearTimeout(this.timeout), this.timeout = void 0);
          }, "close")
        } : ($C && this.watchInParentDirectory(), this.watcher = sq.watch(this.path), this.watcher.on("change", this.onWatchEvent.bind(this)),
        this.watcher.on("error", this.onWatcherError.bind(this)));
      } catch (t) {
        this.onWatcherError(t);
      }
    }
    forEachWatcher(t, r) {
      let i = this.watchers.get(Qn(t));
      if (i !== void 0)
        for (let n of i)
          r(n);
    }
    setMissing(t, r, i) {
      this.initialScan && this.initialScanRemoved.add(t);
      let n = this.directories.get(t);
      if (n && (this.nestedWatching && n.close(), this.directories.delete(t), this.forEachWatcher(t, (u) => u.emit("remove", i)), r || this.
      forEachWatcher(
        this.path,
        (u) => u.emit("change", t, null, i, r)
      )), this.files.get(t)) {
        this.files.delete(t);
        let u = Qn(t), o = this.filesWithoutCase.get(u) - 1;
        o <= 0 ? (this.filesWithoutCase.delete(u), this.forEachWatcher(t, (l) => l.emit("remove", i))) : this.filesWithoutCase.set(u, o), r ||
        this.forEachWatcher(
          this.path,
          (l) => l.emit("change", t, null, i, r)
        );
      }
    }
    setFileTime(t, r, i, n, a) {
      let u = Date.now();
      if (this.ignored(t)) return;
      let o = this.files.get(t), l, c;
      if (i)
        l = Math.min(u, r) + bt, c = bt;
      else if (l = u, c = 0, o && o.timestamp === r && r + bt < u)
        return;
      if (!(n && o && o.timestamp === r)) {
        if (this.files.set(t, {
          safeTime: l,
          accuracy: c,
          timestamp: r
        }), o)
          i || this.forEachWatcher(t, (h) => h.emit("change", r, a));
        else {
          let h = Qn(t), p = this.filesWithoutCase.get(h);
          this.filesWithoutCase.set(h, (p || 0) + 1), p !== void 0 && this.doScan(!1), this.forEachWatcher(t, (d) => {
            (!i || d.checkStartTime(l, i)) && d.emit("change", r, a);
          });
        }
        this.forEachWatcher(this.path, (h) => {
          (!i || h.checkStartTime(l, i)) && h.emit("change", t, l, a, i);
        });
      }
    }
    setDirectory(t, r, i, n) {
      if (!this.ignored(t)) {
        if (t === this.path)
          i || this.forEachWatcher(
            this.path,
            (a) => a.emit("change", t, r, n, i)
          );
        else if (!this.directories.get(t)) {
          let u = Date.now();
          this.nestedWatching ? this.createNestedWatcher(t) : this.directories.set(t, !0);
          let o;
          i ? o = Math.min(u, r) + bt : o = u, this.forEachWatcher(t, (l) => {
            (!i || l.checkStartTime(o, !1)) && l.emit("change", r, n);
          }), this.forEachWatcher(this.path, (l) => {
            (!i || l.checkStartTime(o, i)) && l.emit("change", t, o, n, i);
          });
        }
      }
    }
    createNestedWatcher(t) {
      let r = this.watcherManager.watchDirectory(t, 1);
      r.on("change", (i, n, a, u) => {
        this.forEachWatcher(this.path, (o) => {
          (!u || o.checkStartTime(n, u)) && o.emit("change", i, n, a, u);
        });
      }), this.directories.set(t, r);
    }
    setNestedWatching(t) {
      if (this.nestedWatching !== !!t)
        if (this.nestedWatching = !!t, this.nestedWatching)
          for (let r of this.directories.keys())
            this.createNestedWatcher(r);
        else
          for (let [r, i] of this.directories)
            i.close(), this.directories.set(r, !0);
    }
    watch(t, r) {
      let i = Qn(t), n = this.watchers.get(i);
      n === void 0 && (n = /* @__PURE__ */ new Set(), this.watchers.set(i, n)), this.refs++;
      let a = new Of(this, t, r);
      a.on("closed", () => {
        if (--this.refs <= 0) {
          this.close();
          return;
        }
        n.delete(a), n.size === 0 && (this.watchers.delete(i), this.path === t && this.setNestedWatching(!1));
      }), n.add(a);
      let u;
      if (t === this.path) {
        this.setNestedWatching(!0), u = this.lastWatchEvent;
        for (let o of this.files.values())
          go(o), u = Math.max(u, o.safeTime);
      } else {
        let o = this.files.get(t);
        o ? (go(o), u = o.safeTime) : u = 0;
      }
      return u ? u >= r && process.nextTick(() => {
        this.closed || (t === this.path ? a.emit(
          "change",
          t,
          u,
          "watch (outdated on attach)",
          !0
        ) : a.emit(
          "change",
          u,
          "watch (outdated on attach)",
          !0
        ));
      }) : this.initialScan ? this.initialScanRemoved.has(t) && process.nextTick(() => {
        this.closed || a.emit("remove");
      }) : !this.directories.has(t) && a.checkStartTime(this.initialScanFinished, !1) && process.nextTick(() => {
        this.closed || a.emit("initial-missing", "watch (missing on attach)");
      }), a;
    }
    onWatchEvent(t, r) {
      if (this.closed) return;
      if (!r) {
        this.doScan(!1);
        return;
      }
      let i = ua.join(this.path, r);
      if (!this.ignored(i))
        if (this._activeEvents.get(r) === void 0) {
          this._activeEvents.set(r, !1);
          let n = /* @__PURE__ */ s(() => {
            this.closed || (this._activeEvents.set(r, !1), mo.lstat(i, (a, u) => {
              if (!this.closed) {
                if (this._activeEvents.get(r) === !0) {
                  process.nextTick(n);
                  return;
                }
                this._activeEvents.delete(r), a && (a.code !== "ENOENT" && a.code !== "EPERM" && a.code !== "EBUSY" ? this.onStatsError(a) :
                r === ua.basename(this.path) && (mo.existsSync(this.path) || this.onDirectoryRemoved("stat failed"))), this.lastWatchEvent =
                Date.now(), u ? u.isDirectory() ? this.setDirectory(
                  i,
                  +u.birthtime || 1,
                  !1,
                  t
                ) : (u.isFile() || u.isSymbolicLink()) && (u.mtime && UC(u.mtime), this.setFileTime(
                  i,
                  +u.mtime || +u.ctime || 1,
                  !1,
                  !1,
                  t
                )) : this.setMissing(i, !1, t);
              }
            }));
          }, "checkStats");
          process.nextTick(n);
        } else
          this._activeEvents.set(r, !0);
    }
    onWatcherError(t) {
      this.closed || t && (t.code !== "EPERM" && t.code !== "ENOENT" && console.error("Watchpack Error (watcher): " + t), this.onDirectoryRemoved(
      "watch error"));
    }
    onStatsError(t) {
      t && console.error("Watchpack Error (stats): " + t);
    }
    onScanError(t) {
      t && console.error("Watchpack Error (initial scan): " + t), this.onScanFinished();
    }
    onScanFinished() {
      this.polledWatching && (this.timeout = setTimeout(() => {
        this.closed || this.doScan(!1);
      }, this.polledWatching));
    }
    onDirectoryRemoved(t) {
      this.watcher && (this.watcher.close(), this.watcher = null), this.watchInParentDirectory();
      let r = `directory-removed (${t})`;
      for (let i of this.directories.keys())
        this.setMissing(i, null, r);
      for (let i of this.files.keys())
        this.setMissing(i, null, r);
    }
    watchInParentDirectory() {
      if (!this.parentWatcher) {
        let t = ua.dirname(this.path);
        if (ua.dirname(t) === t) return;
        this.parentWatcher = this.watcherManager.watchFile(this.path, 1), this.parentWatcher.on("change", (r, i) => {
          this.closed || ((!$C || this.polledWatching) && this.parentWatcher && (this.parentWatcher.close(), this.parentWatcher = null), this.
          watcher || (this.createWatcher(), this.doScan(!1), this.forEachWatcher(
            this.path,
            (n) => n.emit("change", this.path, r, i, !1)
          )));
        }), this.parentWatcher.on("remove", () => {
          this.onDirectoryRemoved("parent directory removed");
        });
      }
    }
    doScan(t) {
      if (this.scanning) {
        this.scanAgain ? t || (this.scanAgainInitial = !1) : (this.scanAgain = !0, this.scanAgainInitial = t);
        return;
      }
      this.scanning = !0, this.timeout && (clearTimeout(this.timeout), this.timeout = void 0), process.nextTick(() => {
        this.closed || mo.readdir(this.path, (r, i) => {
          if (this.closed) return;
          if (r) {
            if (r.code === "ENOENT" || r.code === "EPERM" ? this.onDirectoryRemoved("scan readdir failed") : this.onScanError(r), this.initialScan =
            !1, this.initialScanFinished = Date.now(), t)
              for (let u of this.watchers.values())
                for (let o of u)
                  o.checkStartTime(this.initialScanFinished, !1) && o.emit(
                    "initial-missing",
                    "scan (parent directory missing in initial scan)"
                  );
            this.scanAgain ? (this.scanAgain = !1, this.doScan(this.scanAgainInitial)) : this.scanning = !1;
            return;
          }
          let n = new Set(
            i.map((u) => ua.join(this.path, u.normalize("NFC")))
          );
          for (let u of this.files.keys())
            n.has(u) || this.setMissing(u, t, "scan (missing)");
          for (let u of this.directories.keys())
            n.has(u) || this.setMissing(u, t, "scan (missing)");
          if (this.scanAgain) {
            this.scanAgain = !1, this.doScan(t);
            return;
          }
          let a = aq(n.size + 1, () => {
            if (!this.closed) {
              if (this.initialScan = !1, this.initialScanRemoved = null, this.initialScanFinished = Date.now(), t) {
                let u = new Map(this.watchers);
                u.delete(Qn(this.path));
                for (let o of n)
                  u.delete(Qn(o));
                for (let o of u.values())
                  for (let l of o)
                    l.checkStartTime(this.initialScanFinished, !1) && l.emit(
                      "initial-missing",
                      "scan (missing in initial scan)"
                    );
              }
              this.scanAgain ? (this.scanAgain = !1, this.doScan(this.scanAgainInitial)) : (this.scanning = !1, this.onScanFinished());
            }
          });
          for (let u of n)
            mo.lstat(u, (o, l) => {
              if (!this.closed) {
                if (o) {
                  o.code === "ENOENT" || o.code === "EPERM" || o.code === "EACCES" || o.code === "EBUSY" ? this.setMissing(u, t, "scan (" + o.
                  code + ")") : this.onScanError(o), a();
                  return;
                }
                l.isFile() || l.isSymbolicLink() ? (l.mtime && UC(l.mtime), this.setFileTime(
                  u,
                  +l.mtime || +l.ctime || 1,
                  t,
                  !0,
                  "scan (file)"
                )) : l.isDirectory() && (!t || !this.directories.has(u)) && this.setDirectory(
                  u,
                  +l.birthtime || 1,
                  t,
                  "scan (dir)"
                ), a();
              }
            });
          a();
        });
      });
    }
    getTimes() {
      let t = /* @__PURE__ */ Object.create(null), r = this.lastWatchEvent;
      for (let [i, n] of this.files)
        go(n), r = Math.max(r, n.safeTime), t[i] = Math.max(n.safeTime, n.timestamp);
      if (this.nestedWatching) {
        for (let i of this.directories.values()) {
          let n = i.directoryWatcher.getTimes();
          for (let a of Object.keys(n)) {
            let u = n[a];
            r = Math.max(r, u), t[a] = u;
          }
        }
        t[this.path] = r;
      }
      if (!this.initialScan)
        for (let i of this.watchers.values())
          for (let n of i) {
            let a = n.path;
            Object.prototype.hasOwnProperty.call(t, a) || (t[a] = null);
          }
      return t;
    }
    collectTimeInfoEntries(t, r) {
      let i = this.lastWatchEvent;
      for (let [n, a] of this.files)
        go(a), i = Math.max(i, a.safeTime), t.set(n, a);
      if (this.nestedWatching) {
        for (let n of this.directories.values())
          i = Math.max(
            i,
            n.directoryWatcher.collectTimeInfoEntries(
              t,
              r
            )
          );
        t.set(this.path, Zn), r.set(this.path, {
          safeTime: i
        });
      } else {
        for (let n of this.directories.keys())
          t.set(n, Zn), r.has(n) || r.set(n, Zn);
        t.set(this.path, Zn), r.set(this.path, Zn);
      }
      if (!this.initialScan)
        for (let n of this.watchers.values())
          for (let a of n) {
            let u = a.path;
            t.has(u) || t.set(u, null);
          }
      return i;
    }
    close() {
      if (this.closed = !0, this.initialScan = !1, this.watcher && (this.watcher.close(), this.watcher = null), this.nestedWatching) {
        for (let t of this.directories.values())
          t.close();
        this.directories.clear();
      }
      this.parentWatcher && (this.parentWatcher.close(), this.parentWatcher = null), this.emit("closed");
    }
  };
  Nf.exports = Rf;
  Nf.exports.EXISTANCE_ONLY_TIME_ENTRY = Zn;
  function go(e) {
    e.accuracy > bt && (e.safeTime = e.safeTime - e.accuracy + bt, e.accuracy = bt);
  }
  s(go, "fixupEntryAccuracy");
  function UC(e) {
    e && (bt > 1 && e % 1 !== 0 ? bt = 1 : bt > 10 && e % 10 !== 0 ? bt = 10 : bt > 100 && e % 100 !== 0 ? bt = 100 : bt > 1e3 && e % 1e3 !==
    0 && (bt = 1e3));
  }
  s(UC, "ensureFsAccuracy");
});

// ../node_modules/watchpack/lib/getWatcherManager.js
var JC = B((Hte, Lf) => {
  "use strict";
  var uq = H("path"), oq = HC(), Do = class {
    static {
      s(this, "WatcherManager");
    }
    constructor(t) {
      this.options = t, this.directoryWatchers = /* @__PURE__ */ new Map();
    }
    getDirectoryWatcher(t) {
      let r = this.directoryWatchers.get(t);
      if (r === void 0) {
        let i = new oq(this, t, this.options);
        return this.directoryWatchers.set(t, i), i.on("closed", () => {
          this.directoryWatchers.delete(t);
        }), i;
      }
      return r;
    }
    watchFile(t, r) {
      let i = uq.dirname(t);
      return i === t ? null : this.getDirectoryWatcher(i).watch(t, r);
    }
    watchDirectory(t, r) {
      return this.getDirectoryWatcher(t).watch(t, r);
    }
  }, WC = /* @__PURE__ */ new WeakMap();
  Lf.exports = (e) => {
    let t = WC.get(e);
    if (t !== void 0) return t;
    let r = new Do(e);
    return WC.set(e, r), r;
  };
  Lf.exports.WatcherManager = Do;
});

// ../node_modules/watchpack/lib/LinkResolver.js
var YC = B((Jte, XC) => {
  "use strict";
  var lq = H("fs"), yo = H("path"), GC = /* @__PURE__ */ new Set(["EINVAL", "ENOENT"]);
  process.platform === "win32" && GC.add("UNKNOWN");
  var Mf = class {
    static {
      s(this, "LinkResolver");
    }
    constructor() {
      this.cache = /* @__PURE__ */ new Map();
    }
    /**
     * @param {string} file path to file or directory
     * @returns {string[]} array of file and all symlinks contributed in the resolving process (first item is the resolved file)
     */
    resolve(t) {
      let r = this.cache.get(t);
      if (r !== void 0)
        return r;
      let i = yo.dirname(t);
      if (i === t) {
        let u = Object.freeze([t]);
        return this.cache.set(t, u), u;
      }
      let n = this.resolve(i), a = t;
      if (n[0] !== i) {
        let u = yo.basename(t);
        a = yo.resolve(n[0], u);
      }
      try {
        let u = lq.readlinkSync(a), o = yo.resolve(n[0], u), l = this.resolve(o), c;
        if (l.length > 1 && n.length > 1) {
          let h = new Set(l);
          h.add(a);
          for (let p = 1; p < n.length; p++)
            h.add(n[p]);
          c = Object.freeze(Array.from(h));
        } else n.length > 1 ? (c = n.slice(), c[0] = l[0], c.push(a), Object.freeze(c)) : l.length > 1 ? (c = l.slice(), c.push(a), Object.freeze(
        c)) : c = Object.freeze([
          // the resolve real location
          l[0],
          // add the link
          a
        ]);
        return this.cache.set(t, c), c;
      } catch (u) {
        if (!GC.has(u.code))
          throw u;
        let o = n.slice();
        return o[0] = a, Object.freeze(o), this.cache.set(t, o), o;
      }
    }
  };
  XC.exports = Mf;
});

// ../node_modules/glob-to-regexp/index.js
var QC = B((Xte, KC) => {
  KC.exports = function(e, t) {
    if (typeof e != "string")
      throw new TypeError("Expected a string");
    for (var r = String(e), i = "", n = t ? !!t.extended : !1, a = t ? !!t.globstar : !1, u = !1, o = t && typeof t.flags == "string" ? t.flags :
    "", l, c = 0, h = r.length; c < h; c++)
      switch (l = r[c], l) {
        case "/":
        case "$":
        case "^":
        case "+":
        case ".":
        case "(":
        case ")":
        case "=":
        case "!":
        case "|":
          i += "\\" + l;
          break;
        case "?":
          if (n) {
            i += ".";
            break;
          }
        case "[":
        case "]":
          if (n) {
            i += l;
            break;
          }
        case "{":
          if (n) {
            u = !0, i += "(";
            break;
          }
        case "}":
          if (n) {
            u = !1, i += ")";
            break;
          }
        case ",":
          if (u) {
            i += "|";
            break;
          }
          i += "\\" + l;
          break;
        case "*":
          for (var p = r[c - 1], d = 1; r[c + 1] === "*"; )
            d++, c++;
          var m = r[c + 1];
          if (!a)
            i += ".*";
          else {
            var g = d > 1 && (p === "/" || p === void 0) && (m === "/" || m === void 0);
            g ? (i += "((?:[^/]*(?:/|$))*)", c++) : i += "([^/]*)";
          }
          break;
        default:
          i += l;
      }
    return (!o || !~o.indexOf("g")) && (i = "^" + i + "$"), new RegExp(i, o);
  };
});

// ../node_modules/watchpack/lib/watchpack.js
var Vf = B((Yte, t2) => {
  "use strict";
  var cq = JC(), hq = YC(), pq = H("events").EventEmitter, fq = QC(), dq = If(), xo = [], mq = {};
  function Eo(e, t) {
    for (let r of e) {
      let i = r.watcher;
      t.has(i.directoryWatcher) || t.add(i.directoryWatcher);
    }
  }
  s(Eo, "addWatchersToSet");
  var ZC = /* @__PURE__ */ s((e) => {
    let t = fq(e, { globstar: !0, extended: !0 }).source;
    return t.slice(0, t.length - 1) + "(?:$|\\/)";
  }, "stringToRegexp"), gq = /* @__PURE__ */ s((e) => {
    if (Array.isArray(e)) {
      let t = new RegExp(e.map((r) => ZC(r)).join("|"));
      return (r) => t.test(r.replace(/\\/g, "/"));
    } else if (typeof e == "string") {
      let t = new RegExp(ZC(e));
      return (r) => t.test(r.replace(/\\/g, "/"));
    } else {
      if (e instanceof RegExp)
        return (t) => e.test(t.replace(/\\/g, "/"));
      if (e instanceof Function)
        return e;
      if (e)
        throw new Error(`Invalid option for 'ignored': ${e}`);
      return () => !1;
    }
  }, "ignoredToFunction"), Dq = /* @__PURE__ */ s((e) => ({
    followSymlinks: !!e.followSymlinks,
    ignored: gq(e.ignored),
    poll: e.poll
  }), "normalizeOptions"), e2 = /* @__PURE__ */ new WeakMap(), yq = /* @__PURE__ */ s((e) => {
    let t = e2.get(e);
    if (t !== void 0) return t;
    let r = Dq(e);
    return e2.set(e, r), r;
  }, "cachedNormalizeOptions"), jf = class {
    static {
      s(this, "WatchpackFileWatcher");
    }
    constructor(t, r, i) {
      this.files = Array.isArray(i) ? i : [i], this.watcher = r, r.on("initial-missing", (n) => {
        for (let a of this.files)
          t._missing.has(a) || t._onRemove(a, a, n);
      }), r.on("change", (n, a) => {
        for (let u of this.files)
          t._onChange(u, n, u, a);
      }), r.on("remove", (n) => {
        for (let a of this.files)
          t._onRemove(a, a, n);
      });
    }
    update(t) {
      Array.isArray(t) ? this.files = t : this.files.length !== 1 ? this.files = [t] : this.files[0] !== t && (this.files[0] = t);
    }
    close() {
      this.watcher.close();
    }
  }, qf = class {
    static {
      s(this, "WatchpackDirectoryWatcher");
    }
    constructor(t, r, i) {
      this.directories = Array.isArray(i) ? i : [i], this.watcher = r, r.on("initial-missing", (n) => {
        for (let a of this.directories)
          t._onRemove(a, a, n);
      }), r.on("change", (n, a, u) => {
        for (let o of this.directories)
          t._onChange(o, a, n, u);
      }), r.on("remove", (n) => {
        for (let a of this.directories)
          t._onRemove(a, a, n);
      });
    }
    update(t) {
      Array.isArray(t) ? this.directories = t : this.directories.length !== 1 ? this.directories = [t] : this.directories[0] !== t && (this.
      directories[0] = t);
    }
    close() {
      this.watcher.close();
    }
  }, $f = class extends pq {
    static {
      s(this, "Watchpack");
    }
    constructor(t) {
      super(), t || (t = mq), this.options = t, this.aggregateTimeout = typeof t.aggregateTimeout == "number" ? t.aggregateTimeout : 200, this.
      watcherOptions = yq(t), this.watcherManager = cq(this.watcherOptions), this.fileWatchers = /* @__PURE__ */ new Map(), this.directoryWatchers =
      /* @__PURE__ */ new Map(), this._missing = /* @__PURE__ */ new Set(), this.startTime = void 0, this.paused = !1, this.aggregatedChanges =
      /* @__PURE__ */ new Set(), this.aggregatedRemovals = /* @__PURE__ */ new Set(), this.aggregateTimer = void 0, this._onTimeout = this._onTimeout.
      bind(this);
    }
    watch(t, r, i) {
      let n, a, u, o;
      r ? (n = t, a = r, u = xo, o = i) : {
        files: n = xo,
        directories: a = xo,
        missing: u = xo,
        startTime: o
      } = t, this.paused = !1;
      let l = this.fileWatchers, c = this.directoryWatchers, h = this.watcherOptions.ignored, p = /* @__PURE__ */ s((v) => !h(v), "filter"),
      d = /* @__PURE__ */ s((v, y, C) => {
        let S = v.get(y);
        S === void 0 ? v.set(y, C) : Array.isArray(S) ? S.push(C) : v.set(y, [S, C]);
      }, "addToMap"), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Set();
      if (this.watcherOptions.followSymlinks) {
        let v = new hq();
        for (let y of n)
          if (p(y))
            for (let C of v.resolve(y))
              (y === C || p(C)) && d(m, C, y);
        for (let y of u)
          if (p(y))
            for (let C of v.resolve(y))
              (y === C || p(C)) && (D.add(y), d(m, C, y));
        for (let y of a)
          if (p(y)) {
            let C = !0;
            for (let S of v.resolve(y))
              p(S) && d(
                C ? g : m,
                S,
                y
              ), C = !1;
          }
      } else {
        for (let v of n)
          p(v) && d(m, v, v);
        for (let v of u)
          p(v) && (D.add(v), d(m, v, v));
        for (let v of a)
          p(v) && d(g, v, v);
      }
      for (let [v, y] of l) {
        let C = m.get(v);
        C === void 0 ? (y.close(), l.delete(v)) : (y.update(C), m.delete(v));
      }
      for (let [v, y] of c) {
        let C = g.get(v);
        C === void 0 ? (y.close(), c.delete(v)) : (y.update(C), g.delete(v));
      }
      dq.batch(() => {
        for (let [v, y] of m) {
          let C = this.watcherManager.watchFile(v, o);
          C && l.set(v, new jf(this, C, y));
        }
        for (let [v, y] of g) {
          let C = this.watcherManager.watchDirectory(v, o);
          C && c.set(
            v,
            new qf(this, C, y)
          );
        }
      }), this._missing = D, this.startTime = o;
    }
    close() {
      this.paused = !0, this.aggregateTimer && clearTimeout(this.aggregateTimer);
      for (let t of this.fileWatchers.values()) t.close();
      for (let t of this.directoryWatchers.values()) t.close();
      this.fileWatchers.clear(), this.directoryWatchers.clear();
    }
    pause() {
      this.paused = !0, this.aggregateTimer && clearTimeout(this.aggregateTimer);
    }
    getTimes() {
      let t = /* @__PURE__ */ new Set();
      Eo(this.fileWatchers.values(), t), Eo(this.directoryWatchers.values(), t);
      let r = /* @__PURE__ */ Object.create(null);
      for (let i of t) {
        let n = i.getTimes();
        for (let a of Object.keys(n)) r[a] = n[a];
      }
      return r;
    }
    getTimeInfoEntries() {
      let t = /* @__PURE__ */ new Map();
      return this.collectTimeInfoEntries(t, t), t;
    }
    collectTimeInfoEntries(t, r) {
      let i = /* @__PURE__ */ new Set();
      Eo(this.fileWatchers.values(), i), Eo(this.directoryWatchers.values(), i);
      let n = { value: 0 };
      for (let a of i)
        a.collectTimeInfoEntries(t, r, n);
    }
    getAggregated() {
      this.aggregateTimer && (clearTimeout(this.aggregateTimer), this.aggregateTimer = void 0);
      let t = this.aggregatedChanges, r = this.aggregatedRemovals;
      return this.aggregatedChanges = /* @__PURE__ */ new Set(), this.aggregatedRemovals = /* @__PURE__ */ new Set(), { changes: t, removals: r };
    }
    _onChange(t, r, i, n) {
      i = i || t, this.paused || (this.emit("change", i, r, n), this.aggregateTimer && clearTimeout(this.aggregateTimer), this.aggregateTimer =
      setTimeout(this._onTimeout, this.aggregateTimeout)), this.aggregatedRemovals.delete(t), this.aggregatedChanges.add(t);
    }
    _onRemove(t, r, i) {
      r = r || t, this.paused || (this.emit("remove", r, i), this.aggregateTimer && clearTimeout(this.aggregateTimer), this.aggregateTimer =
      setTimeout(this._onTimeout, this.aggregateTimeout)), this.aggregatedChanges.delete(t), this.aggregatedRemovals.add(t);
    }
    _onTimeout() {
      this.aggregateTimer = void 0;
      let t = this.aggregatedChanges, r = this.aggregatedRemovals;
      this.aggregatedChanges = /* @__PURE__ */ new Set(), this.aggregatedRemovals = /* @__PURE__ */ new Set(), this.emit("aggregated", t, r);
    }
  };
  t2.exports = $f;
});

// ../node_modules/prompts/node_modules/kleur/index.js
var We = B((Rre, m2) => {
  "use strict";
  var { FORCE_COLOR: Hq, NODE_DISABLE_COLORS: Wq, TERM: Jq } = process.env, Be = {
    enabled: !Wq && Jq !== "dumb" && Hq !== "0",
    // modifiers
    reset: Le(0, 0),
    bold: Le(1, 22),
    dim: Le(2, 22),
    italic: Le(3, 23),
    underline: Le(4, 24),
    inverse: Le(7, 27),
    hidden: Le(8, 28),
    strikethrough: Le(9, 29),
    // colors
    black: Le(30, 39),
    red: Le(31, 39),
    green: Le(32, 39),
    yellow: Le(33, 39),
    blue: Le(34, 39),
    magenta: Le(35, 39),
    cyan: Le(36, 39),
    white: Le(37, 39),
    gray: Le(90, 39),
    grey: Le(90, 39),
    // background colors
    bgBlack: Le(40, 49),
    bgRed: Le(41, 49),
    bgGreen: Le(42, 49),
    bgYellow: Le(43, 49),
    bgBlue: Le(44, 49),
    bgMagenta: Le(45, 49),
    bgCyan: Le(46, 49),
    bgWhite: Le(47, 49)
  };
  function d2(e, t) {
    let r = 0, i, n = "", a = "";
    for (; r < e.length; r++)
      i = e[r], n += i.open, a += i.close, t.includes(i.close) && (t = t.replace(i.rgx, i.close + i.open));
    return n + t + a;
  }
  s(d2, "run");
  function Gq(e, t) {
    let r = { has: e, keys: t };
    return r.reset = Be.reset.bind(r), r.bold = Be.bold.bind(r), r.dim = Be.dim.bind(r), r.italic = Be.italic.bind(r), r.underline = Be.underline.
    bind(r), r.inverse = Be.inverse.bind(r), r.hidden = Be.hidden.bind(r), r.strikethrough = Be.strikethrough.bind(r), r.black = Be.black.bind(
    r), r.red = Be.red.bind(r), r.green = Be.green.bind(r), r.yellow = Be.yellow.bind(r), r.blue = Be.blue.bind(r), r.magenta = Be.magenta.bind(
    r), r.cyan = Be.cyan.bind(r), r.white = Be.white.bind(r), r.gray = Be.gray.bind(r), r.grey = Be.grey.bind(r), r.bgBlack = Be.bgBlack.bind(
    r), r.bgRed = Be.bgRed.bind(r), r.bgGreen = Be.bgGreen.bind(r), r.bgYellow = Be.bgYellow.bind(r), r.bgBlue = Be.bgBlue.bind(r), r.bgMagenta =
    Be.bgMagenta.bind(r), r.bgCyan = Be.bgCyan.bind(r), r.bgWhite = Be.bgWhite.bind(r), r;
  }
  s(Gq, "chain");
  function Le(e, t) {
    let r = {
      open: `\x1B[${e}m`,
      close: `\x1B[${t}m`,
      rgx: new RegExp(`\\x1b\\[${t}m`, "g")
    };
    return function(i) {
      return this !== void 0 && this.has !== void 0 ? (this.has.includes(e) || (this.has.push(e), this.keys.push(r)), i === void 0 ? this : Be.
      enabled ? d2(this.keys, i + "") : i + "") : i === void 0 ? Gq([e], [r]) : Be.enabled ? d2([r], i + "") : i + "";
    };
  }
  s(Le, "init");
  m2.exports = Be;
});

// ../node_modules/prompts/dist/util/action.js
var D2 = B((Lre, g2) => {
  "use strict";
  g2.exports = (e, t) => {
    if (!(e.meta && e.name !== "escape")) {
      if (e.ctrl) {
        if (e.name === "a") return "first";
        if (e.name === "c" || e.name === "d") return "abort";
        if (e.name === "e") return "last";
        if (e.name === "g") return "reset";
      }
      if (t) {
        if (e.name === "j") return "down";
        if (e.name === "k") return "up";
      }
      return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" :
      e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name ===
      "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e.
      name === "right" ? "right" : e.name === "left" ? "left" : !1;
    }
  };
});

// ../node_modules/prompts/dist/util/strip.js
var Co = B((Mre, y2) => {
  "use strict";
  y2.exports = (e) => {
    let t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
    "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"), r = new RegExp(t, "g");
    return typeof e == "string" ? e.replace(r, "") : e;
  };
});

// ../node_modules/sisteransi/src/index.js
var Ge = B((jre, x2) => {
  "use strict";
  var zf = "\x1B", Je = `${zf}[`, Xq = "\x07", Hf = {
    to(e, t) {
      return t ? `${Je}${t + 1};${e + 1}H` : `${Je}${e + 1}G`;
    },
    move(e, t) {
      let r = "";
      return e < 0 ? r += `${Je}${-e}D` : e > 0 && (r += `${Je}${e}C`), t < 0 ? r += `${Je}${-t}A` : t > 0 && (r += `${Je}${t}B`), r;
    },
    up: /* @__PURE__ */ s((e = 1) => `${Je}${e}A`, "up"),
    down: /* @__PURE__ */ s((e = 1) => `${Je}${e}B`, "down"),
    forward: /* @__PURE__ */ s((e = 1) => `${Je}${e}C`, "forward"),
    backward: /* @__PURE__ */ s((e = 1) => `${Je}${e}D`, "backward"),
    nextLine: /* @__PURE__ */ s((e = 1) => `${Je}E`.repeat(e), "nextLine"),
    prevLine: /* @__PURE__ */ s((e = 1) => `${Je}F`.repeat(e), "prevLine"),
    left: `${Je}G`,
    hide: `${Je}?25l`,
    show: `${Je}?25h`,
    save: `${zf}7`,
    restore: `${zf}8`
  }, Yq = {
    up: /* @__PURE__ */ s((e = 1) => `${Je}S`.repeat(e), "up"),
    down: /* @__PURE__ */ s((e = 1) => `${Je}T`.repeat(e), "down")
  }, Kq = {
    screen: `${Je}2J`,
    up: /* @__PURE__ */ s((e = 1) => `${Je}1J`.repeat(e), "up"),
    down: /* @__PURE__ */ s((e = 1) => `${Je}J`.repeat(e), "down"),
    line: `${Je}2K`,
    lineEnd: `${Je}K`,
    lineStart: `${Je}1K`,
    lines(e) {
      let t = "";
      for (let r = 0; r < e; r++)
        t += this.line + (r < e - 1 ? Hf.up() : "");
      return e && (t += Hf.left), t;
    }
  };
  x2.exports = { cursor: Hf, scroll: Yq, erase: Kq, beep: Xq };
});

// ../node_modules/prompts/dist/util/clear.js
var w2 = B(($re, C2) => {
  "use strict";
  function Qq(e, t) {
    var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
    if (!r) {
      if (Array.isArray(e) || (r = Zq(e)) || t && e && typeof e.length == "number") {
        r && (e = r);
        var i = 0, n = /* @__PURE__ */ s(function() {
        }, "F");
        return { s: n, n: /* @__PURE__ */ s(function() {
          return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] };
        }, "n"), e: /* @__PURE__ */ s(function(c) {
          throw c;
        }, "e"), f: n };
      }
      throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
    }
    var a = !0, u = !1, o;
    return { s: /* @__PURE__ */ s(function() {
      r = r.call(e);
    }, "s"), n: /* @__PURE__ */ s(function() {
      var c = r.next();
      return a = c.done, c;
    }, "n"), e: /* @__PURE__ */ s(function(c) {
      u = !0, o = c;
    }, "e"), f: /* @__PURE__ */ s(function() {
      try {
        !a && r.return != null && r.return();
      } finally {
        if (u) throw o;
      }
    }, "f") };
  }
  s(Qq, "_createForOfIteratorHelper");
  function Zq(e, t) {
    if (e) {
      if (typeof e == "string") return E2(e, t);
      var r = Object.prototype.toString.call(e).slice(8, -1);
      if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
      if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return E2(e, t);
    }
  }
  s(Zq, "_unsupportedIterableToArray");
  function E2(e, t) {
    (t == null || t > e.length) && (t = e.length);
    for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r];
    return i;
  }
  s(E2, "_arrayLikeToArray");
  var e$ = Co(), v2 = Ge(), b2 = v2.erase, t$ = v2.cursor, r$ = /* @__PURE__ */ s((e) => [...e$(e)].length, "width");
  C2.exports = function(e, t) {
    if (!t) return b2.line + t$.to(0);
    let r = 0, i = e.split(/\r?\n/);
    var n = Qq(i), a;
    try {
      for (n.s(); !(a = n.n()).done; ) {
        let u = a.value;
        r += 1 + Math.floor(Math.max(r$(u) - 1, 0) / t);
      }
    } catch (u) {
      n.e(u);
    } finally {
      n.f();
    }
    return b2.lines(r);
  };
});

// ../node_modules/prompts/dist/util/figures.js
var Wf = B((Ure, A2) => {
  "use strict";
  var la = {
    arrowUp: "\u2191",
    arrowDown: "\u2193",
    arrowLeft: "\u2190",
    arrowRight: "\u2192",
    radioOn: "\u25C9",
    radioOff: "\u25EF",
    tick: "\u2714",
    cross: "\u2716",
    ellipsis: "\u2026",
    pointerSmall: "\u203A",
    line: "\u2500",
    pointer: "\u276F"
  }, i$ = {
    arrowUp: la.arrowUp,
    arrowDown: la.arrowDown,
    arrowLeft: la.arrowLeft,
    arrowRight: la.arrowRight,
    radioOn: "(*)",
    radioOff: "( )",
    tick: "\u221A",
    cross: "\xD7",
    ellipsis: "...",
    pointerSmall: "\xBB",
    line: "\u2500",
    pointer: ">"
  }, n$ = process.platform === "win32" ? i$ : la;
  A2.exports = n$;
});

// ../node_modules/prompts/dist/util/style.js
var S2 = B((zre, F2) => {
  "use strict";
  var es = We(), sn = Wf(), Jf = Object.freeze({
    password: {
      scale: 1,
      render: /* @__PURE__ */ s((e) => "*".repeat(e.length), "render")
    },
    emoji: {
      scale: 2,
      render: /* @__PURE__ */ s((e) => "\u{1F603}".repeat(e.length), "render")
    },
    invisible: {
      scale: 0,
      render: /* @__PURE__ */ s((e) => "", "render")
    },
    default: {
      scale: 1,
      render: /* @__PURE__ */ s((e) => `${e}`, "render")
    }
  }), s$ = /* @__PURE__ */ s((e) => Jf[e] || Jf.default, "render"), ca = Object.freeze({
    aborted: es.red(sn.cross),
    done: es.green(sn.tick),
    exited: es.yellow(sn.cross),
    default: es.cyan("?")
  }), a$ = /* @__PURE__ */ s((e, t, r) => t ? ca.aborted : r ? ca.exited : e ? ca.done : ca.default, "symbol"), u$ = /* @__PURE__ */ s((e) => es.
  gray(e ? sn.ellipsis : sn.pointerSmall), "delimiter"), o$ = /* @__PURE__ */ s((e, t) => es.gray(e ? t ? sn.pointerSmall : "+" : sn.line), "\
item");
  F2.exports = {
    styles: Jf,
    render: s$,
    symbols: ca,
    symbol: a$,
    delimiter: u$,
    item: o$
  };
});

// ../node_modules/prompts/dist/util/lines.js
var k2 = B((Wre, _2) => {
  "use strict";
  var l$ = Co();
  _2.exports = function(e, t) {
    let r = String(l$(e) || "").split(/\r?\n/);
    return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, n) => i + n) : r.length;
  };
});

// ../node_modules/prompts/dist/util/wrap.js
var B2 = B((Jre, T2) => {
  "use strict";
  T2.exports = (e, t = {}) => {
    let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width;
    return (e || "").split(/\r?\n/g).map((n) => n.split(/\s+/g).reduce((a, u) => (u.length + r.length >= i || a[a.length - 1].length + u.length +
    1 < i ? a[a.length - 1] += ` ${u}` : a.push(`${r}${u}`), a), [r]).join(`
`)).join(`
`);
  };
});

// ../node_modules/prompts/dist/util/entriesToDisplay.js
var I2 = B((Gre, P2) => {
  "use strict";
  P2.exports = (e, t, r) => {
    r = r || t;
    let i = Math.min(t - r, e - Math.floor(r / 2));
    i < 0 && (i = 0);
    let n = Math.min(i + r, t);
    return {
      startIndex: i,
      endIndex: n
    };
  };
});

// ../node_modules/prompts/dist/util/index.js
var Dr = B((Xre, O2) => {
  "use strict";
  O2.exports = {
    action: D2(),
    clear: w2(),
    style: S2(),
    strip: Co(),
    figures: Wf(),
    lines: k2(),
    wrap: B2(),
    entriesToDisplay: I2()
  };
});

// ../node_modules/prompts/dist/elements/prompt.js
var ri = B((Yre, L2) => {
  "use strict";
  var R2 = H("readline"), c$ = Dr(), h$ = c$.action, p$ = H("events"), N2 = Ge(), f$ = N2.beep, d$ = N2.cursor, m$ = We(), Gf = class extends p$ {
    static {
      s(this, "Prompt");
    }
    constructor(t = {}) {
      super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender ||
      (() => {
      })).bind(this);
      let r = R2.createInterface({
        input: this.in,
        escapeCodeTimeout: 50
      });
      R2.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0);
      let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, n = /* @__PURE__ */ s((a, u) => {
        let o = h$(u, i);
        o === !1 ? this._ && this._(a, u) : typeof this[o] == "function" ? this[o](u) : this.bell();
      }, "keypress");
      this.close = () => {
        this.out.write(d$.show), this.in.removeListener("keypress", n), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ?
        "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0;
      }, this.in.on("keypress", n);
    }
    fire() {
      this.emit("state", {
        value: this.value,
        aborted: !!this.aborted,
        exited: !!this.exited
      });
    }
    bell() {
      this.out.write(f$);
    }
    render() {
      this.onRender(m$), this.firstRender && (this.firstRender = !1);
    }
  };
  L2.exports = Gf;
});

// ../node_modules/prompts/dist/elements/text.js
var V2 = B((Qre, $2) => {
  "use strict";
  function M2(e, t, r, i, n, a, u) {
    try {
      var o = e[a](u), l = o.value;
    } catch (c) {
      r(c);
      return;
    }
    o.done ? t(l) : Promise.resolve(l).then(i, n);
  }
  s(M2, "asyncGeneratorStep");
  function j2(e) {
    return function() {
      var t = this, r = arguments;
      return new Promise(function(i, n) {
        var a = e.apply(t, r);
        function u(l) {
          M2(a, i, n, u, o, "next", l);
        }
        s(u, "_next");
        function o(l) {
          M2(a, i, n, u, o, "throw", l);
        }
        s(o, "_throw"), u(void 0);
      });
    };
  }
  s(j2, "_asyncToGenerator");
  var wo = We(), g$ = ri(), q2 = Ge(), D$ = q2.erase, ha = q2.cursor, Ao = Dr(), Xf = Ao.style, Yf = Ao.clear, y$ = Ao.lines, x$ = Ao.figures,
  Kf = class extends g$ {
    static {
      s(this, "TextPrompt");
    }
    constructor(t = {}) {
      super(t), this.transform = Xf.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "",
      this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this.
      initial, this.cursorOffset = 0, this.clear = Yf("", this.out.columns), this.render();
    }
    set value(t) {
      !t && this.initial ? (this.placeholder = !0, this.rendered = wo.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this.
      rendered = this.transform.render(t)), this._value = t, this.fire();
    }
    get value() {
      return this._value;
    }
    reset() {
      this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this.
      out.write(`
`), this.close();
    }
    validate() {
      var t = this;
      return j2(function* () {
        let r = yield t.validator(t.value);
        typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r;
      })();
    }
    submit() {
      var t = this;
      return j2(function* () {
        if (t.value = t.value || t.initial, t.cursorOffset = 0, t.cursor = t.rendered.length, yield t.validate(), t.error) {
          t.red = !0, t.fire(), t.render();
          return;
        }
        t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(`
`), t.close();
      })();
    }
    next() {
      if (!this.placeholder) return this.bell();
      this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render();
    }
    moveCursor(t) {
      this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t);
    }
    _(t, r) {
      let i = this.value.slice(0, this.cursor), n = this.value.slice(this.cursor);
      this.value = `${i}${t}${n}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render();
    }
    delete() {
      if (this.isCursorAtStart()) return this.bell();
      let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor);
      this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this.
      render();
    }
    deleteForward() {
      if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
      let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1);
      this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render();
    }
    first() {
      this.cursor = 0, this.render();
    }
    last() {
      this.cursor = this.value.length, this.render();
    }
    left() {
      if (this.cursor <= 0 || this.placeholder) return this.bell();
      this.moveCursor(-1), this.render();
    }
    right() {
      if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
      this.moveCursor(1), this.render();
    }
    isCursorAtStart() {
      return this.cursor === 0 || this.placeholder && this.cursor === 1;
    }
    isCursorAtEnd() {
      return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
    }
    render() {
      this.closed || (this.firstRender || (this.outputError && this.out.write(ha.down(y$(this.outputError, this.out.columns) - 1) + Yf(this.
      outputError, this.out.columns)), this.out.write(Yf(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText =
      [Xf.symbol(this.done, this.aborted), wo.bold(this.msg), Xf.delimiter(this.done), this.red ? wo.red(this.rendered) : this.rendered].join(
      " "), this.error && (this.outputError += this.errorMsg.split(`
`).reduce((t, r, i) => t + `
${i ? " " : x$.pointerSmall} ${wo.red().italic(r)}`, "")), this.out.write(D$.line + ha.to(0) + this.outputText + ha.save + this.outputError +
      ha.restore + ha.move(this.cursorOffset, 0)));
    }
  };
  $2.exports = Kf;
});

// ../node_modules/prompts/dist/elements/select.js
var W2 = B((eie, H2) => {
  "use strict";
  var ii = We(), E$ = ri(), pa = Dr(), U2 = pa.style, z2 = pa.clear, Fo = pa.figures, b$ = pa.wrap, v$ = pa.entriesToDisplay, C$ = Ge(), w$ = C$.
  cursor, Qf = class extends E$ {
    static {
      s(this, "SelectPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\
isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = {
        title: r,
        value: i
      }), {
        title: r && (r.title || r.value || r),
        value: r && (r.value === void 0 ? i : r.value),
        description: r && r.description,
        selected: r && r.selected,
        disabled: r && r.disabled
      })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = z2("", this.out.
      columns), this.render();
    }
    moveCursor(t) {
      this.cursor = t, this.value = this.choices[t].value, this.fire();
    }
    reset() {
      this.moveCursor(0), this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close());
    }
    first() {
      this.moveCursor(0), this.render();
    }
    last() {
      this.moveCursor(this.choices.length - 1), this.render();
    }
    up() {
      this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render();
    }
    down() {
      this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render();
    }
    next() {
      this.moveCursor((this.cursor + 1) % this.choices.length), this.render();
    }
    _(t, r) {
      if (t === " ") return this.submit();
    }
    get selection() {
      return this.choices[this.cursor];
    }
    render() {
      if (this.closed) return;
      this.firstRender ? this.out.write(w$.hide) : this.out.write(z2(this.outputText, this.out.columns)), super.render();
      let t = v$(this.cursor, this.choices.length, this.optionsPerPage), r = t.startIndex, i = t.endIndex;
      if (this.outputText = [U2.symbol(this.done, this.aborted), ii.bold(this.msg), U2.delimiter(!1), this.done ? this.selection.title : this.
      selection.disabled ? ii.yellow(this.warn) : ii.gray(this.hint)].join(" "), !this.done) {
        this.outputText += `
`;
        for (let n = r; n < i; n++) {
          let a, u, o = "", l = this.choices[n];
          n === r && r > 0 ? u = Fo.arrowUp : n === i - 1 && i < this.choices.length ? u = Fo.arrowDown : u = " ", l.disabled ? (a = this.cursor ===
          n ? ii.gray().underline(l.title) : ii.strikethrough().gray(l.title), u = (this.cursor === n ? ii.bold().gray(Fo.pointer) + " " : "\
  ") + u) : (a = this.cursor === n ? ii.cyan().underline(l.title) : l.title, u = (this.cursor === n ? ii.cyan(Fo.pointer) + " " : "  ") + u,
          l.description && this.cursor === n && (o = ` - ${l.description}`, (u.length + a.length + o.length >= this.out.columns || l.description.
          split(/\r?\n/).length > 1) && (o = `
` + b$(l.description, {
            margin: 3,
            width: this.out.columns
          })))), this.outputText += `${u} ${a}${ii.gray(o)}
`;
        }
      }
      this.out.write(this.outputText);
    }
  };
  H2.exports = Qf;
});

// ../node_modules/prompts/dist/elements/toggle.js
var Q2 = B((rie, K2) => {
  "use strict";
  var So = We(), A$ = ri(), X2 = Dr(), J2 = X2.style, F$ = X2.clear, Y2 = Ge(), G2 = Y2.cursor, S$ = Y2.erase, Zf = class extends A$ {
    static {
      s(this, "TogglePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue =
      this.value, this.render();
    }
    reset() {
      this.value = this.initialValue, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    deactivate() {
      if (this.value === !1) return this.bell();
      this.value = !1, this.render();
    }
    activate() {
      if (this.value === !0) return this.bell();
      this.value = !0, this.render();
    }
    delete() {
      this.deactivate();
    }
    left() {
      this.deactivate();
    }
    right() {
      this.activate();
    }
    down() {
      this.deactivate();
    }
    up() {
      this.activate();
    }
    next() {
      this.value = !this.value, this.fire(), this.render();
    }
    _(t, r) {
      if (t === " ")
        this.value = !this.value;
      else if (t === "1")
        this.value = !0;
      else if (t === "0")
        this.value = !1;
      else return this.bell();
      this.render();
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(G2.hide) : this.out.write(F$(this.outputText, this.out.columns)), super.render(), this.
      outputText = [J2.symbol(this.done, this.aborted), So.bold(this.msg), J2.delimiter(this.done), this.value ? this.inactive : So.cyan().underline(
      this.inactive), So.gray("/"), this.value ? So.cyan().underline(this.active) : this.active].join(" "), this.out.write(S$.line + G2.to(0) +
      this.outputText));
    }
  };
  K2.exports = Zf;
});

// ../node_modules/prompts/dist/dateparts/datepart.js
var Rr = B((nie, Z2) => {
  "use strict";
  var ed = class e {
    static {
      s(this, "DatePart");
    }
    constructor({
      token: t,
      date: r,
      parts: i,
      locales: n
    }) {
      this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = n || {};
    }
    up() {
    }
    down() {
    }
    next() {
      let t = this.parts.indexOf(this);
      return this.parts.find((r, i) => i > t && r instanceof e);
    }
    setTo(t) {
    }
    prev() {
      let t = [].concat(this.parts).reverse(), r = t.indexOf(this);
      return t.find((i, n) => n > r && i instanceof e);
    }
    toString() {
      return String(this.date);
    }
  };
  Z2.exports = ed;
});

// ../node_modules/prompts/dist/dateparts/meridiem.js
var tw = B((aie, ew) => {
  "use strict";
  var _$ = Rr(), td = class extends _$ {
    static {
      s(this, "Meridiem");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setHours((this.date.getHours() + 12) % 24);
    }
    down() {
      this.up();
    }
    toString() {
      let t = this.date.getHours() > 12 ? "pm" : "am";
      return /\A/.test(this.token) ? t.toUpperCase() : t;
    }
  };
  ew.exports = td;
});

// ../node_modules/prompts/dist/dateparts/day.js
var iw = B((oie, rw) => {
  "use strict";
  var k$ = Rr(), T$ = /* @__PURE__ */ s((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), rd = class extends k$ {
    static {
      s(this, "Day");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setDate(this.date.getDate() + 1);
    }
    down() {
      this.date.setDate(this.date.getDate() - 1);
    }
    setTo(t) {
      this.date.setDate(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getDate(), r = this.date.getDay();
      return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + T$(t) : this.token === "d" ? r + 1 : this.token ===
      "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t;
    }
  };
  rw.exports = rd;
});

// ../node_modules/prompts/dist/dateparts/hours.js
var sw = B((cie, nw) => {
  "use strict";
  var B$ = Rr(), id = class extends B$ {
    static {
      s(this, "Hours");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setHours(this.date.getHours() + 1);
    }
    down() {
      this.date.setHours(this.date.getHours() - 1);
    }
    setTo(t) {
      this.date.setHours(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getHours();
      return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  nw.exports = id;
});

// ../node_modules/prompts/dist/dateparts/milliseconds.js
var uw = B((pie, aw) => {
  "use strict";
  var P$ = Rr(), nd = class extends P$ {
    static {
      s(this, "Milliseconds");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMilliseconds(this.date.getMilliseconds() + 1);
    }
    down() {
      this.date.setMilliseconds(this.date.getMilliseconds() - 1);
    }
    setTo(t) {
      this.date.setMilliseconds(parseInt(t.substr(-this.token.length)));
    }
    toString() {
      return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length);
    }
  };
  aw.exports = nd;
});

// ../node_modules/prompts/dist/dateparts/minutes.js
var lw = B((die, ow) => {
  "use strict";
  var I$ = Rr(), sd = class extends I$ {
    static {
      s(this, "Minutes");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMinutes(this.date.getMinutes() + 1);
    }
    down() {
      this.date.setMinutes(this.date.getMinutes() - 1);
    }
    setTo(t) {
      this.date.setMinutes(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getMinutes();
      return this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  ow.exports = sd;
});

// ../node_modules/prompts/dist/dateparts/month.js
var hw = B((gie, cw) => {
  "use strict";
  var O$ = Rr(), ad = class extends O$ {
    static {
      s(this, "Month");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMonth(this.date.getMonth() + 1);
    }
    down() {
      this.date.setMonth(this.date.getMonth() - 1);
    }
    setTo(t) {
      t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t);
    }
    toString() {
      let t = this.date.getMonth(), r = this.token.length;
      return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t +
      1);
    }
  };
  cw.exports = ad;
});

// ../node_modules/prompts/dist/dateparts/seconds.js
var fw = B((yie, pw) => {
  "use strict";
  var R$ = Rr(), ud = class extends R$ {
    static {
      s(this, "Seconds");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setSeconds(this.date.getSeconds() + 1);
    }
    down() {
      this.date.setSeconds(this.date.getSeconds() - 1);
    }
    setTo(t) {
      this.date.setSeconds(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getSeconds();
      return this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  pw.exports = ud;
});

// ../node_modules/prompts/dist/dateparts/year.js
var mw = B((Eie, dw) => {
  "use strict";
  var N$ = Rr(), od = class extends N$ {
    static {
      s(this, "Year");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setFullYear(this.date.getFullYear() + 1);
    }
    down() {
      this.date.setFullYear(this.date.getFullYear() - 1);
    }
    setTo(t) {
      this.date.setFullYear(t.substr(-4));
    }
    toString() {
      let t = String(this.date.getFullYear()).padStart(4, "0");
      return this.token.length === 2 ? t.substr(-2) : t;
    }
  };
  dw.exports = od;
});

// ../node_modules/prompts/dist/dateparts/index.js
var Dw = B((vie, gw) => {
  "use strict";
  gw.exports = {
    DatePart: Rr(),
    Meridiem: tw(),
    Day: iw(),
    Hours: sw(),
    Milliseconds: uw(),
    Minutes: lw(),
    Month: hw(),
    Seconds: fw(),
    Year: mw()
  };
});

// ../node_modules/prompts/dist/elements/date.js
var Sw = B((Cie, Fw) => {
  "use strict";
  function yw(e, t, r, i, n, a, u) {
    try {
      var o = e[a](u), l = o.value;
    } catch (c) {
      r(c);
      return;
    }
    o.done ? t(l) : Promise.resolve(l).then(i, n);
  }
  s(yw, "asyncGeneratorStep");
  function xw(e) {
    return function() {
      var t = this, r = arguments;
      return new Promise(function(i, n) {
        var a = e.apply(t, r);
        function u(l) {
          yw(a, i, n, u, o, "next", l);
        }
        s(u, "_next");
        function o(l) {
          yw(a, i, n, u, o, "throw", l);
        }
        s(o, "_throw"), u(void 0);
      });
    };
  }
  s(xw, "_asyncToGenerator");
  var ld = We(), L$ = ri(), hd = Dr(), Ew = hd.style, bw = hd.clear, M$ = hd.figures, Aw = Ge(), j$ = Aw.erase, vw = Aw.cursor, ni = Dw(), Cw = ni.
  DatePart, q$ = ni.Meridiem, $$ = ni.Day, V$ = ni.Hours, U$ = ni.Milliseconds, z$ = ni.Minutes, H$ = ni.Month, W$ = ni.Seconds, J$ = ni.Year,
  G$ = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, ww = {
    1: ({
      token: e
    }) => e.replace(/\\(.)/g, "$1"),
    2: (e) => new $$(e),
    // Day // TODO
    3: (e) => new H$(e),
    // Month
    4: (e) => new J$(e),
    // Year
    5: (e) => new q$(e),
    // AM/PM // TODO (special)
    6: (e) => new V$(e),
    // Hours
    7: (e) => new z$(e),
    // Minutes
    8: (e) => new W$(e),
    // Seconds
    9: (e) => new U$(e)
    // Fractional seconds
  }, X$ = {
    months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
    monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),
    weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
    weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")
  }, cd = class extends L$ {
    static {
      s(this, "DatePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(X$, t.locales), this._date = t.initial ||
      /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask =
      t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = bw("", this.out.columns), this.render();
    }
    get value() {
      return this.date;
    }
    get date() {
      return this._date;
    }
    set date(t) {
      t && this._date.setTime(t.getTime());
    }
    set mask(t) {
      let r;
      for (this.parts = []; r = G$.exec(t); ) {
        let n = r.shift(), a = r.findIndex((u) => u != null);
        this.parts.push(a in ww ? ww[a]({
          token: r[a] || n,
          date: this.date,
          parts: this.parts,
          locales: this.locales
        }) : r[a] || n);
      }
      let i = this.parts.reduce((n, a) => (typeof a == "string" && typeof n[n.length - 1] == "string" ? n[n.length - 1] += a : n.push(a), n),
      []);
      this.parts.splice(0), this.parts.push(...i), this.reset();
    }
    moveCursor(t) {
      this.typed = "", this.cursor = t, this.fire();
    }
    reset() {
      this.moveCursor(this.parts.findIndex((t) => t instanceof Cw)), this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    validate() {
      var t = this;
      return xw(function* () {
        let r = yield t.validator(t.value);
        typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r;
      })();
    }
    submit() {
      var t = this;
      return xw(function* () {
        if (yield t.validate(), t.error) {
          t.color = "red", t.fire(), t.render();
          return;
        }
        t.done = !0, t.aborted = !1, t.fire(), t.render(), t.out.write(`
`), t.close();
      })();
    }
    up() {
      this.typed = "", this.parts[this.cursor].up(), this.render();
    }
    down() {
      this.typed = "", this.parts[this.cursor].down(), this.render();
    }
    left() {
      let t = this.parts[this.cursor].prev();
      if (t == null) return this.bell();
      this.moveCursor(this.parts.indexOf(t)), this.render();
    }
    right() {
      let t = this.parts[this.cursor].next();
      if (t == null) return this.bell();
      this.moveCursor(this.parts.indexOf(t)), this.render();
    }
    next() {
      let t = this.parts[this.cursor].next();
      this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof Cw)), this.render();
    }
    _(t) {
      /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render());
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(vw.hide) : this.out.write(bw(this.outputText, this.out.columns)), super.render(), this.
      outputText = [Ew.symbol(this.done, this.aborted), ld.bold(this.msg), Ew.delimiter(!1), this.parts.reduce((t, r, i) => t.concat(i === this.
      cursor && !this.done ? ld.cyan().underline(r.toString()) : r), []).join("")].join(" "), this.error && (this.outputText += this.errorMsg.
      split(`
`).reduce((t, r, i) => t + `
${i ? " " : M$.pointerSmall} ${ld.red().italic(r)}`, "")), this.out.write(j$.line + vw.to(0) + this.outputText));
    }
  };
  Fw.exports = cd;
});

// ../node_modules/prompts/dist/elements/number.js
var Ow = B((Aie, Iw) => {
  "use strict";
  function _w(e, t, r, i, n, a, u) {
    try {
      var o = e[a](u), l = o.value;
    } catch (c) {
      r(c);
      return;
    }
    o.done ? t(l) : Promise.resolve(l).then(i, n);
  }
  s(_w, "asyncGeneratorStep");
  function kw(e) {
    return function() {
      var t = this, r = arguments;
      return new Promise(function(i, n) {
        var a = e.apply(t, r);
        function u(l) {
          _w(a, i, n, u, o, "next", l);
        }
        s(u, "_next");
        function o(l) {
          _w(a, i, n, u, o, "throw", l);
        }
        s(o, "_throw"), u(void 0);
      });
    };
  }
  s(kw, "_asyncToGenerator");
  var _o = We(), Y$ = ri(), Pw = Ge(), ko = Pw.cursor, K$ = Pw.erase, To = Dr(), pd = To.style, Q$ = To.figures, Tw = To.clear, Z$ = To.lines,
  eV = /[0-9]/, fd = /* @__PURE__ */ s((e) => e !== void 0, "isDef"), Bw = /* @__PURE__ */ s((e, t) => {
    let r = Math.pow(10, t);
    return Math.round(e * r) / r;
  }, "round"), dd = class extends Y$ {
    static {
      s(this, "NumberPrompt");
    }
    constructor(t = {}) {
      super(t), this.transform = pd.render(t.style), this.msg = t.message, this.initial = fd(t.initial) ? t.initial : "", this.float = !!t.float,
      this.round = t.round || 2, this.inc = t.increment || 1, this.min = fd(t.min) ? t.min : -1 / 0, this.max = fd(t.max) ? t.max : 1 / 0, this.
      errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this.
      typed = "", this.lastHit = 0, this.render();
    }
    set value(t) {
      !t && t !== 0 ? (this.placeholder = !0, this.rendered = _o.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder =
      !1, this.rendered = this.transform.render(`${Bw(t, this.round)}`), this._value = Bw(t, this.round)), this.fire();
    }
    get value() {
      return this._value;
    }
    parse(t) {
      return this.float ? parseFloat(t) : parseInt(t);
    }
    valid(t) {
      return t === "-" || t === "." && this.float || eV.test(t);
    }
    reset() {
      this.typed = "", this.value = "", this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      let t = this.value;
      this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\

`), this.close();
    }
    validate() {
      var t = this;
      return kw(function* () {
        let r = yield t.validator(t.value);
        typeof r == "string" && (t.errorMsg = r, r = !1), t.error = !r;
      })();
    }
    submit() {
      var t = this;
      return kw(function* () {
        if (yield t.validate(), t.error) {
          t.color = "red", t.fire(), t.render();
          return;
        }
        let r = t.value;
        t.value = r !== "" ? r : t.initial, t.done = !0, t.aborted = !1, t.error = !1, t.fire(), t.render(), t.out.write(`
`), t.close();
      })();
    }
    up() {
      if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell();
      this.value += this.inc, this.color = "cyan", this.fire(), this.render();
    }
    down() {
      if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell();
      this.value -= this.inc, this.color = "cyan", this.fire(), this.render();
    }
    delete() {
      let t = this.value.toString();
      if (t.length === 0) return this.bell();
      this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color =
      "cyan", this.fire(), this.render();
    }
    next() {
      this.value = this.initial, this.fire(), this.render();
    }
    _(t, r) {
      if (!this.valid(t)) return this.bell();
      let i = Date.now();
      if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire();
      this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this.
      value = this.min), this.fire(), this.render();
    }
    render() {
      this.closed || (this.firstRender || (this.outputError && this.out.write(ko.down(Z$(this.outputError, this.out.columns) - 1) + Tw(this.
      outputError, this.out.columns)), this.out.write(Tw(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText =
      [pd.symbol(this.done, this.aborted), _o.bold(this.msg), pd.delimiter(this.done), !this.done || !this.done && !this.placeholder ? _o[this.
      color]().underline(this.rendered) : this.rendered].join(" "), this.error && (this.outputError += this.errorMsg.split(`
`).reduce((t, r, i) => t + `
${i ? " " : Q$.pointerSmall} ${_o.red().italic(r)}`, "")), this.out.write(K$.line + ko.to(0) + this.outputText + ko.save + this.outputError +
      ko.restore));
    }
  };
  Iw.exports = dd;
});

// ../node_modules/prompts/dist/elements/multiselect.js
var gd = B((Sie, Lw) => {
  "use strict";
  var Nr = We(), tV = Ge(), rV = tV.cursor, iV = ri(), fa = Dr(), Rw = fa.clear, Pi = fa.figures, Nw = fa.style, nV = fa.wrap, sV = fa.entriesToDisplay,
  md = class extends iV {
    static {
      s(this, "MultiselectPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t.
      warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t.
      instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = {
        title: r,
        value: i
      }), {
        title: r && (r.title || r.value || r),
        description: r && r.description,
        value: r && (r.value === void 0 ? i : r.value),
        selected: r && r.selected,
        disabled: r && r.disabled
      })), this.clear = Rw("", this.out.columns), t.overrideRender || this.render();
    }
    reset() {
      this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render();
    }
    selected() {
      return this.value.filter((t) => t.selected);
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      let t = this.value.filter((r) => r.selected);
      this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(),
      this.render(), this.out.write(`
`), this.close());
    }
    first() {
      this.cursor = 0, this.render();
    }
    last() {
      this.cursor = this.value.length - 1, this.render();
    }
    next() {
      this.cursor = (this.cursor + 1) % this.value.length, this.render();
    }
    up() {
      this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render();
    }
    down() {
      this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render();
    }
    left() {
      this.value[this.cursor].selected = !1, this.render();
    }
    right() {
      if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell();
      this.value[this.cursor].selected = !0, this.render();
    }
    handleSpaceToggle() {
      let t = this.value[this.cursor];
      if (t.selected)
        t.selected = !1, this.render();
      else {
        if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices)
          return this.bell();
        t.selected = !0, this.render();
      }
    }
    toggleAll() {
      if (this.maxChoices !== void 0 || this.value[this.cursor].disabled)
        return this.bell();
      let t = !this.value[this.cursor].selected;
      this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render();
    }
    _(t, r) {
      if (t === " ")
        this.handleSpaceToggle();
      else if (t === "a")
        this.toggleAll();
      else
        return this.bell();
    }
    renderInstructions() {
      return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : `
Instructions:
    ${Pi.arrowUp}/${Pi.arrowDown}: Highlight option
    ${Pi.arrowLeft}/${Pi.arrowRight}/[space]: Toggle selection
` + (this.maxChoices === void 0 ? `    a: Toggle all
` : "") + "    enter/return: Complete answer" : "";
    }
    renderOption(t, r, i, n) {
      let a = (r.selected ? Nr.green(Pi.radioOn) : Pi.radioOff) + " " + n + " ", u, o;
      return r.disabled ? u = t === i ? Nr.gray().underline(r.title) : Nr.strikethrough().gray(r.title) : (u = t === i ? Nr.cyan().underline(
      r.title) : r.title, t === i && r.description && (o = ` - ${r.description}`, (a.length + u.length + o.length >= this.out.columns || r.description.
      split(/\r?\n/).length > 1) && (o = `
` + nV(r.description, {
        margin: a.length,
        width: this.out.columns
      })))), a + u + Nr.gray(o || "");
    }
    // shared with autocompleteMultiselect
    paginateOptions(t) {
      if (t.length === 0)
        return Nr.red("No matches for this query.");
      let r = sV(this.cursor, t.length, this.optionsPerPage), i = r.startIndex, n = r.endIndex, a, u = [];
      for (let o = i; o < n; o++)
        o === i && i > 0 ? a = Pi.arrowUp : o === n - 1 && n < t.length ? a = Pi.arrowDown : a = " ", u.push(this.renderOption(this.cursor, t[o],
        o, a));
      return `
` + u.join(`
`);
    }
    // shared with autocomleteMultiselect
    renderOptions(t) {
      return this.done ? "" : this.paginateOptions(t);
    }
    renderDoneOrInstructions() {
      if (this.done)
        return this.value.filter((r) => r.selected).map((r) => r.title).join(", ");
      let t = [Nr.gray(this.hint), this.renderInstructions()];
      return this.value[this.cursor].disabled && t.push(Nr.yellow(this.warn)), t.join(" ");
    }
    render() {
      if (this.closed) return;
      this.firstRender && this.out.write(rV.hide), super.render();
      let t = [Nw.symbol(this.done, this.aborted), Nr.bold(this.msg), Nw.delimiter(!1), this.renderDoneOrInstructions()].join(" ");
      this.showMinError && (t += Nr.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions(
      this.value), this.out.write(this.clear + t), this.clear = Rw(t, this.out.columns);
    }
  };
  Lw.exports = md;
});

// ../node_modules/prompts/dist/elements/autocomplete.js
var zw = B((kie, Uw) => {
  "use strict";
  function Mw(e, t, r, i, n, a, u) {
    try {
      var o = e[a](u), l = o.value;
    } catch (c) {
      r(c);
      return;
    }
    o.done ? t(l) : Promise.resolve(l).then(i, n);
  }
  s(Mw, "asyncGeneratorStep");
  function aV(e) {
    return function() {
      var t = this, r = arguments;
      return new Promise(function(i, n) {
        var a = e.apply(t, r);
        function u(l) {
          Mw(a, i, n, u, o, "next", l);
        }
        s(u, "_next");
        function o(l) {
          Mw(a, i, n, u, o, "throw", l);
        }
        s(o, "_throw"), u(void 0);
      });
    };
  }
  s(aV, "_asyncToGenerator");
  var da = We(), uV = ri(), Vw = Ge(), oV = Vw.erase, jw = Vw.cursor, ma = Dr(), Dd = ma.style, qw = ma.clear, yd = ma.figures, lV = ma.wrap,
  cV = ma.entriesToDisplay, $w = /* @__PURE__ */ s((e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), hV = /* @__PURE__ */ s((e, t) => e[t] &&
  (e[t].title || e[t].value || e[t]), "getTitle"), pV = /* @__PURE__ */ s((e, t) => {
    let r = e.findIndex((i) => i.value === t || i.title === t);
    return r > -1 ? r : void 0;
  }, "getIndex"), xd = class extends uV {
    static {
      s(this, "AutocompletePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial :
      pV(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = {
        noMatches: t.noMatches || "no matches found"
      }, this.fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit =
      t.limit || 10, this.cursor = 0, this.transform = Dd.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind(
      this), this.complete = this.complete.bind(this), this.clear = qw("", this.out.columns), this.complete(this.render), this.render();
    }
    set fallback(t) {
      this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t;
    }
    get fallback() {
      let t;
      return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = {
        title: this._fb
      }), t || this._fb || {
        title: this.i18n.noMatches
      };
    }
    moveSelect(t) {
      this.select = t, this.suggestions.length > 0 ? this.value = $w(this.suggestions, t) : this.value = this.fallback.value, this.fire();
    }
    complete(t) {
      var r = this;
      return aV(function* () {
        let i = r.completing = r.suggest(r.input, r.choices), n = yield i;
        if (r.completing !== i) return;
        r.suggestions = n.map((u, o, l) => ({
          title: hV(l, o),
          value: $w(l, o),
          description: u.description
        })), r.completing = !1;
        let a = Math.max(n.length - 1, 0);
        r.moveSelect(Math.min(a, r.select)), t && t();
      })();
    }
    reset() {
      this.input = "", this.complete(() => {
        this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render();
      }), this.render();
    }
    exit() {
      this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(),
      this.out.write(`
`), this.close());
    }
    abort() {
      this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    _(t, r) {
      let i = this.input.slice(0, this.cursor), n = this.input.slice(this.cursor);
      this.input = `${i}${t}${n}`, this.cursor = i.length + 1, this.complete(this.render), this.render();
    }
    delete() {
      if (this.cursor === 0) return this.bell();
      let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor);
      this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render();
    }
    deleteForward() {
      if (this.cursor * this.scale >= this.rendered.length) return this.bell();
      let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1);
      this.input = `${t}${r}`, this.complete(this.render), this.render();
    }
    first() {
      this.moveSelect(0), this.render();
    }
    last() {
      this.moveSelect(this.suggestions.length - 1), this.render();
    }
    up() {
      this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render();
    }
    down() {
      this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render();
    }
    next() {
      this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render();
    }
    nextPage() {
      this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render();
    }
    prevPage() {
      this.moveSelect(Math.max(this.select - this.limit, 0)), this.render();
    }
    left() {
      if (this.cursor <= 0) return this.bell();
      this.cursor = this.cursor - 1, this.render();
    }
    right() {
      if (this.cursor * this.scale >= this.rendered.length) return this.bell();
      this.cursor = this.cursor + 1, this.render();
    }
    renderOption(t, r, i, n) {
      let a, u = i ? yd.arrowUp : n ? yd.arrowDown : " ", o = r ? da.cyan().underline(t.title) : t.title;
      return u = (r ? da.cyan(yd.pointer) + " " : "  ") + u, t.description && (a = ` - ${t.description}`, (u.length + o.length + a.length >=
      this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = `
` + lV(t.description, {
        margin: 3,
        width: this.out.columns
      }))), u + " " + o + da.gray(a || "");
    }
    render() {
      if (this.closed) return;
      this.firstRender ? this.out.write(jw.hide) : this.out.write(qw(this.outputText, this.out.columns)), super.render();
      let t = cV(this.select, this.choices.length, this.limit), r = t.startIndex, i = t.endIndex;
      if (this.outputText = [Dd.symbol(this.done, this.aborted, this.exited), da.bold(this.msg), Dd.delimiter(this.completing), this.done &&
      this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)].join(" "), !this.
      done) {
        let n = this.suggestions.slice(r, i).map((a, u) => this.renderOption(a, this.select === u + r, u === 0 && r > 0, u + r === i - 1 && i <
        this.choices.length)).join(`
`);
        this.outputText += `
` + (n || da.gray(this.fallback.title));
      }
      this.out.write(oV.line + jw.to(0) + this.outputText);
    }
  };
  Uw.exports = xd;
});

// ../node_modules/prompts/dist/elements/autocompleteMultiselect.js
var Gw = B((Bie, Jw) => {
  "use strict";
  var si = We(), fV = Ge(), dV = fV.cursor, mV = gd(), bd = Dr(), Hw = bd.clear, Ww = bd.style, ts = bd.figures, Ed = class extends mV {
    static {
      s(this, "AutocompleteMultiselectPrompt");
    }
    constructor(t = {}) {
      t.overrideRender = !0, super(t), this.inputValue = "", this.clear = Hw("", this.out.columns), this.filteredOptions = this.value, this.
      render();
    }
    last() {
      this.cursor = this.filteredOptions.length - 1, this.render();
    }
    next() {
      this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render();
    }
    up() {
      this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render();
    }
    down() {
      this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render();
    }
    left() {
      this.filteredOptions[this.cursor].selected = !1, this.render();
    }
    right() {
      if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell();
      this.filteredOptions[this.cursor].selected = !0, this.render();
    }
    delete() {
      this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions());
    }
    updateFilteredOptions() {
      let t = this.filteredOptions[this.cursor];
      this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this.
      inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0);
      let r = this.filteredOptions.findIndex((i) => i === t);
      this.cursor = r < 0 ? 0 : r, this.render();
    }
    handleSpaceToggle() {
      let t = this.filteredOptions[this.cursor];
      if (t.selected)
        t.selected = !1, this.render();
      else {
        if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices)
          return this.bell();
        t.selected = !0, this.render();
      }
    }
    handleInputChange(t) {
      this.inputValue = this.inputValue + t, this.updateFilteredOptions();
    }
    _(t, r) {
      t === " " ? this.handleSpaceToggle() : this.handleInputChange(t);
    }
    renderInstructions() {
      return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : `
Instructions:
    ${ts.arrowUp}/${ts.arrowDown}: Highlight option
    ${ts.arrowLeft}/${ts.arrowRight}/[space]: Toggle selection
    [a,b,c]/delete: Filter choices
    enter/return: Complete answer
` : "";
    }
    renderCurrentInput() {
      return `
Filtered results for: ${this.inputValue ? this.inputValue : si.gray("Enter something to filter")}
`;
    }
    renderOption(t, r, i) {
      let n;
      return r.disabled ? n = t === i ? si.gray().underline(r.title) : si.strikethrough().gray(r.title) : n = t === i ? si.cyan().underline(
      r.title) : r.title, (r.selected ? si.green(ts.radioOn) : ts.radioOff) + "  " + n;
    }
    renderDoneOrInstructions() {
      if (this.done)
        return this.value.filter((r) => r.selected).map((r) => r.title).join(", ");
      let t = [si.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()];
      return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(si.yellow(this.warn)), t.join(" ");
    }
    render() {
      if (this.closed) return;
      this.firstRender && this.out.write(dV.hide), super.render();
      let t = [Ww.symbol(this.done, this.aborted), si.bold(this.msg), Ww.delimiter(!1), this.renderDoneOrInstructions()].join(" ");
      this.showMinError && (t += si.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions(
      this.filteredOptions), this.out.write(this.clear + t), this.clear = Hw(t, this.out.columns);
    }
  };
  Jw.exports = Ed;
});

// ../node_modules/prompts/dist/elements/confirm.js
var tA = B((Iie, eA) => {
  "use strict";
  var Xw = We(), gV = ri(), Qw = Dr(), Yw = Qw.style, DV = Qw.clear, Zw = Ge(), yV = Zw.erase, Kw = Zw.cursor, vd = class extends gV {
    static {
      s(this, "ConfirmPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption =
      t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render();
    }
    reset() {
      this.value = this.initialValue, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    _(t, r) {
      return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this.
      bell();
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(Kw.hide) : this.out.write(DV(this.outputText, this.out.columns)), super.render(), this.
      outputText = [Yw.symbol(this.done, this.aborted), Xw.bold(this.msg), Yw.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.
      noMsg : Xw.gray(this.initialValue ? this.yesOption : this.noOption)].join(" "), this.out.write(yV.line + Kw.to(0) + this.outputText));
    }
  };
  eA.exports = vd;
});

// ../node_modules/prompts/dist/elements/index.js
var iA = B((Rie, rA) => {
  "use strict";
  rA.exports = {
    TextPrompt: V2(),
    SelectPrompt: W2(),
    TogglePrompt: Q2(),
    DatePrompt: Sw(),
    NumberPrompt: Ow(),
    MultiselectPrompt: gd(),
    AutocompletePrompt: zw(),
    AutocompleteMultiselectPrompt: Gw(),
    ConfirmPrompt: tA()
  };
});

// ../node_modules/prompts/dist/prompts.js
var sA = B((nA) => {
  "use strict";
  var Tt = nA, xV = iA(), Bo = /* @__PURE__ */ s((e) => e, "noop");
  function Lr(e, t, r = {}) {
    return new Promise((i, n) => {
      let a = new xV[e](t), u = r.onAbort || Bo, o = r.onSubmit || Bo, l = r.onExit || Bo;
      a.on("state", t.onState || Bo), a.on("submit", (c) => i(o(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => n(u(c)));
    });
  }
  s(Lr, "toPrompt");
  Tt.text = (e) => Lr("TextPrompt", e);
  Tt.password = (e) => (e.style = "password", Tt.text(e));
  Tt.invisible = (e) => (e.style = "invisible", Tt.text(e));
  Tt.number = (e) => Lr("NumberPrompt", e);
  Tt.date = (e) => Lr("DatePrompt", e);
  Tt.confirm = (e) => Lr("ConfirmPrompt", e);
  Tt.list = (e) => {
    let t = e.separator || ",";
    return Lr("TextPrompt", e, {
      onSubmit: /* @__PURE__ */ s((r) => r.split(t).map((i) => i.trim()), "onSubmit")
    });
  };
  Tt.toggle = (e) => Lr("TogglePrompt", e);
  Tt.select = (e) => Lr("SelectPrompt", e);
  Tt.multiselect = (e) => {
    e.choices = [].concat(e.choices || []);
    let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected");
    return Lr("MultiselectPrompt", e, {
      onAbort: t,
      onSubmit: t
    });
  };
  Tt.autocompleteMultiselect = (e) => {
    e.choices = [].concat(e.choices || []);
    let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected");
    return Lr("AutocompleteMultiselectPrompt", e, {
      onAbort: t,
      onSubmit: t
    });
  };
  var EV = /* @__PURE__ */ s((e, t) => Promise.resolve(t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase())), "byTi\
tle");
  Tt.autocomplete = (e) => (e.suggest = e.suggest || EV, e.choices = [].concat(e.choices || []), Lr("AutocompletePrompt", e));
});

// ../node_modules/prompts/dist/index.js
var fA = B((Mie, pA) => {
  "use strict";
  function aA(e, t) {
    var r = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var i = Object.getOwnPropertySymbols(e);
      t && (i = i.filter(function(n) {
        return Object.getOwnPropertyDescriptor(e, n).enumerable;
      })), r.push.apply(r, i);
    }
    return r;
  }
  s(aA, "ownKeys");
  function uA(e) {
    for (var t = 1; t < arguments.length; t++) {
      var r = arguments[t] != null ? arguments[t] : {};
      t % 2 ? aA(Object(r), !0).forEach(function(i) {
        bV(e, i, r[i]);
      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : aA(Object(r)).forEach(function(i) {
        Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i));
      });
    }
    return e;
  }
  s(uA, "_objectSpread");
  function bV(e, t, r) {
    return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
  }
  s(bV, "_defineProperty");
  function vV(e, t) {
    var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
    if (!r) {
      if (Array.isArray(e) || (r = CV(e)) || t && e && typeof e.length == "number") {
        r && (e = r);
        var i = 0, n = /* @__PURE__ */ s(function() {
        }, "F");
        return { s: n, n: /* @__PURE__ */ s(function() {
          return i >= e.length ? { done: !0 } : { done: !1, value: e[i++] };
        }, "n"), e: /* @__PURE__ */ s(function(c) {
          throw c;
        }, "e"), f: n };
      }
      throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
    }
    var a = !0, u = !1, o;
    return { s: /* @__PURE__ */ s(function() {
      r = r.call(e);
    }, "s"), n: /* @__PURE__ */ s(function() {
      var c = r.next();
      return a = c.done, c;
    }, "n"), e: /* @__PURE__ */ s(function(c) {
      u = !0, o = c;
    }, "e"), f: /* @__PURE__ */ s(function() {
      try {
        !a && r.return != null && r.return();
      } finally {
        if (u) throw o;
      }
    }, "f") };
  }
  s(vV, "_createForOfIteratorHelper");
  function CV(e, t) {
    if (e) {
      if (typeof e == "string") return oA(e, t);
      var r = Object.prototype.toString.call(e).slice(8, -1);
      if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
      if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return oA(e, t);
    }
  }
  s(CV, "_unsupportedIterableToArray");
  function oA(e, t) {
    (t == null || t > e.length) && (t = e.length);
    for (var r = 0, i = new Array(t); r < t; r++) i[r] = e[r];
    return i;
  }
  s(oA, "_arrayLikeToArray");
  function lA(e, t, r, i, n, a, u) {
    try {
      var o = e[a](u), l = o.value;
    } catch (c) {
      r(c);
      return;
    }
    o.done ? t(l) : Promise.resolve(l).then(i, n);
  }
  s(lA, "asyncGeneratorStep");
  function cA(e) {
    return function() {
      var t = this, r = arguments;
      return new Promise(function(i, n) {
        var a = e.apply(t, r);
        function u(l) {
          lA(a, i, n, u, o, "next", l);
        }
        s(u, "_next");
        function o(l) {
          lA(a, i, n, u, o, "throw", l);
        }
        s(o, "_throw"), u(void 0);
      });
    };
  }
  s(cA, "_asyncToGenerator");
  var Cd = sA(), wV = ["suggest", "format", "onState", "validate", "onRender", "type"], hA = /* @__PURE__ */ s(() => {
  }, "noop");
  function Ii() {
    return wd.apply(this, arguments);
  }
  s(Ii, "prompt");
  function wd() {
    return wd = cA(function* (e = [], {
      onSubmit: t = hA,
      onCancel: r = hA
    } = {}) {
      let i = {}, n = Ii._override || {};
      e = [].concat(e);
      let a, u, o, l, c, h, p = /* @__PURE__ */ function() {
        var v = cA(function* (y, C, S = !1) {
          if (!(!S && y.validate && y.validate(C) !== !0))
            return y.format ? yield y.format(C, i) : C;
        });
        return /* @__PURE__ */ s(function(C, S) {
          return v.apply(this, arguments);
        }, "getFormattedAnswer");
      }();
      var d = vV(e), m;
      try {
        for (d.s(); !(m = d.n()).done; ) {
          u = m.value;
          var g = u;
          if (l = g.name, c = g.type, typeof c == "function" && (c = yield c(a, uA({}, i), u), u.type = c), !!c) {
            for (let v in u) {
              if (wV.includes(v)) continue;
              let y = u[v];
              u[v] = typeof y == "function" ? yield y(a, uA({}, i), h) : y;
            }
            if (h = u, typeof u.message != "string")
              throw new Error("prompt message is required");
            var D = u;
            if (l = D.name, c = D.type, Cd[c] === void 0)
              throw new Error(`prompt type (${c}) is not defined`);
            if (n[u.name] !== void 0 && (a = yield p(u, n[u.name]), a !== void 0)) {
              i[l] = a;
              continue;
            }
            try {
              a = Ii._injected ? AV(Ii._injected, u.initial) : yield Cd[c](u), i[l] = a = yield p(u, a, !0), o = yield t(u, a, i);
            } catch {
              o = !(yield r(u, i));
            }
            if (o) return i;
          }
        }
      } catch (v) {
        d.e(v);
      } finally {
        d.f();
      }
      return i;
    }), wd.apply(this, arguments);
  }
  s(wd, "_prompt");
  function AV(e, t) {
    let r = e.shift();
    if (r instanceof Error)
      throw r;
    return r === void 0 ? t : r;
  }
  s(AV, "getInjectedAnswer");
  function FV(e) {
    Ii._injected = (Ii._injected || []).concat(e);
  }
  s(FV, "inject");
  function SV(e) {
    Ii._override = Object.assign({}, e);
  }
  s(SV, "override");
  pA.exports = Object.assign(Ii, {
    prompt: Ii,
    prompts: Cd,
    inject: FV,
    override: SV
  });
});

// ../node_modules/prompts/lib/util/action.js
var mA = B((qie, dA) => {
  "use strict";
  dA.exports = (e, t) => {
    if (!(e.meta && e.name !== "escape")) {
      if (e.ctrl) {
        if (e.name === "a") return "first";
        if (e.name === "c" || e.name === "d") return "abort";
        if (e.name === "e") return "last";
        if (e.name === "g") return "reset";
      }
      if (t) {
        if (e.name === "j") return "down";
        if (e.name === "k") return "up";
      }
      return e.name === "return" || e.name === "enter" ? "submit" : e.name === "backspace" ? "delete" : e.name === "delete" ? "deleteForward" :
      e.name === "abort" ? "abort" : e.name === "escape" ? "exit" : e.name === "tab" ? "next" : e.name === "pagedown" ? "nextPage" : e.name ===
      "pageup" ? "prevPage" : e.name === "home" ? "home" : e.name === "end" ? "end" : e.name === "up" ? "up" : e.name === "down" ? "down" : e.
      name === "right" ? "right" : e.name === "left" ? "left" : !1;
    }
  };
});

// ../node_modules/prompts/lib/util/strip.js
var Po = B(($ie, gA) => {
  "use strict";
  gA.exports = (e) => {
    let t = [
      "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
      "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"
    ].join("|"), r = new RegExp(t, "g");
    return typeof e == "string" ? e.replace(r, "") : e;
  };
});

// ../node_modules/prompts/lib/util/clear.js
var xA = B((Vie, yA) => {
  "use strict";
  var _V = Po(), { erase: DA, cursor: kV } = Ge(), TV = /* @__PURE__ */ s((e) => [..._V(e)].length, "width");
  yA.exports = function(e, t) {
    if (!t) return DA.line + kV.to(0);
    let r = 0, i = e.split(/\r?\n/);
    for (let n of i)
      r += 1 + Math.floor(Math.max(TV(n) - 1, 0) / t);
    return DA.lines(r);
  };
});

// ../node_modules/prompts/lib/util/figures.js
var Ad = B((zie, EA) => {
  "use strict";
  var ga = {
    arrowUp: "\u2191",
    arrowDown: "\u2193",
    arrowLeft: "\u2190",
    arrowRight: "\u2192",
    radioOn: "\u25C9",
    radioOff: "\u25EF",
    tick: "\u2714",
    cross: "\u2716",
    ellipsis: "\u2026",
    pointerSmall: "\u203A",
    line: "\u2500",
    pointer: "\u276F"
  }, BV = {
    arrowUp: ga.arrowUp,
    arrowDown: ga.arrowDown,
    arrowLeft: ga.arrowLeft,
    arrowRight: ga.arrowRight,
    radioOn: "(*)",
    radioOff: "( )",
    tick: "\u221A",
    cross: "\xD7",
    ellipsis: "...",
    pointerSmall: "\xBB",
    line: "\u2500",
    pointer: ">"
  }, PV = process.platform === "win32" ? BV : ga;
  EA.exports = PV;
});

// ../node_modules/prompts/lib/util/style.js
var vA = B((Hie, bA) => {
  "use strict";
  var rs = We(), an = Ad(), Fd = Object.freeze({
    password: { scale: 1, render: /* @__PURE__ */ s((e) => "*".repeat(e.length), "render") },
    emoji: { scale: 2, render: /* @__PURE__ */ s((e) => "\u{1F603}".repeat(e.length), "render") },
    invisible: { scale: 0, render: /* @__PURE__ */ s((e) => "", "render") },
    default: { scale: 1, render: /* @__PURE__ */ s((e) => `${e}`, "render") }
  }), IV = /* @__PURE__ */ s((e) => Fd[e] || Fd.default, "render"), Da = Object.freeze({
    aborted: rs.red(an.cross),
    done: rs.green(an.tick),
    exited: rs.yellow(an.cross),
    default: rs.cyan("?")
  }), OV = /* @__PURE__ */ s((e, t, r) => t ? Da.aborted : r ? Da.exited : e ? Da.done : Da.default, "symbol"), RV = /* @__PURE__ */ s((e) => rs.
  gray(e ? an.ellipsis : an.pointerSmall), "delimiter"), NV = /* @__PURE__ */ s((e, t) => rs.gray(e ? t ? an.pointerSmall : "+" : an.line), "\
item");
  bA.exports = {
    styles: Fd,
    render: IV,
    symbols: Da,
    symbol: OV,
    delimiter: RV,
    item: NV
  };
});

// ../node_modules/prompts/lib/util/lines.js
var wA = B((Jie, CA) => {
  "use strict";
  var LV = Po();
  CA.exports = function(e, t) {
    let r = String(LV(e) || "").split(/\r?\n/);
    return t ? r.map((i) => Math.ceil(i.length / t)).reduce((i, n) => i + n) : r.length;
  };
});

// ../node_modules/prompts/lib/util/wrap.js
var FA = B((Gie, AA) => {
  "use strict";
  AA.exports = (e, t = {}) => {
    let r = Number.isSafeInteger(parseInt(t.margin)) ? new Array(parseInt(t.margin)).fill(" ").join("") : t.margin || "", i = t.width;
    return (e || "").split(/\r?\n/g).map((n) => n.split(/\s+/g).reduce((a, u) => (u.length + r.length >= i || a[a.length - 1].length + u.length +
    1 < i ? a[a.length - 1] += ` ${u}` : a.push(`${r}${u}`), a), [r]).join(`
`)).join(`
`);
  };
});

// ../node_modules/prompts/lib/util/entriesToDisplay.js
var _A = B((Xie, SA) => {
  "use strict";
  SA.exports = (e, t, r) => {
    r = r || t;
    let i = Math.min(t - r, e - Math.floor(r / 2));
    i < 0 && (i = 0);
    let n = Math.min(i + r, t);
    return { startIndex: i, endIndex: n };
  };
});

// ../node_modules/prompts/lib/util/index.js
var yr = B((Yie, kA) => {
  "use strict";
  kA.exports = {
    action: mA(),
    clear: xA(),
    style: vA(),
    strip: Po(),
    figures: Ad(),
    lines: wA(),
    wrap: FA(),
    entriesToDisplay: _A()
  };
});

// ../node_modules/prompts/lib/elements/prompt.js
var ai = B((Kie, BA) => {
  "use strict";
  var TA = H("readline"), { action: MV } = yr(), jV = H("events"), { beep: qV, cursor: $V } = Ge(), VV = We(), Sd = class extends jV {
    static {
      s(this, "Prompt");
    }
    constructor(t = {}) {
      super(), this.firstRender = !0, this.in = t.stdin || process.stdin, this.out = t.stdout || process.stdout, this.onRender = (t.onRender ||
      (() => {
      })).bind(this);
      let r = TA.createInterface({ input: this.in, escapeCodeTimeout: 50 });
      TA.emitKeypressEvents(this.in, r), this.in.isTTY && this.in.setRawMode(!0);
      let i = ["SelectPrompt", "MultiselectPrompt"].indexOf(this.constructor.name) > -1, n = /* @__PURE__ */ s((a, u) => {
        let o = MV(u, i);
        o === !1 ? this._ && this._(a, u) : typeof this[o] == "function" ? this[o](u) : this.bell();
      }, "keypress");
      this.close = () => {
        this.out.write($V.show), this.in.removeListener("keypress", n), this.in.isTTY && this.in.setRawMode(!1), r.close(), this.emit(this.aborted ?
        "abort" : this.exited ? "exit" : "submit", this.value), this.closed = !0;
      }, this.in.on("keypress", n);
    }
    fire() {
      this.emit("state", {
        value: this.value,
        aborted: !!this.aborted,
        exited: !!this.exited
      });
    }
    bell() {
      this.out.write(qV);
    }
    render() {
      this.onRender(VV), this.firstRender && (this.firstRender = !1);
    }
  };
  BA.exports = Sd;
});

// ../node_modules/prompts/lib/elements/text.js
var IA = B((Zie, PA) => {
  var Io = We(), UV = ai(), { erase: zV, cursor: ya } = Ge(), { style: _d, clear: kd, lines: HV, figures: WV } = yr(), Td = class extends UV {
    static {
      s(this, "TextPrompt");
    }
    constructor(t = {}) {
      super(t), this.transform = _d.render(t.style), this.scale = this.transform.scale, this.msg = t.message, this.initial = t.initial || "",
      this.validator = t.validate || (() => !0), this.value = "", this.errorMsg = t.error || "Please Enter A Valid Value", this.cursor = +!!this.
      initial, this.cursorOffset = 0, this.clear = kd("", this.out.columns), this.render();
    }
    set value(t) {
      !t && this.initial ? (this.placeholder = !0, this.rendered = Io.gray(this.transform.render(this.initial))) : (this.placeholder = !1, this.
      rendered = this.transform.render(t)), this._value = t, this.fire();
    }
    get value() {
      return this._value;
    }
    reset() {
      this.value = "", this.cursor = +!!this.initial, this.cursorOffset = 0, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.value = this.value || this.initial, this.done = this.aborted = !0, this.error = !1, this.red = !1, this.fire(), this.render(), this.
      out.write(`
`), this.close();
    }
    async validate() {
      let t = await this.validator(this.value);
      typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t;
    }
    async submit() {
      if (this.value = this.value || this.initial, this.cursorOffset = 0, this.cursor = this.rendered.length, await this.validate(), this.error) {
        this.red = !0, this.fire(), this.render();
        return;
      }
      this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    next() {
      if (!this.placeholder) return this.bell();
      this.value = this.initial, this.cursor = this.rendered.length, this.fire(), this.render();
    }
    moveCursor(t) {
      this.placeholder || (this.cursor = this.cursor + t, this.cursorOffset += t);
    }
    _(t, r) {
      let i = this.value.slice(0, this.cursor), n = this.value.slice(this.cursor);
      this.value = `${i}${t}${n}`, this.red = !1, this.cursor = this.placeholder ? 0 : i.length + 1, this.render();
    }
    delete() {
      if (this.isCursorAtStart()) return this.bell();
      let t = this.value.slice(0, this.cursor - 1), r = this.value.slice(this.cursor);
      this.value = `${t}${r}`, this.red = !1, this.isCursorAtStart() ? this.cursorOffset = 0 : (this.cursorOffset++, this.moveCursor(-1)), this.
      render();
    }
    deleteForward() {
      if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
      let t = this.value.slice(0, this.cursor), r = this.value.slice(this.cursor + 1);
      this.value = `${t}${r}`, this.red = !1, this.isCursorAtEnd() ? this.cursorOffset = 0 : this.cursorOffset++, this.render();
    }
    first() {
      this.cursor = 0, this.render();
    }
    last() {
      this.cursor = this.value.length, this.render();
    }
    left() {
      if (this.cursor <= 0 || this.placeholder) return this.bell();
      this.moveCursor(-1), this.render();
    }
    right() {
      if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
      this.moveCursor(1), this.render();
    }
    isCursorAtStart() {
      return this.cursor === 0 || this.placeholder && this.cursor === 1;
    }
    isCursorAtEnd() {
      return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
    }
    render() {
      this.closed || (this.firstRender || (this.outputError && this.out.write(ya.down(HV(this.outputError, this.out.columns) - 1) + kd(this.
      outputError, this.out.columns)), this.out.write(kd(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText =
      [
        _d.symbol(this.done, this.aborted),
        Io.bold(this.msg),
        _d.delimiter(this.done),
        this.red ? Io.red(this.rendered) : this.rendered
      ].join(" "), this.error && (this.outputError += this.errorMsg.split(`
`).reduce((t, r, i) => t + `
${i ? " " : WV.pointerSmall} ${Io.red().italic(r)}`, "")), this.out.write(zV.line + ya.to(0) + this.outputText + ya.save + this.outputError +
      ya.restore + ya.move(this.cursorOffset, 0)));
    }
  };
  PA.exports = Td;
});

// ../node_modules/prompts/lib/elements/select.js
var LA = B((tne, NA) => {
  "use strict";
  var ui = We(), JV = ai(), { style: OA, clear: RA, figures: Oo, wrap: GV, entriesToDisplay: XV } = yr(), { cursor: YV } = Ge(), Bd = class extends JV {
    static {
      s(this, "SelectPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.hint = t.hint || "- Use arrow-keys. Return to submit.", this.warn = t.warn || "- This option is d\
isabled", this.cursor = t.initial || 0, this.choices = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r, value: i }), {
        title: r && (r.title || r.value || r),
        value: r && (r.value === void 0 ? i : r.value),
        description: r && r.description,
        selected: r && r.selected,
        disabled: r && r.disabled
      })), this.optionsPerPage = t.optionsPerPage || 10, this.value = (this.choices[this.cursor] || {}).value, this.clear = RA("", this.out.
      columns), this.render();
    }
    moveCursor(t) {
      this.cursor = t, this.value = this.choices[t].value, this.fire();
    }
    reset() {
      this.moveCursor(0), this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.selection.disabled ? this.bell() : (this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close());
    }
    first() {
      this.moveCursor(0), this.render();
    }
    last() {
      this.moveCursor(this.choices.length - 1), this.render();
    }
    up() {
      this.cursor === 0 ? this.moveCursor(this.choices.length - 1) : this.moveCursor(this.cursor - 1), this.render();
    }
    down() {
      this.cursor === this.choices.length - 1 ? this.moveCursor(0) : this.moveCursor(this.cursor + 1), this.render();
    }
    next() {
      this.moveCursor((this.cursor + 1) % this.choices.length), this.render();
    }
    _(t, r) {
      if (t === " ") return this.submit();
    }
    get selection() {
      return this.choices[this.cursor];
    }
    render() {
      if (this.closed) return;
      this.firstRender ? this.out.write(YV.hide) : this.out.write(RA(this.outputText, this.out.columns)), super.render();
      let { startIndex: t, endIndex: r } = XV(this.cursor, this.choices.length, this.optionsPerPage);
      if (this.outputText = [
        OA.symbol(this.done, this.aborted),
        ui.bold(this.msg),
        OA.delimiter(!1),
        this.done ? this.selection.title : this.selection.disabled ? ui.yellow(this.warn) : ui.gray(this.hint)
      ].join(" "), !this.done) {
        this.outputText += `
`;
        for (let i = t; i < r; i++) {
          let n, a, u = "", o = this.choices[i];
          i === t && t > 0 ? a = Oo.arrowUp : i === r - 1 && r < this.choices.length ? a = Oo.arrowDown : a = " ", o.disabled ? (n = this.cursor ===
          i ? ui.gray().underline(o.title) : ui.strikethrough().gray(o.title), a = (this.cursor === i ? ui.bold().gray(Oo.pointer) + " " : "\
  ") + a) : (n = this.cursor === i ? ui.cyan().underline(o.title) : o.title, a = (this.cursor === i ? ui.cyan(Oo.pointer) + " " : "  ") + a,
          o.description && this.cursor === i && (u = ` - ${o.description}`, (a.length + n.length + u.length >= this.out.columns || o.description.
          split(/\r?\n/).length > 1) && (u = `
` + GV(o.description, { margin: 3, width: this.out.columns })))), this.outputText += `${a} ${n}${ui.gray(u)}
`;
        }
      }
      this.out.write(this.outputText);
    }
  };
  NA.exports = Bd;
});

// ../node_modules/prompts/lib/elements/toggle.js
var $A = B((ine, qA) => {
  var Ro = We(), KV = ai(), { style: MA, clear: QV } = yr(), { cursor: jA, erase: ZV } = Ge(), Pd = class extends KV {
    static {
      s(this, "TogglePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.value = !!t.initial, this.active = t.active || "on", this.inactive = t.inactive || "off", this.initialValue =
      this.value, this.render();
    }
    reset() {
      this.value = this.initialValue, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    deactivate() {
      if (this.value === !1) return this.bell();
      this.value = !1, this.render();
    }
    activate() {
      if (this.value === !0) return this.bell();
      this.value = !0, this.render();
    }
    delete() {
      this.deactivate();
    }
    left() {
      this.deactivate();
    }
    right() {
      this.activate();
    }
    down() {
      this.deactivate();
    }
    up() {
      this.activate();
    }
    next() {
      this.value = !this.value, this.fire(), this.render();
    }
    _(t, r) {
      if (t === " ")
        this.value = !this.value;
      else if (t === "1")
        this.value = !0;
      else if (t === "0")
        this.value = !1;
      else return this.bell();
      this.render();
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(jA.hide) : this.out.write(QV(this.outputText, this.out.columns)), super.render(), this.
      outputText = [
        MA.symbol(this.done, this.aborted),
        Ro.bold(this.msg),
        MA.delimiter(this.done),
        this.value ? this.inactive : Ro.cyan().underline(this.inactive),
        Ro.gray("/"),
        this.value ? Ro.cyan().underline(this.active) : this.active
      ].join(" "), this.out.write(ZV.line + jA.to(0) + this.outputText));
    }
  };
  qA.exports = Pd;
});

// ../node_modules/prompts/lib/dateparts/datepart.js
var Mr = B((sne, VA) => {
  "use strict";
  var Id = class e {
    static {
      s(this, "DatePart");
    }
    constructor({ token: t, date: r, parts: i, locales: n }) {
      this.token = t, this.date = r || /* @__PURE__ */ new Date(), this.parts = i || [this], this.locales = n || {};
    }
    up() {
    }
    down() {
    }
    next() {
      let t = this.parts.indexOf(this);
      return this.parts.find((r, i) => i > t && r instanceof e);
    }
    setTo(t) {
    }
    prev() {
      let t = [].concat(this.parts).reverse(), r = t.indexOf(this);
      return t.find((i, n) => n > r && i instanceof e);
    }
    toString() {
      return String(this.date);
    }
  };
  VA.exports = Id;
});

// ../node_modules/prompts/lib/dateparts/meridiem.js
var zA = B((une, UA) => {
  "use strict";
  var eU = Mr(), Od = class extends eU {
    static {
      s(this, "Meridiem");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setHours((this.date.getHours() + 12) % 24);
    }
    down() {
      this.up();
    }
    toString() {
      let t = this.date.getHours() > 12 ? "pm" : "am";
      return /\A/.test(this.token) ? t.toUpperCase() : t;
    }
  };
  UA.exports = Od;
});

// ../node_modules/prompts/lib/dateparts/day.js
var WA = B((lne, HA) => {
  "use strict";
  var tU = Mr(), rU = /* @__PURE__ */ s((e) => (e = e % 10, e === 1 ? "st" : e === 2 ? "nd" : e === 3 ? "rd" : "th"), "pos"), Rd = class extends tU {
    static {
      s(this, "Day");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setDate(this.date.getDate() + 1);
    }
    down() {
      this.date.setDate(this.date.getDate() - 1);
    }
    setTo(t) {
      this.date.setDate(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getDate(), r = this.date.getDay();
      return this.token === "DD" ? String(t).padStart(2, "0") : this.token === "Do" ? t + rU(t) : this.token === "d" ? r + 1 : this.token ===
      "ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : t;
    }
  };
  HA.exports = Rd;
});

// ../node_modules/prompts/lib/dateparts/hours.js
var GA = B((hne, JA) => {
  "use strict";
  var iU = Mr(), Nd = class extends iU {
    static {
      s(this, "Hours");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setHours(this.date.getHours() + 1);
    }
    down() {
      this.date.setHours(this.date.getHours() - 1);
    }
    setTo(t) {
      this.date.setHours(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getHours();
      return /h/.test(this.token) && (t = t % 12 || 12), this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  JA.exports = Nd;
});

// ../node_modules/prompts/lib/dateparts/milliseconds.js
var YA = B((fne, XA) => {
  "use strict";
  var nU = Mr(), Ld = class extends nU {
    static {
      s(this, "Milliseconds");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMilliseconds(this.date.getMilliseconds() + 1);
    }
    down() {
      this.date.setMilliseconds(this.date.getMilliseconds() - 1);
    }
    setTo(t) {
      this.date.setMilliseconds(parseInt(t.substr(-this.token.length)));
    }
    toString() {
      return String(this.date.getMilliseconds()).padStart(4, "0").substr(0, this.token.length);
    }
  };
  XA.exports = Ld;
});

// ../node_modules/prompts/lib/dateparts/minutes.js
var QA = B((mne, KA) => {
  "use strict";
  var sU = Mr(), Md = class extends sU {
    static {
      s(this, "Minutes");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMinutes(this.date.getMinutes() + 1);
    }
    down() {
      this.date.setMinutes(this.date.getMinutes() - 1);
    }
    setTo(t) {
      this.date.setMinutes(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getMinutes();
      return this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  KA.exports = Md;
});

// ../node_modules/prompts/lib/dateparts/month.js
var eF = B((Dne, ZA) => {
  "use strict";
  var aU = Mr(), jd = class extends aU {
    static {
      s(this, "Month");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setMonth(this.date.getMonth() + 1);
    }
    down() {
      this.date.setMonth(this.date.getMonth() - 1);
    }
    setTo(t) {
      t = parseInt(t.substr(-2)) - 1, this.date.setMonth(t < 0 ? 0 : t);
    }
    toString() {
      let t = this.date.getMonth(), r = this.token.length;
      return r === 2 ? String(t + 1).padStart(2, "0") : r === 3 ? this.locales.monthsShort[t] : r === 4 ? this.locales.months[t] : String(t +
      1);
    }
  };
  ZA.exports = jd;
});

// ../node_modules/prompts/lib/dateparts/seconds.js
var rF = B((xne, tF) => {
  "use strict";
  var uU = Mr(), qd = class extends uU {
    static {
      s(this, "Seconds");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setSeconds(this.date.getSeconds() + 1);
    }
    down() {
      this.date.setSeconds(this.date.getSeconds() - 1);
    }
    setTo(t) {
      this.date.setSeconds(parseInt(t.substr(-2)));
    }
    toString() {
      let t = this.date.getSeconds();
      return this.token.length > 1 ? String(t).padStart(2, "0") : t;
    }
  };
  tF.exports = qd;
});

// ../node_modules/prompts/lib/dateparts/year.js
var nF = B((bne, iF) => {
  "use strict";
  var oU = Mr(), $d = class extends oU {
    static {
      s(this, "Year");
    }
    constructor(t = {}) {
      super(t);
    }
    up() {
      this.date.setFullYear(this.date.getFullYear() + 1);
    }
    down() {
      this.date.setFullYear(this.date.getFullYear() - 1);
    }
    setTo(t) {
      this.date.setFullYear(t.substr(-4));
    }
    toString() {
      let t = String(this.date.getFullYear()).padStart(4, "0");
      return this.token.length === 2 ? t.substr(-2) : t;
    }
  };
  iF.exports = $d;
});

// ../node_modules/prompts/lib/dateparts/index.js
var aF = B((Cne, sF) => {
  "use strict";
  sF.exports = {
    DatePart: Mr(),
    Meridiem: zA(),
    Day: WA(),
    Hours: GA(),
    Milliseconds: YA(),
    Minutes: QA(),
    Month: eF(),
    Seconds: rF(),
    Year: nF()
  };
});

// ../node_modules/prompts/lib/elements/date.js
var fF = B((wne, pF) => {
  "use strict";
  var Vd = We(), lU = ai(), { style: uF, clear: oF, figures: cU } = yr(), { erase: hU, cursor: lF } = Ge(), { DatePart: cF, Meridiem: pU, Day: fU,
  Hours: dU, Milliseconds: mU, Minutes: gU, Month: DU, Seconds: yU, Year: xU } = aF(), EU = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,
  hF = {
    1: ({ token: e }) => e.replace(/\\(.)/g, "$1"),
    2: (e) => new fU(e),
    // Day // TODO
    3: (e) => new DU(e),
    // Month
    4: (e) => new xU(e),
    // Year
    5: (e) => new pU(e),
    // AM/PM // TODO (special)
    6: (e) => new dU(e),
    // Hours
    7: (e) => new gU(e),
    // Minutes
    8: (e) => new yU(e),
    // Seconds
    9: (e) => new mU(e)
    // Fractional seconds
  }, bU = {
    months: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
    monthsShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),
    weekdays: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
    weekdaysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")
  }, Ud = class extends lU {
    static {
      s(this, "DatePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.cursor = 0, this.typed = "", this.locales = Object.assign(bU, t.locales), this._date = t.initial ||
      /* @__PURE__ */ new Date(), this.errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.mask =
      t.mask || "YYYY-MM-DD HH:mm:ss", this.clear = oF("", this.out.columns), this.render();
    }
    get value() {
      return this.date;
    }
    get date() {
      return this._date;
    }
    set date(t) {
      t && this._date.setTime(t.getTime());
    }
    set mask(t) {
      let r;
      for (this.parts = []; r = EU.exec(t); ) {
        let n = r.shift(), a = r.findIndex((u) => u != null);
        this.parts.push(a in hF ? hF[a]({ token: r[a] || n, date: this.date, parts: this.parts, locales: this.locales }) : r[a] || n);
      }
      let i = this.parts.reduce((n, a) => (typeof a == "string" && typeof n[n.length - 1] == "string" ? n[n.length - 1] += a : n.push(a), n),
      []);
      this.parts.splice(0), this.parts.push(...i), this.reset();
    }
    moveCursor(t) {
      this.typed = "", this.cursor = t, this.fire();
    }
    reset() {
      this.moveCursor(this.parts.findIndex((t) => t instanceof cF)), this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    async validate() {
      let t = await this.validator(this.value);
      typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t;
    }
    async submit() {
      if (await this.validate(), this.error) {
        this.color = "red", this.fire(), this.render();
        return;
      }
      this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    up() {
      this.typed = "", this.parts[this.cursor].up(), this.render();
    }
    down() {
      this.typed = "", this.parts[this.cursor].down(), this.render();
    }
    left() {
      let t = this.parts[this.cursor].prev();
      if (t == null) return this.bell();
      this.moveCursor(this.parts.indexOf(t)), this.render();
    }
    right() {
      let t = this.parts[this.cursor].next();
      if (t == null) return this.bell();
      this.moveCursor(this.parts.indexOf(t)), this.render();
    }
    next() {
      let t = this.parts[this.cursor].next();
      this.moveCursor(t ? this.parts.indexOf(t) : this.parts.findIndex((r) => r instanceof cF)), this.render();
    }
    _(t) {
      /\d/.test(t) && (this.typed += t, this.parts[this.cursor].setTo(this.typed), this.render());
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(lF.hide) : this.out.write(oF(this.outputText, this.out.columns)), super.render(), this.
      outputText = [
        uF.symbol(this.done, this.aborted),
        Vd.bold(this.msg),
        uF.delimiter(!1),
        this.parts.reduce((t, r, i) => t.concat(i === this.cursor && !this.done ? Vd.cyan().underline(r.toString()) : r), []).join("")
      ].join(" "), this.error && (this.outputText += this.errorMsg.split(`
`).reduce(
        (t, r, i) => t + `
${i ? " " : cU.pointerSmall} ${Vd.red().italic(r)}`,
        ""
      )), this.out.write(hU.line + lF.to(0) + this.outputText));
    }
  };
  pF.exports = Ud;
});

// ../node_modules/prompts/lib/elements/number.js
var DF = B((Fne, gF) => {
  var No = We(), vU = ai(), { cursor: Lo, erase: CU } = Ge(), { style: zd, figures: wU, clear: dF, lines: AU } = yr(), FU = /[0-9]/, Hd = /* @__PURE__ */ s(
  (e) => e !== void 0, "isDef"), mF = /* @__PURE__ */ s((e, t) => {
    let r = Math.pow(10, t);
    return Math.round(e * r) / r;
  }, "round"), Wd = class extends vU {
    static {
      s(this, "NumberPrompt");
    }
    constructor(t = {}) {
      super(t), this.transform = zd.render(t.style), this.msg = t.message, this.initial = Hd(t.initial) ? t.initial : "", this.float = !!t.float,
      this.round = t.round || 2, this.inc = t.increment || 1, this.min = Hd(t.min) ? t.min : -1 / 0, this.max = Hd(t.max) ? t.max : 1 / 0, this.
      errorMsg = t.error || "Please Enter A Valid Value", this.validator = t.validate || (() => !0), this.color = "cyan", this.value = "", this.
      typed = "", this.lastHit = 0, this.render();
    }
    set value(t) {
      !t && t !== 0 ? (this.placeholder = !0, this.rendered = No.gray(this.transform.render(`${this.initial}`)), this._value = "") : (this.placeholder =
      !1, this.rendered = this.transform.render(`${mF(t, this.round)}`), this._value = mF(t, this.round)), this.fire();
    }
    get value() {
      return this._value;
    }
    parse(t) {
      return this.float ? parseFloat(t) : parseInt(t);
    }
    valid(t) {
      return t === "-" || t === "." && this.float || FU.test(t);
    }
    reset() {
      this.typed = "", this.value = "", this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      let t = this.value;
      this.value = t !== "" ? t : this.initial, this.done = this.aborted = !0, this.error = !1, this.fire(), this.render(), this.out.write(`\

`), this.close();
    }
    async validate() {
      let t = await this.validator(this.value);
      typeof t == "string" && (this.errorMsg = t, t = !1), this.error = !t;
    }
    async submit() {
      if (await this.validate(), this.error) {
        this.color = "red", this.fire(), this.render();
        return;
      }
      let t = this.value;
      this.value = t !== "" ? t : this.initial, this.done = !0, this.aborted = !1, this.error = !1, this.fire(), this.render(), this.out.write(
      `
`), this.close();
    }
    up() {
      if (this.typed = "", this.value === "" && (this.value = this.min - this.inc), this.value >= this.max) return this.bell();
      this.value += this.inc, this.color = "cyan", this.fire(), this.render();
    }
    down() {
      if (this.typed = "", this.value === "" && (this.value = this.min + this.inc), this.value <= this.min) return this.bell();
      this.value -= this.inc, this.color = "cyan", this.fire(), this.render();
    }
    delete() {
      let t = this.value.toString();
      if (t.length === 0) return this.bell();
      this.value = this.parse(t = t.slice(0, -1)) || "", this.value !== "" && this.value < this.min && (this.value = this.min), this.color =
      "cyan", this.fire(), this.render();
    }
    next() {
      this.value = this.initial, this.fire(), this.render();
    }
    _(t, r) {
      if (!this.valid(t)) return this.bell();
      let i = Date.now();
      if (i - this.lastHit > 1e3 && (this.typed = ""), this.typed += t, this.lastHit = i, this.color = "cyan", t === ".") return this.fire();
      this.value = Math.min(this.parse(this.typed), this.max), this.value > this.max && (this.value = this.max), this.value < this.min && (this.
      value = this.min), this.fire(), this.render();
    }
    render() {
      this.closed || (this.firstRender || (this.outputError && this.out.write(Lo.down(AU(this.outputError, this.out.columns) - 1) + dF(this.
      outputError, this.out.columns)), this.out.write(dF(this.outputText, this.out.columns))), super.render(), this.outputError = "", this.outputText =
      [
        zd.symbol(this.done, this.aborted),
        No.bold(this.msg),
        zd.delimiter(this.done),
        !this.done || !this.done && !this.placeholder ? No[this.color]().underline(this.rendered) : this.rendered
      ].join(" "), this.error && (this.outputError += this.errorMsg.split(`
`).reduce((t, r, i) => t + `
${i ? " " : wU.pointerSmall} ${No.red().italic(r)}`, "")), this.out.write(CU.line + Lo.to(0) + this.outputText + Lo.save + this.outputError +
      Lo.restore));
    }
  };
  gF.exports = Wd;
});

// ../node_modules/prompts/lib/elements/multiselect.js
var Gd = B((_ne, EF) => {
  "use strict";
  var jr = We(), { cursor: SU } = Ge(), _U = ai(), { clear: yF, figures: Oi, style: xF, wrap: kU, entriesToDisplay: TU } = yr(), Jd = class extends _U {
    static {
      s(this, "MultiselectPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.cursor = t.cursor || 0, this.scrollIndex = t.cursor || 0, this.hint = t.hint || "", this.warn = t.
      warn || "- This option is disabled -", this.minSelected = t.min, this.showMinError = !1, this.maxChoices = t.max, this.instructions = t.
      instructions, this.optionsPerPage = t.optionsPerPage || 10, this.value = t.choices.map((r, i) => (typeof r == "string" && (r = { title: r,
      value: i }), {
        title: r && (r.title || r.value || r),
        description: r && r.description,
        value: r && (r.value === void 0 ? i : r.value),
        selected: r && r.selected,
        disabled: r && r.disabled
      })), this.clear = yF("", this.out.columns), t.overrideRender || this.render();
    }
    reset() {
      this.value.map((t) => !t.selected), this.cursor = 0, this.fire(), this.render();
    }
    selected() {
      return this.value.filter((t) => t.selected);
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      let t = this.value.filter((r) => r.selected);
      this.minSelected && t.length < this.minSelected ? (this.showMinError = !0, this.render()) : (this.done = !0, this.aborted = !1, this.fire(),
      this.render(), this.out.write(`
`), this.close());
    }
    first() {
      this.cursor = 0, this.render();
    }
    last() {
      this.cursor = this.value.length - 1, this.render();
    }
    next() {
      this.cursor = (this.cursor + 1) % this.value.length, this.render();
    }
    up() {
      this.cursor === 0 ? this.cursor = this.value.length - 1 : this.cursor--, this.render();
    }
    down() {
      this.cursor === this.value.length - 1 ? this.cursor = 0 : this.cursor++, this.render();
    }
    left() {
      this.value[this.cursor].selected = !1, this.render();
    }
    right() {
      if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell();
      this.value[this.cursor].selected = !0, this.render();
    }
    handleSpaceToggle() {
      let t = this.value[this.cursor];
      if (t.selected)
        t.selected = !1, this.render();
      else {
        if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices)
          return this.bell();
        t.selected = !0, this.render();
      }
    }
    toggleAll() {
      if (this.maxChoices !== void 0 || this.value[this.cursor].disabled)
        return this.bell();
      let t = !this.value[this.cursor].selected;
      this.value.filter((r) => !r.disabled).forEach((r) => r.selected = t), this.render();
    }
    _(t, r) {
      if (t === " ")
        this.handleSpaceToggle();
      else if (t === "a")
        this.toggleAll();
      else
        return this.bell();
    }
    renderInstructions() {
      return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : `
Instructions:
    ${Oi.arrowUp}/${Oi.arrowDown}: Highlight option
    ${Oi.arrowLeft}/${Oi.arrowRight}/[space]: Toggle selection
` + (this.maxChoices === void 0 ? `    a: Toggle all
` : "") + "    enter/return: Complete answer" : "";
    }
    renderOption(t, r, i, n) {
      let a = (r.selected ? jr.green(Oi.radioOn) : Oi.radioOff) + " " + n + " ", u, o;
      return r.disabled ? u = t === i ? jr.gray().underline(r.title) : jr.strikethrough().gray(r.title) : (u = t === i ? jr.cyan().underline(
      r.title) : r.title, t === i && r.description && (o = ` - ${r.description}`, (a.length + u.length + o.length >= this.out.columns || r.description.
      split(/\r?\n/).length > 1) && (o = `
` + kU(r.description, { margin: a.length, width: this.out.columns })))), a + u + jr.gray(o || "");
    }
    // shared with autocompleteMultiselect
    paginateOptions(t) {
      if (t.length === 0)
        return jr.red("No matches for this query.");
      let { startIndex: r, endIndex: i } = TU(this.cursor, t.length, this.optionsPerPage), n, a = [];
      for (let u = r; u < i; u++)
        u === r && r > 0 ? n = Oi.arrowUp : u === i - 1 && i < t.length ? n = Oi.arrowDown : n = " ", a.push(this.renderOption(this.cursor, t[u],
        u, n));
      return `
` + a.join(`
`);
    }
    // shared with autocomleteMultiselect
    renderOptions(t) {
      return this.done ? "" : this.paginateOptions(t);
    }
    renderDoneOrInstructions() {
      if (this.done)
        return this.value.filter((r) => r.selected).map((r) => r.title).join(", ");
      let t = [jr.gray(this.hint), this.renderInstructions()];
      return this.value[this.cursor].disabled && t.push(jr.yellow(this.warn)), t.join(" ");
    }
    render() {
      if (this.closed) return;
      this.firstRender && this.out.write(SU.hide), super.render();
      let t = [
        xF.symbol(this.done, this.aborted),
        jr.bold(this.msg),
        xF.delimiter(!1),
        this.renderDoneOrInstructions()
      ].join(" ");
      this.showMinError && (t += jr.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions(
      this.value), this.out.write(this.clear + t), this.clear = yF(t, this.out.columns);
    }
  };
  EF.exports = Jd;
});

// ../node_modules/prompts/lib/elements/autocomplete.js
var AF = B((Tne, wF) => {
  "use strict";
  var xa = We(), BU = ai(), { erase: PU, cursor: bF } = Ge(), { style: Xd, clear: vF, figures: Yd, wrap: IU, entriesToDisplay: OU } = yr(), CF = /* @__PURE__ */ s(
  (e, t) => e[t] && (e[t].value || e[t].title || e[t]), "getVal"), RU = /* @__PURE__ */ s((e, t) => e[t] && (e[t].title || e[t].value || e[t]),
  "getTitle"), NU = /* @__PURE__ */ s((e, t) => {
    let r = e.findIndex((i) => i.value === t || i.title === t);
    return r > -1 ? r : void 0;
  }, "getIndex"), Kd = class extends BU {
    static {
      s(this, "AutocompletePrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.suggest = t.suggest, this.choices = t.choices, this.initial = typeof t.initial == "number" ? t.initial :
      NU(t.choices, t.initial), this.select = this.initial || t.cursor || 0, this.i18n = { noMatches: t.noMatches || "no matches found" }, this.
      fallback = t.fallback || this.initial, this.clearFirst = t.clearFirst || !1, this.suggestions = [], this.input = "", this.limit = t.limit ||
      10, this.cursor = 0, this.transform = Xd.render(t.style), this.scale = this.transform.scale, this.render = this.render.bind(this), this.
      complete = this.complete.bind(this), this.clear = vF("", this.out.columns), this.complete(this.render), this.render();
    }
    set fallback(t) {
      this._fb = Number.isSafeInteger(parseInt(t)) ? parseInt(t) : t;
    }
    get fallback() {
      let t;
      return typeof this._fb == "number" ? t = this.choices[this._fb] : typeof this._fb == "string" && (t = { title: this._fb }), t || this.
      _fb || { title: this.i18n.noMatches };
    }
    moveSelect(t) {
      this.select = t, this.suggestions.length > 0 ? this.value = CF(this.suggestions, t) : this.value = this.fallback.value, this.fire();
    }
    async complete(t) {
      let r = this.completing = this.suggest(this.input, this.choices), i = await r;
      if (this.completing !== r) return;
      this.suggestions = i.map((a, u, o) => ({ title: RU(o, u), value: CF(o, u), description: a.description })), this.completing = !1;
      let n = Math.max(i.length - 1, 0);
      this.moveSelect(Math.min(n, this.select)), t && t();
    }
    reset() {
      this.input = "", this.complete(() => {
        this.moveSelect(this.initial !== void 0 ? this.initial : 0), this.render();
      }), this.render();
    }
    exit() {
      this.clearFirst && this.input.length > 0 ? this.reset() : (this.done = this.exited = !0, this.aborted = !1, this.fire(), this.render(),
      this.out.write(`
`), this.close());
    }
    abort() {
      this.done = this.aborted = !0, this.exited = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.done = !0, this.aborted = this.exited = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    _(t, r) {
      let i = this.input.slice(0, this.cursor), n = this.input.slice(this.cursor);
      this.input = `${i}${t}${n}`, this.cursor = i.length + 1, this.complete(this.render), this.render();
    }
    delete() {
      if (this.cursor === 0) return this.bell();
      let t = this.input.slice(0, this.cursor - 1), r = this.input.slice(this.cursor);
      this.input = `${t}${r}`, this.complete(this.render), this.cursor = this.cursor - 1, this.render();
    }
    deleteForward() {
      if (this.cursor * this.scale >= this.rendered.length) return this.bell();
      let t = this.input.slice(0, this.cursor), r = this.input.slice(this.cursor + 1);
      this.input = `${t}${r}`, this.complete(this.render), this.render();
    }
    first() {
      this.moveSelect(0), this.render();
    }
    last() {
      this.moveSelect(this.suggestions.length - 1), this.render();
    }
    up() {
      this.select === 0 ? this.moveSelect(this.suggestions.length - 1) : this.moveSelect(this.select - 1), this.render();
    }
    down() {
      this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render();
    }
    next() {
      this.select === this.suggestions.length - 1 ? this.moveSelect(0) : this.moveSelect(this.select + 1), this.render();
    }
    nextPage() {
      this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1)), this.render();
    }
    prevPage() {
      this.moveSelect(Math.max(this.select - this.limit, 0)), this.render();
    }
    left() {
      if (this.cursor <= 0) return this.bell();
      this.cursor = this.cursor - 1, this.render();
    }
    right() {
      if (this.cursor * this.scale >= this.rendered.length) return this.bell();
      this.cursor = this.cursor + 1, this.render();
    }
    renderOption(t, r, i, n) {
      let a, u = i ? Yd.arrowUp : n ? Yd.arrowDown : " ", o = r ? xa.cyan().underline(t.title) : t.title;
      return u = (r ? xa.cyan(Yd.pointer) + " " : "  ") + u, t.description && (a = ` - ${t.description}`, (u.length + o.length + a.length >=
      this.out.columns || t.description.split(/\r?\n/).length > 1) && (a = `
` + IU(t.description, { margin: 3, width: this.out.columns }))), u + " " + o + xa.gray(a || "");
    }
    render() {
      if (this.closed) return;
      this.firstRender ? this.out.write(bF.hide) : this.out.write(vF(this.outputText, this.out.columns)), super.render();
      let { startIndex: t, endIndex: r } = OU(this.select, this.choices.length, this.limit);
      if (this.outputText = [
        Xd.symbol(this.done, this.aborted, this.exited),
        xa.bold(this.msg),
        Xd.delimiter(this.completing),
        this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)
      ].join(" "), !this.done) {
        let i = this.suggestions.slice(t, r).map((n, a) => this.renderOption(
          n,
          this.select === a + t,
          a === 0 && t > 0,
          a + t === r - 1 && r < this.choices.length
        )).join(`
`);
        this.outputText += `
` + (i || xa.gray(this.fallback.title));
      }
      this.out.write(PU.line + bF.to(0) + this.outputText);
    }
  };
  wF.exports = Kd;
});

// ../node_modules/prompts/lib/elements/autocompleteMultiselect.js
var kF = B((Pne, _F) => {
  "use strict";
  var oi = We(), { cursor: LU } = Ge(), MU = Gd(), { clear: FF, style: SF, figures: is } = yr(), Qd = class extends MU {
    static {
      s(this, "AutocompleteMultiselectPrompt");
    }
    constructor(t = {}) {
      t.overrideRender = !0, super(t), this.inputValue = "", this.clear = FF("", this.out.columns), this.filteredOptions = this.value, this.
      render();
    }
    last() {
      this.cursor = this.filteredOptions.length - 1, this.render();
    }
    next() {
      this.cursor = (this.cursor + 1) % this.filteredOptions.length, this.render();
    }
    up() {
      this.cursor === 0 ? this.cursor = this.filteredOptions.length - 1 : this.cursor--, this.render();
    }
    down() {
      this.cursor === this.filteredOptions.length - 1 ? this.cursor = 0 : this.cursor++, this.render();
    }
    left() {
      this.filteredOptions[this.cursor].selected = !1, this.render();
    }
    right() {
      if (this.value.filter((t) => t.selected).length >= this.maxChoices) return this.bell();
      this.filteredOptions[this.cursor].selected = !0, this.render();
    }
    delete() {
      this.inputValue.length && (this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1), this.updateFilteredOptions());
    }
    updateFilteredOptions() {
      let t = this.filteredOptions[this.cursor];
      this.filteredOptions = this.value.filter((i) => this.inputValue ? !!(typeof i.title == "string" && i.title.toLowerCase().includes(this.
      inputValue.toLowerCase()) || typeof i.value == "string" && i.value.toLowerCase().includes(this.inputValue.toLowerCase())) : !0);
      let r = this.filteredOptions.findIndex((i) => i === t);
      this.cursor = r < 0 ? 0 : r, this.render();
    }
    handleSpaceToggle() {
      let t = this.filteredOptions[this.cursor];
      if (t.selected)
        t.selected = !1, this.render();
      else {
        if (t.disabled || this.value.filter((r) => r.selected).length >= this.maxChoices)
          return this.bell();
        t.selected = !0, this.render();
      }
    }
    handleInputChange(t) {
      this.inputValue = this.inputValue + t, this.updateFilteredOptions();
    }
    _(t, r) {
      t === " " ? this.handleSpaceToggle() : this.handleInputChange(t);
    }
    renderInstructions() {
      return this.instructions === void 0 || this.instructions ? typeof this.instructions == "string" ? this.instructions : `
Instructions:
    ${is.arrowUp}/${is.arrowDown}: Highlight option
    ${is.arrowLeft}/${is.arrowRight}/[space]: Toggle selection
    [a,b,c]/delete: Filter choices
    enter/return: Complete answer
` : "";
    }
    renderCurrentInput() {
      return `
Filtered results for: ${this.inputValue ? this.inputValue : oi.gray("Enter something to filter")}
`;
    }
    renderOption(t, r, i) {
      let n;
      return r.disabled ? n = t === i ? oi.gray().underline(r.title) : oi.strikethrough().gray(r.title) : n = t === i ? oi.cyan().underline(
      r.title) : r.title, (r.selected ? oi.green(is.radioOn) : is.radioOff) + "  " + n;
    }
    renderDoneOrInstructions() {
      if (this.done)
        return this.value.filter((r) => r.selected).map((r) => r.title).join(", ");
      let t = [oi.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()];
      return this.filteredOptions.length && this.filteredOptions[this.cursor].disabled && t.push(oi.yellow(this.warn)), t.join(" ");
    }
    render() {
      if (this.closed) return;
      this.firstRender && this.out.write(LU.hide), super.render();
      let t = [
        SF.symbol(this.done, this.aborted),
        oi.bold(this.msg),
        SF.delimiter(!1),
        this.renderDoneOrInstructions()
      ].join(" ");
      this.showMinError && (t += oi.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), t += this.renderOptions(
      this.filteredOptions), this.out.write(this.clear + t), this.clear = FF(t, this.out.columns);
    }
  };
  _F.exports = Qd;
});

// ../node_modules/prompts/lib/elements/confirm.js
var OF = B((One, IF) => {
  var TF = We(), jU = ai(), { style: BF, clear: qU } = yr(), { erase: $U, cursor: PF } = Ge(), Zd = class extends jU {
    static {
      s(this, "ConfirmPrompt");
    }
    constructor(t = {}) {
      super(t), this.msg = t.message, this.value = t.initial, this.initialValue = !!t.initial, this.yesMsg = t.yes || "yes", this.yesOption =
      t.yesOption || "(Y/n)", this.noMsg = t.no || "no", this.noOption = t.noOption || "(y/N)", this.render();
    }
    reset() {
      this.value = this.initialValue, this.fire(), this.render();
    }
    exit() {
      this.abort();
    }
    abort() {
      this.done = this.aborted = !0, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    submit() {
      this.value = this.value || !1, this.done = !0, this.aborted = !1, this.fire(), this.render(), this.out.write(`
`), this.close();
    }
    _(t, r) {
      return t.toLowerCase() === "y" ? (this.value = !0, this.submit()) : t.toLowerCase() === "n" ? (this.value = !1, this.submit()) : this.
      bell();
    }
    render() {
      this.closed || (this.firstRender ? this.out.write(PF.hide) : this.out.write(qU(this.outputText, this.out.columns)), super.render(), this.
      outputText = [
        BF.symbol(this.done, this.aborted),
        TF.bold(this.msg),
        BF.delimiter(this.done),
        this.done ? this.value ? this.yesMsg : this.noMsg : TF.gray(this.initialValue ? this.yesOption : this.noOption)
      ].join(" "), this.out.write($U.line + PF.to(0) + this.outputText));
    }
  };
  IF.exports = Zd;
});

// ../node_modules/prompts/lib/elements/index.js
var NF = B((Nne, RF) => {
  "use strict";
  RF.exports = {
    TextPrompt: IA(),
    SelectPrompt: LA(),
    TogglePrompt: $A(),
    DatePrompt: fF(),
    NumberPrompt: DF(),
    MultiselectPrompt: Gd(),
    AutocompletePrompt: AF(),
    AutocompleteMultiselectPrompt: kF(),
    ConfirmPrompt: OF()
  };
});

// ../node_modules/prompts/lib/prompts.js
var MF = B((LF) => {
  "use strict";
  var Bt = LF, VU = NF(), Mo = /* @__PURE__ */ s((e) => e, "noop");
  function qr(e, t, r = {}) {
    return new Promise((i, n) => {
      let a = new VU[e](t), u = r.onAbort || Mo, o = r.onSubmit || Mo, l = r.onExit || Mo;
      a.on("state", t.onState || Mo), a.on("submit", (c) => i(o(c))), a.on("exit", (c) => i(l(c))), a.on("abort", (c) => n(u(c)));
    });
  }
  s(qr, "toPrompt");
  Bt.text = (e) => qr("TextPrompt", e);
  Bt.password = (e) => (e.style = "password", Bt.text(e));
  Bt.invisible = (e) => (e.style = "invisible", Bt.text(e));
  Bt.number = (e) => qr("NumberPrompt", e);
  Bt.date = (e) => qr("DatePrompt", e);
  Bt.confirm = (e) => qr("ConfirmPrompt", e);
  Bt.list = (e) => {
    let t = e.separator || ",";
    return qr("TextPrompt", e, {
      onSubmit: /* @__PURE__ */ s((r) => r.split(t).map((i) => i.trim()), "onSubmit")
    });
  };
  Bt.toggle = (e) => qr("TogglePrompt", e);
  Bt.select = (e) => qr("SelectPrompt", e);
  Bt.multiselect = (e) => {
    e.choices = [].concat(e.choices || []);
    let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected");
    return qr("MultiselectPrompt", e, {
      onAbort: t,
      onSubmit: t
    });
  };
  Bt.autocompleteMultiselect = (e) => {
    e.choices = [].concat(e.choices || []);
    let t = /* @__PURE__ */ s((r) => r.filter((i) => i.selected).map((i) => i.value), "toSelected");
    return qr("AutocompleteMultiselectPrompt", e, {
      onAbort: t,
      onSubmit: t
    });
  };
  var UU = /* @__PURE__ */ s((e, t) => Promise.resolve(
    t.filter((r) => r.title.slice(0, e.length).toLowerCase() === e.toLowerCase())
  ), "byTitle");
  Bt.autocomplete = (e) => (e.suggest = e.suggest || UU, e.choices = [].concat(e.choices || []), qr("AutocompletePrompt", e));
});

// ../node_modules/prompts/lib/index.js
var $F = B((jne, qF) => {
  "use strict";
  var em = MF(), zU = ["suggest", "format", "onState", "validate", "onRender", "type"], jF = /* @__PURE__ */ s(() => {
  }, "noop");
  async function Ri(e = [], { onSubmit: t = jF, onCancel: r = jF } = {}) {
    let i = {}, n = Ri._override || {};
    e = [].concat(e);
    let a, u, o, l, c, h, p = /* @__PURE__ */ s(async (d, m, g = !1) => {
      if (!(!g && d.validate && d.validate(m) !== !0))
        return d.format ? await d.format(m, i) : m;
    }, "getFormattedAnswer");
    for (u of e)
      if ({ name: l, type: c } = u, typeof c == "function" && (c = await c(a, { ...i }, u), u.type = c), !!c) {
        for (let d in u) {
          if (zU.includes(d)) continue;
          let m = u[d];
          u[d] = typeof m == "function" ? await m(a, { ...i }, h) : m;
        }
        if (h = u, typeof u.message != "string")
          throw new Error("prompt message is required");
        if ({ name: l, type: c } = u, em[c] === void 0)
          throw new Error(`prompt type (${c}) is not defined`);
        if (n[u.name] !== void 0 && (a = await p(u, n[u.name]), a !== void 0)) {
          i[l] = a;
          continue;
        }
        try {
          a = Ri._injected ? HU(Ri._injected, u.initial) : await em[c](u), i[l] = a = await p(u, a, !0), o = await t(u, a, i);
        } catch {
          o = !await r(u, i);
        }
        if (o) return i;
      }
    return i;
  }
  s(Ri, "prompt");
  function HU(e, t) {
    let r = e.shift();
    if (r instanceof Error)
      throw r;
    return r === void 0 ? t : r;
  }
  s(HU, "getInjectedAnswer");
  function WU(e) {
    Ri._injected = (Ri._injected || []).concat(e);
  }
  s(WU, "inject");
  function JU(e) {
    Ri._override = Object.assign({}, e);
  }
  s(JU, "override");
  qF.exports = Object.assign(Ri, { prompt: Ri, prompts: em, inject: WU, override: JU });
});

// ../node_modules/prompts/index.js
var tm = B(($ne, VF) => {
  function GU(e) {
    e = (Array.isArray(e) ? e : e.split(".")).map(Number);
    let t = 0, r = process.versions.node.split(".").map(Number);
    for (; t < e.length; t++) {
      if (r[t] > e[t]) return !1;
      if (e[t] > r[t]) return !0;
    }
    return !1;
  }
  s(GU, "isNodeLT");
  VF.exports = GU("8.6.0") ? fA() : $F();
});

// ../node_modules/map-or-similar/src/similar.js
var YF = B((bse, XF) => {
  function Ni() {
    return this.list = [], this.lastItem = void 0, this.size = 0, this;
  }
  s(Ni, "Similar");
  Ni.prototype.get = function(e) {
    var t;
    if (this.lastItem && this.isEqual(this.lastItem.key, e))
      return this.lastItem.val;
    if (t = this.indexOf(e), t >= 0)
      return this.lastItem = this.list[t], this.list[t].val;
  };
  Ni.prototype.set = function(e, t) {
    var r;
    return this.lastItem && this.isEqual(this.lastItem.key, e) ? (this.lastItem.val = t, this) : (r = this.indexOf(e), r >= 0 ? (this.lastItem =
    this.list[r], this.list[r].val = t, this) : (this.lastItem = { key: e, val: t }, this.list.push(this.lastItem), this.size++, this));
  };
  Ni.prototype.delete = function(e) {
    var t;
    if (this.lastItem && this.isEqual(this.lastItem.key, e) && (this.lastItem = void 0), t = this.indexOf(e), t >= 0)
      return this.size--, this.list.splice(t, 1)[0];
  };
  Ni.prototype.has = function(e) {
    var t;
    return this.lastItem && this.isEqual(this.lastItem.key, e) ? !0 : (t = this.indexOf(e), t >= 0 ? (this.lastItem = this.list[t], !0) : !1);
  };
  Ni.prototype.forEach = function(e, t) {
    var r;
    for (r = 0; r < this.size; r++)
      e.call(t || this, this.list[r].val, this.list[r].key, this);
  };
  Ni.prototype.indexOf = function(e) {
    var t;
    for (t = 0; t < this.size; t++)
      if (this.isEqual(this.list[t].key, e))
        return t;
    return -1;
  };
  Ni.prototype.isEqual = function(e, t) {
    return e === t || e !== e && t !== t;
  };
  XF.exports = Ni;
});

// ../node_modules/map-or-similar/src/map-or-similar.js
var QF = B((Cse, KF) => {
  KF.exports = function(e) {
    if (typeof Map != "function" || e) {
      var t = YF();
      return new t();
    } else
      return /* @__PURE__ */ new Map();
  };
});

// ../node_modules/memoizerific/src/memoizerific.js
var tS = B((wse, eS) => {
  var ZF = QF();
  eS.exports = function(e) {
    var t = new ZF(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), r = [];
    return function(i) {
      var n = /* @__PURE__ */ s(function() {
        var a = t, u, o, l = arguments.length - 1, c = Array(l + 1), h = !0, p;
        if ((n.numArgs || n.numArgs === 0) && n.numArgs !== l + 1)
          throw new Error("Memoizerific functions should always be called with the same number of arguments");
        for (p = 0; p < l; p++) {
          if (c[p] = {
            cacheItem: a,
            arg: arguments[p]
          }, a.has(arguments[p])) {
            a = a.get(arguments[p]);
            continue;
          }
          h = !1, u = new ZF(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), a.set(arguments[p], u), a = u;
        }
        return h && (a.has(arguments[l]) ? o = a.get(arguments[l]) : h = !1), h || (o = i.apply(null, arguments), a.set(arguments[l], o)), e >
        0 && (c[l] = {
          cacheItem: a,
          arg: arguments[l]
        }, h ? uz(r, c) : r.push(c), r.length > e && oz(r.shift())), n.wasMemoized = h, n.numArgs = l + 1, o;
      }, "memoizerific");
      return n.limit = e, n.wasMemoized = !1, n.cache = t, n.lru = r, n;
    };
  };
  function uz(e, t) {
    var r = e.length, i = t.length, n, a, u;
    for (a = 0; a < r; a++) {
      for (n = !0, u = 0; u < i; u++)
        if (!lz(e[a][u].arg, t[u].arg)) {
          n = !1;
          break;
        }
      if (n)
        break;
    }
    e.push(e.splice(a, 1)[0]);
  }
  s(uz, "moveToMostRecentLru");
  function oz(e) {
    var t = e.length, r = e[t - 1], i, n;
    for (r.cacheItem.delete(r.arg), n = t - 2; n >= 0 && (r = e[n], i = r.cacheItem.get(r.arg), !i || !i.size); n--)
      r.cacheItem.delete(r.arg);
  }
  s(oz, "removeCachedResult");
  function lz(e, t) {
    return e === t || e !== e && t !== t;
  }
  s(lz, "isEqual");
});

// ../node_modules/telejson/dist/index.js
var rS = B((exports, module) => {
  "use strict";
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.
  getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = /* @__PURE__ */ s(
  (e, t) => /* @__PURE__ */ s(function() {
    return t || (0, e[__getOwnPropNames(e)[0]])((t = { exports: {} }).exports, t), t.exports;
  }, "__require"), "__commonJS"), __export = /* @__PURE__ */ s((e, t) => {
    for (var r in t)
      __defProp(e, r, { get: t[r], enumerable: !0 });
  }, "__export"), __copyProps = /* @__PURE__ */ s((e, t, r, i) => {
    if (t && typeof t == "object" || typeof t == "function")
      for (let n of __getOwnPropNames(t))
        !__hasOwnProp.call(e, n) && n !== r && __defProp(e, n, { get: /* @__PURE__ */ s(() => t[n], "get"), enumerable: !(i = __getOwnPropDesc(
        t, n)) || i.enumerable });
    return e;
  }, "__copyProps"), __toESM = /* @__PURE__ */ s((e, t, r) => (r = e != null ? __create(__getProtoOf(e)) : {}, __copyProps(
    t || !e || !e.__esModule ? __defProp(r, "default", { value: e, enumerable: !0 }) : r,
    e
  )), "__toESM"), __toCommonJS = /* @__PURE__ */ s((e) => __copyProps(__defProp({}, "__esModule", { value: !0 }), e), "__toCommonJS"), require_shams = __commonJS(
  {
    "node_modules/has-symbols/shams.js"(e, t) {
      "use strict";
      t.exports = /* @__PURE__ */ s(function() {
        if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
          return !1;
        if (typeof Symbol.iterator == "symbol")
          return !0;
        var i = {}, n = Symbol("test"), a = Object(n);
        if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[objec\
t Symbol]")
          return !1;
        var u = 42;
        i[n] = u;
        for (n in i)
          return !1;
        if (typeof Object.keys == "function" && Object.keys(i).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(
        i).length !== 0)
          return !1;
        var o = Object.getOwnPropertySymbols(i);
        if (o.length !== 1 || o[0] !== n || !Object.prototype.propertyIsEnumerable.call(i, n))
          return !1;
        if (typeof Object.getOwnPropertyDescriptor == "function") {
          var l = Object.getOwnPropertyDescriptor(i, n);
          if (l.value !== u || l.enumerable !== !0)
            return !1;
        }
        return !0;
      }, "hasSymbols");
    }
  }), require_has_symbols = __commonJS({
    "node_modules/has-symbols/index.js"(e, t) {
      "use strict";
      var r = typeof Symbol < "u" && Symbol, i = require_shams();
      t.exports = /* @__PURE__ */ s(function() {
        return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
        i();
      }, "hasNativeSymbols");
    }
  }), require_implementation = __commonJS({
    "node_modules/function-bind/implementation.js"(e, t) {
      "use strict";
      var r = "Function.prototype.bind called on incompatible ", i = Array.prototype.slice, n = Object.prototype.toString, a = "[object Func\
tion]";
      t.exports = /* @__PURE__ */ s(function(o) {
        var l = this;
        if (typeof l != "function" || n.call(l) !== a)
          throw new TypeError(r + l);
        for (var c = i.call(arguments, 1), h, p = /* @__PURE__ */ s(function() {
          if (this instanceof h) {
            var v = l.apply(
              this,
              c.concat(i.call(arguments))
            );
            return Object(v) === v ? v : this;
          } else
            return l.apply(
              o,
              c.concat(i.call(arguments))
            );
        }, "binder"), d = Math.max(0, l.length - c.length), m = [], g = 0; g < d; g++)
          m.push("$" + g);
        if (h = Function("binder", "return function (" + m.join(",") + "){ return binder.apply(this,arguments); }")(p), l.prototype) {
          var D = /* @__PURE__ */ s(function() {
          }, "Empty2");
          D.prototype = l.prototype, h.prototype = new D(), D.prototype = null;
        }
        return h;
      }, "bind");
    }
  }), require_function_bind = __commonJS({
    "node_modules/function-bind/index.js"(e, t) {
      "use strict";
      var r = require_implementation();
      t.exports = Function.prototype.bind || r;
    }
  }), require_src = __commonJS({
    "node_modules/has/src/index.js"(e, t) {
      "use strict";
      var r = require_function_bind();
      t.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
    }
  }), require_get_intrinsic = __commonJS({
    "node_modules/get-intrinsic/index.js"(e, t) {
      "use strict";
      var r, i = SyntaxError, n = Function, a = TypeError, u = /* @__PURE__ */ s(function(V) {
        try {
          return n('"use strict"; return (' + V + ").constructor;")();
        } catch {
        }
      }, "getEvalledConstructor"), o = Object.getOwnPropertyDescriptor;
      if (o)
        try {
          o({}, "");
        } catch {
          o = null;
        }
      var l = /* @__PURE__ */ s(function() {
        throw new a();
      }, "throwTypeError"), c = o ? function() {
        try {
          return arguments.callee, l;
        } catch {
          try {
            return o(arguments, "callee").get;
          } catch {
            return l;
          }
        }
      }() : l, h = require_has_symbols()(), p = Object.getPrototypeOf || function(V) {
        return V.__proto__;
      }, d = {}, m = typeof Uint8Array > "u" ? r : p(Uint8Array), g = {
        "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
        "%Array%": Array,
        "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
        "%ArrayIteratorPrototype%": h ? p([][Symbol.iterator]()) : r,
        "%AsyncFromSyncIteratorPrototype%": r,
        "%AsyncFunction%": d,
        "%AsyncGenerator%": d,
        "%AsyncGeneratorFunction%": d,
        "%AsyncIteratorPrototype%": d,
        "%Atomics%": typeof Atomics > "u" ? r : Atomics,
        "%BigInt%": typeof BigInt > "u" ? r : BigInt,
        "%Boolean%": Boolean,
        "%DataView%": typeof DataView > "u" ? r : DataView,
        "%Date%": Date,
        "%decodeURI%": decodeURI,
        "%decodeURIComponent%": decodeURIComponent,
        "%encodeURI%": encodeURI,
        "%encodeURIComponent%": encodeURIComponent,
        "%Error%": Error,
        "%eval%": eval,
        "%EvalError%": EvalError,
        "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
        "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
        "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
        "%Function%": n,
        "%GeneratorFunction%": d,
        "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
        "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
        "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
        "%isFinite%": isFinite,
        "%isNaN%": isNaN,
        "%IteratorPrototype%": h ? p(p([][Symbol.iterator]())) : r,
        "%JSON%": typeof JSON == "object" ? JSON : r,
        "%Map%": typeof Map > "u" ? r : Map,
        "%MapIteratorPrototype%": typeof Map > "u" || !h ? r : p((/* @__PURE__ */ new Map())[Symbol.iterator]()),
        "%Math%": Math,
        "%Number%": Number,
        "%Object%": Object,
        "%parseFloat%": parseFloat,
        "%parseInt%": parseInt,
        "%Promise%": typeof Promise > "u" ? r : Promise,
        "%Proxy%": typeof Proxy > "u" ? r : Proxy,
        "%RangeError%": RangeError,
        "%ReferenceError%": ReferenceError,
        "%Reflect%": typeof Reflect > "u" ? r : Reflect,
        "%RegExp%": RegExp,
        "%Set%": typeof Set > "u" ? r : Set,
        "%SetIteratorPrototype%": typeof Set > "u" || !h ? r : p((/* @__PURE__ */ new Set())[Symbol.iterator]()),
        "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
        "%String%": String,
        "%StringIteratorPrototype%": h ? p(""[Symbol.iterator]()) : r,
        "%Symbol%": h ? Symbol : r,
        "%SyntaxError%": i,
        "%ThrowTypeError%": c,
        "%TypedArray%": m,
        "%TypeError%": a,
        "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
        "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
        "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
        "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
        "%URIError%": URIError,
        "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
        "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
        "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet
      }, D = /* @__PURE__ */ s(function V(U) {
        var G;
        if (U === "%AsyncFunction%")
          G = u("async function () {}");
        else if (U === "%GeneratorFunction%")
          G = u("function* () {}");
        else if (U === "%AsyncGeneratorFunction%")
          G = u("async function* () {}");
        else if (U === "%AsyncGenerator%") {
          var R = V("%AsyncGeneratorFunction%");
          R && (G = R.prototype);
        } else if (U === "%AsyncIteratorPrototype%") {
          var N = V("%AsyncGenerator%");
          N && (G = p(N.prototype));
        }
        return g[U] = G, G;
      }, "doEval2"), v = {
        "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
        "%ArrayPrototype%": ["Array", "prototype"],
        "%ArrayProto_entries%": ["Array", "prototype", "entries"],
        "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
        "%ArrayProto_keys%": ["Array", "prototype", "keys"],
        "%ArrayProto_values%": ["Array", "prototype", "values"],
        "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
        "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
        "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
        "%BooleanPrototype%": ["Boolean", "prototype"],
        "%DataViewPrototype%": ["DataView", "prototype"],
        "%DatePrototype%": ["Date", "prototype"],
        "%ErrorPrototype%": ["Error", "prototype"],
        "%EvalErrorPrototype%": ["EvalError", "prototype"],
        "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
        "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
        "%FunctionPrototype%": ["Function", "prototype"],
        "%Generator%": ["GeneratorFunction", "prototype"],
        "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
        "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
        "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
        "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
        "%JSONParse%": ["JSON", "parse"],
        "%JSONStringify%": ["JSON", "stringify"],
        "%MapPrototype%": ["Map", "prototype"],
        "%NumberPrototype%": ["Number", "prototype"],
        "%ObjectPrototype%": ["Object", "prototype"],
        "%ObjProto_toString%": ["Object", "prototype", "toString"],
        "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
        "%PromisePrototype%": ["Promise", "prototype"],
        "%PromiseProto_then%": ["Promise", "prototype", "then"],
        "%Promise_all%": ["Promise", "all"],
        "%Promise_reject%": ["Promise", "reject"],
        "%Promise_resolve%": ["Promise", "resolve"],
        "%RangeErrorPrototype%": ["RangeError", "prototype"],
        "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
        "%RegExpPrototype%": ["RegExp", "prototype"],
        "%SetPrototype%": ["Set", "prototype"],
        "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
        "%StringPrototype%": ["String", "prototype"],
        "%SymbolPrototype%": ["Symbol", "prototype"],
        "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
        "%TypedArrayPrototype%": ["TypedArray", "prototype"],
        "%TypeErrorPrototype%": ["TypeError", "prototype"],
        "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
        "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
        "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
        "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
        "%URIErrorPrototype%": ["URIError", "prototype"],
        "%WeakMapPrototype%": ["WeakMap", "prototype"],
        "%WeakSetPrototype%": ["WeakSet", "prototype"]
      }, y = require_function_bind(), C = require_src(), S = y.call(Function.call, Array.prototype.concat), T = y.call(Function.apply, Array.
      prototype.splice), j = y.call(Function.call, String.prototype.replace), w = y.call(Function.call, String.prototype.slice), A = y.call(
      Function.call, RegExp.prototype.exec), P = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
      k = /\\(\\)?/g, $ = /* @__PURE__ */ s(function(U) {
        var G = w(U, 0, 1), R = w(U, -1);
        if (G === "%" && R !== "%")
          throw new i("invalid intrinsic syntax, expected closing `%`");
        if (R === "%" && G !== "%")
          throw new i("invalid intrinsic syntax, expected opening `%`");
        var N = [];
        return j(U, P, function(z, Q, te, I) {
          N[N.length] = te ? j(I, k, "$1") : Q || z;
        }), N;
      }, "stringToPath3"), M = /* @__PURE__ */ s(function(U, G) {
        var R = U, N;
        if (C(v, R) && (N = v[R], R = "%" + N[0] + "%"), C(g, R)) {
          var z = g[R];
          if (z === d && (z = D(R)), typeof z > "u" && !G)
            throw new a("intrinsic " + U + " exists, but is not available. Please file an issue!");
          return {
            alias: N,
            name: R,
            value: z
          };
        }
        throw new i("intrinsic " + U + " does not exist!");
      }, "getBaseIntrinsic2");
      t.exports = /* @__PURE__ */ s(function(U, G) {
        if (typeof U != "string" || U.length === 0)
          throw new a("intrinsic name must be a non-empty string");
        if (arguments.length > 1 && typeof G != "boolean")
          throw new a('"allowMissing" argument must be a boolean');
        if (A(/^%?[^%]*%?$/, U) === null)
          throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
        var R = $(U), N = R.length > 0 ? R[0] : "", z = M("%" + N + "%", G), Q = z.name, te = z.value, I = !1, he = z.alias;
        he && (N = he[0], T(R, S([0, 1], he)));
        for (var xe = 1, L = !0; xe < R.length; xe += 1) {
          var Se = R[xe], Ie = w(Se, 0, 1), ue = w(Se, -1);
          if ((Ie === '"' || Ie === "'" || Ie === "`" || ue === '"' || ue === "'" || ue === "`") && Ie !== ue)
            throw new i("property names with quotes must have matching quotes");
          if ((Se === "constructor" || !L) && (I = !0), N += "." + Se, Q = "%" + N + "%", C(g, Q))
            te = g[Q];
          else if (te != null) {
            if (!(Se in te)) {
              if (!G)
                throw new a("base intrinsic for " + U + " exists, but the property is not available.");
              return;
            }
            if (o && xe + 1 >= R.length) {
              var at = o(te, Se);
              L = !!at, L && "get" in at && !("originalValue" in at.get) ? te = at.get : te = te[Se];
            } else
              L = C(te, Se), te = te[Se];
            L && !I && (g[Q] = te);
          }
        }
        return te;
      }, "GetIntrinsic");
    }
  }), require_call_bind = __commonJS({
    "node_modules/call-bind/index.js"(e, t) {
      "use strict";
      var r = require_function_bind(), i = require_get_intrinsic(), n = i("%Function.prototype.apply%"), a = i("%Function.prototype.call%"),
      u = i("%Reflect.apply%", !0) || r.call(a, n), o = i("%Object.getOwnPropertyDescriptor%", !0), l = i("%Object.defineProperty%", !0), c = i(
      "%Math.max%");
      if (l)
        try {
          l({}, "a", { value: 1 });
        } catch {
          l = null;
        }
      t.exports = /* @__PURE__ */ s(function(d) {
        var m = u(r, a, arguments);
        if (o && l) {
          var g = o(m, "length");
          g.configurable && l(
            m,
            "length",
            { value: 1 + c(0, d.length - (arguments.length - 1)) }
          );
        }
        return m;
      }, "callBind");
      var h = /* @__PURE__ */ s(function() {
        return u(r, n, arguments);
      }, "applyBind2");
      l ? l(t.exports, "apply", { value: h }) : t.exports.apply = h;
    }
  }), require_callBound = __commonJS({
    "node_modules/call-bind/callBound.js"(e, t) {
      "use strict";
      var r = require_get_intrinsic(), i = require_call_bind(), n = i(r("String.prototype.indexOf"));
      t.exports = /* @__PURE__ */ s(function(u, o) {
        var l = r(u, !!o);
        return typeof l == "function" && n(u, ".prototype.") > -1 ? i(l) : l;
      }, "callBoundIntrinsic");
    }
  }), require_shams2 = __commonJS({
    "node_modules/has-tostringtag/shams.js"(e, t) {
      "use strict";
      var r = require_shams();
      t.exports = /* @__PURE__ */ s(function() {
        return r() && !!Symbol.toStringTag;
      }, "hasToStringTagShams");
    }
  }), require_is_regex = __commonJS({
    "node_modules/is-regex/index.js"(e, t) {
      "use strict";
      var r = require_callBound(), i = require_shams2()(), n, a, u, o;
      i && (n = r("Object.prototype.hasOwnProperty"), a = r("RegExp.prototype.exec"), u = {}, l = /* @__PURE__ */ s(function() {
        throw u;
      }, "throwRegexMarker"), o = {
        toString: l,
        valueOf: l
      }, typeof Symbol.toPrimitive == "symbol" && (o[Symbol.toPrimitive] = l));
      var l, c = r("Object.prototype.toString"), h = Object.getOwnPropertyDescriptor, p = "[object RegExp]";
      t.exports = /* @__PURE__ */ s(i ? function(m) {
        if (!m || typeof m != "object")
          return !1;
        var g = h(m, "lastIndex"), D = g && n(g, "value");
        if (!D)
          return !1;
        try {
          a(m, o);
        } catch (v) {
          return v === u;
        }
      } : function(m) {
        return !m || typeof m != "object" && typeof m != "function" ? !1 : c(m) === p;
      }, "isRegex");
    }
  }), require_is_function = __commonJS({
    "node_modules/is-function/index.js"(e, t) {
      t.exports = i;
      var r = Object.prototype.toString;
      function i(n) {
        if (!n)
          return !1;
        var a = r.call(n);
        return a === "[object Function]" || typeof n == "function" && a !== "[object RegExp]" || typeof window < "u" && (n === window.setTimeout ||
        n === window.alert || n === window.confirm || n === window.prompt);
      }
      s(i, "isFunction3");
    }
  }), require_is_symbol = __commonJS({
    "node_modules/is-symbol/index.js"(e, t) {
      "use strict";
      var r = Object.prototype.toString, i = require_has_symbols()();
      i ? (n = Symbol.prototype.toString, a = /^Symbol\(.*\)$/, u = /* @__PURE__ */ s(function(l) {
        return typeof l.valueOf() != "symbol" ? !1 : a.test(n.call(l));
      }, "isRealSymbolObject"), t.exports = /* @__PURE__ */ s(function(l) {
        if (typeof l == "symbol")
          return !0;
        if (r.call(l) !== "[object Symbol]")
          return !1;
        try {
          return u(l);
        } catch {
          return !1;
        }
      }, "isSymbol3")) : t.exports = /* @__PURE__ */ s(function(l) {
        return !1;
      }, "isSymbol3");
      var n, a, u;
    }
  }), src_exports = {};
  __export(src_exports, {
    isJSON: /* @__PURE__ */ s(() => isJSON, "isJSON"),
    parse: /* @__PURE__ */ s(() => parse, "parse"),
    replacer: /* @__PURE__ */ s(() => replacer, "replacer"),
    reviver: /* @__PURE__ */ s(() => reviver2, "reviver"),
    stringify: /* @__PURE__ */ s(() => stringify, "stringify")
  });
  module.exports = __toCommonJS(src_exports);
  var import_is_regex = __toESM(require_is_regex()), import_is_function = __toESM(require_is_function()), import_is_symbol = __toESM(require_is_symbol());
  function isObject(e) {
    return e != null && typeof e == "object" && Array.isArray(e) === !1;
  }
  s(isObject, "isObject");
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global, freeGlobal_default = freeGlobal, freeSelf = typeof self ==
  "object" && self && self.Object === Object && self, root2 = freeGlobal_default || freeSelf || Function("return this")(), root_default = root2,
  Symbol2 = root_default.Symbol, Symbol_default = Symbol2, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.
  toString, symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
  function getRawTag(e) {
    var t = hasOwnProperty.call(e, symToStringTag), r = e[symToStringTag];
    try {
      e[symToStringTag] = void 0;
      var i = !0;
    } catch {
    }
    var n = nativeObjectToString.call(e);
    return i && (t ? e[symToStringTag] = r : delete e[symToStringTag]), n;
  }
  s(getRawTag, "getRawTag");
  var getRawTag_default = getRawTag, objectProto2 = Object.prototype, nativeObjectToString2 = objectProto2.toString;
  function objectToString(e) {
    return nativeObjectToString2.call(e);
  }
  s(objectToString, "objectToString");
  var objectToString_default = objectToString, nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2 = Symbol_default ?
  Symbol_default.toStringTag : void 0;
  function baseGetTag(e) {
    return e == null ? e === void 0 ? undefinedTag : nullTag : symToStringTag2 && symToStringTag2 in Object(e) ? getRawTag_default(e) : objectToString_default(
    e);
  }
  s(baseGetTag, "baseGetTag");
  var baseGetTag_default = baseGetTag;
  function isObjectLike(e) {
    return e != null && typeof e == "object";
  }
  s(isObjectLike, "isObjectLike");
  var isObjectLike_default = isObjectLike, symbolTag = "[object Symbol]";
  function isSymbol(e) {
    return typeof e == "symbol" || isObjectLike_default(e) && baseGetTag_default(e) == symbolTag;
  }
  s(isSymbol, "isSymbol");
  var isSymbol_default = isSymbol;
  function arrayMap(e, t) {
    for (var r = -1, i = e == null ? 0 : e.length, n = Array(i); ++r < i; )
      n[r] = t(e[r], r, e);
    return n;
  }
  s(arrayMap, "arrayMap");
  var arrayMap_default = arrayMap, isArray = Array.isArray, isArray_default = isArray, INFINITY = 1 / 0, symbolProto = Symbol_default ? Symbol_default.
  prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
  function baseToString(e) {
    if (typeof e == "string")
      return e;
    if (isArray_default(e))
      return arrayMap_default(e, baseToString) + "";
    if (isSymbol_default(e))
      return symbolToString ? symbolToString.call(e) : "";
    var t = e + "";
    return t == "0" && 1 / e == -INFINITY ? "-0" : t;
  }
  s(baseToString, "baseToString");
  var baseToString_default = baseToString;
  function isObject2(e) {
    var t = typeof e;
    return e != null && (t == "object" || t == "function");
  }
  s(isObject2, "isObject2");
  var isObject_default = isObject2, asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]",
  proxyTag = "[object Proxy]";
  function isFunction(e) {
    if (!isObject_default(e))
      return !1;
    var t = baseGetTag_default(e);
    return t == funcTag || t == genTag || t == asyncTag || t == proxyTag;
  }
  s(isFunction, "isFunction");
  var isFunction_default = isFunction, coreJsData = root_default["__core-js_shared__"], coreJsData_default = coreJsData, maskSrcKey = function() {
    var e = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
    return e ? "Symbol(src)_1." + e : "";
  }();
  function isMasked(e) {
    return !!maskSrcKey && maskSrcKey in e;
  }
  s(isMasked, "isMasked");
  var isMasked_default = isMasked, funcProto = Function.prototype, funcToString = funcProto.toString;
  function toSource(e) {
    if (e != null) {
      try {
        return funcToString.call(e);
      } catch {
      }
      try {
        return e + "";
      } catch {
      }
    }
    return "";
  }
  s(toSource, "toSource");
  var toSource_default = toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto2 = Function.
  prototype, objectProto3 = Object.prototype, funcToString2 = funcProto2.toString, hasOwnProperty2 = objectProto3.hasOwnProperty, reIsNative = RegExp(
    "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
    "$1.*?") + "$"
  );
  function baseIsNative(e) {
    if (!isObject_default(e) || isMasked_default(e))
      return !1;
    var t = isFunction_default(e) ? reIsNative : reIsHostCtor;
    return t.test(toSource_default(e));
  }
  s(baseIsNative, "baseIsNative");
  var baseIsNative_default = baseIsNative;
  function getValue(e, t) {
    return e?.[t];
  }
  s(getValue, "getValue");
  var getValue_default = getValue;
  function getNative(e, t) {
    var r = getValue_default(e, t);
    return baseIsNative_default(r) ? r : void 0;
  }
  s(getNative, "getNative");
  var getNative_default = getNative;
  function eq(e, t) {
    return e === t || e !== e && t !== t;
  }
  s(eq, "eq");
  var eq_default = eq, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
  function isKey(e, t) {
    if (isArray_default(e))
      return !1;
    var r = typeof e;
    return r == "number" || r == "symbol" || r == "boolean" || e == null || isSymbol_default(e) ? !0 : reIsPlainProp.test(e) || !reIsDeepProp.
    test(e) || t != null && e in Object(t);
  }
  s(isKey, "isKey");
  var isKey_default = isKey, nativeCreate = getNative_default(Object, "create"), nativeCreate_default = nativeCreate;
  function hashClear() {
    this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}, this.size = 0;
  }
  s(hashClear, "hashClear");
  var hashClear_default = hashClear;
  function hashDelete(e) {
    var t = this.has(e) && delete this.__data__[e];
    return this.size -= t ? 1 : 0, t;
  }
  s(hashDelete, "hashDelete");
  var hashDelete_default = hashDelete, HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto4 = Object.prototype, hasOwnProperty3 = objectProto4.
  hasOwnProperty;
  function hashGet(e) {
    var t = this.__data__;
    if (nativeCreate_default) {
      var r = t[e];
      return r === HASH_UNDEFINED ? void 0 : r;
    }
    return hasOwnProperty3.call(t, e) ? t[e] : void 0;
  }
  s(hashGet, "hashGet");
  var hashGet_default = hashGet, objectProto5 = Object.prototype, hasOwnProperty4 = objectProto5.hasOwnProperty;
  function hashHas(e) {
    var t = this.__data__;
    return nativeCreate_default ? t[e] !== void 0 : hasOwnProperty4.call(t, e);
  }
  s(hashHas, "hashHas");
  var hashHas_default = hashHas, HASH_UNDEFINED2 = "__lodash_hash_undefined__";
  function hashSet(e, t) {
    var r = this.__data__;
    return this.size += this.has(e) ? 0 : 1, r[e] = nativeCreate_default && t === void 0 ? HASH_UNDEFINED2 : t, this;
  }
  s(hashSet, "hashSet");
  var hashSet_default = hashSet;
  function Hash(e) {
    var t = -1, r = e == null ? 0 : e.length;
    for (this.clear(); ++t < r; ) {
      var i = e[t];
      this.set(i[0], i[1]);
    }
  }
  s(Hash, "Hash");
  Hash.prototype.clear = hashClear_default;
  Hash.prototype.delete = hashDelete_default;
  Hash.prototype.get = hashGet_default;
  Hash.prototype.has = hashHas_default;
  Hash.prototype.set = hashSet_default;
  var Hash_default = Hash;
  function listCacheClear() {
    this.__data__ = [], this.size = 0;
  }
  s(listCacheClear, "listCacheClear");
  var listCacheClear_default = listCacheClear;
  function assocIndexOf(e, t) {
    for (var r = e.length; r--; )
      if (eq_default(e[r][0], t))
        return r;
    return -1;
  }
  s(assocIndexOf, "assocIndexOf");
  var assocIndexOf_default = assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice;
  function listCacheDelete(e) {
    var t = this.__data__, r = assocIndexOf_default(t, e);
    if (r < 0)
      return !1;
    var i = t.length - 1;
    return r == i ? t.pop() : splice.call(t, r, 1), --this.size, !0;
  }
  s(listCacheDelete, "listCacheDelete");
  var listCacheDelete_default = listCacheDelete;
  function listCacheGet(e) {
    var t = this.__data__, r = assocIndexOf_default(t, e);
    return r < 0 ? void 0 : t[r][1];
  }
  s(listCacheGet, "listCacheGet");
  var listCacheGet_default = listCacheGet;
  function listCacheHas(e) {
    return assocIndexOf_default(this.__data__, e) > -1;
  }
  s(listCacheHas, "listCacheHas");
  var listCacheHas_default = listCacheHas;
  function listCacheSet(e, t) {
    var r = this.__data__, i = assocIndexOf_default(r, e);
    return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
  }
  s(listCacheSet, "listCacheSet");
  var listCacheSet_default = listCacheSet;
  function ListCache(e) {
    var t = -1, r = e == null ? 0 : e.length;
    for (this.clear(); ++t < r; ) {
      var i = e[t];
      this.set(i[0], i[1]);
    }
  }
  s(ListCache, "ListCache");
  ListCache.prototype.clear = listCacheClear_default;
  ListCache.prototype.delete = listCacheDelete_default;
  ListCache.prototype.get = listCacheGet_default;
  ListCache.prototype.has = listCacheHas_default;
  ListCache.prototype.set = listCacheSet_default;
  var ListCache_default = ListCache, Map2 = getNative_default(root_default, "Map"), Map_default = Map2;
  function mapCacheClear() {
    this.size = 0, this.__data__ = {
      hash: new Hash_default(),
      map: new (Map_default || ListCache_default)(),
      string: new Hash_default()
    };
  }
  s(mapCacheClear, "mapCacheClear");
  var mapCacheClear_default = mapCacheClear;
  function isKeyable(e) {
    var t = typeof e;
    return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
  }
  s(isKeyable, "isKeyable");
  var isKeyable_default = isKeyable;
  function getMapData(e, t) {
    var r = e.__data__;
    return isKeyable_default(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
  }
  s(getMapData, "getMapData");
  var getMapData_default = getMapData;
  function mapCacheDelete(e) {
    var t = getMapData_default(this, e).delete(e);
    return this.size -= t ? 1 : 0, t;
  }
  s(mapCacheDelete, "mapCacheDelete");
  var mapCacheDelete_default = mapCacheDelete;
  function mapCacheGet(e) {
    return getMapData_default(this, e).get(e);
  }
  s(mapCacheGet, "mapCacheGet");
  var mapCacheGet_default = mapCacheGet;
  function mapCacheHas(e) {
    return getMapData_default(this, e).has(e);
  }
  s(mapCacheHas, "mapCacheHas");
  var mapCacheHas_default = mapCacheHas;
  function mapCacheSet(e, t) {
    var r = getMapData_default(this, e), i = r.size;
    return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
  }
  s(mapCacheSet, "mapCacheSet");
  var mapCacheSet_default = mapCacheSet;
  function MapCache(e) {
    var t = -1, r = e == null ? 0 : e.length;
    for (this.clear(); ++t < r; ) {
      var i = e[t];
      this.set(i[0], i[1]);
    }
  }
  s(MapCache, "MapCache");
  MapCache.prototype.clear = mapCacheClear_default;
  MapCache.prototype.delete = mapCacheDelete_default;
  MapCache.prototype.get = mapCacheGet_default;
  MapCache.prototype.has = mapCacheHas_default;
  MapCache.prototype.set = mapCacheSet_default;
  var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
  function memoize(e, t) {
    if (typeof e != "function" || t != null && typeof t != "function")
      throw new TypeError(FUNC_ERROR_TEXT);
    var r = /* @__PURE__ */ s(function() {
      var i = arguments, n = t ? t.apply(this, i) : i[0], a = r.cache;
      if (a.has(n))
        return a.get(n);
      var u = e.apply(this, i);
      return r.cache = a.set(n, u) || a, u;
    }, "memoized");
    return r.cache = new (memoize.Cache || MapCache_default)(), r;
  }
  s(memoize, "memoize");
  memoize.Cache = MapCache_default;
  var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
  function memoizeCapped(e) {
    var t = memoize_default(e, function(i) {
      return r.size === MAX_MEMOIZE_SIZE && r.clear(), i;
    }), r = t.cache;
    return t;
  }
  s(memoizeCapped, "memoizeCapped");
  var memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
  reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped_default(function(e) {
    var t = [];
    return e.charCodeAt(0) === 46 && t.push(""), e.replace(rePropName, function(r, i, n, a) {
      t.push(n ? a.replace(reEscapeChar, "$1") : i || r);
    }), t;
  }), stringToPath_default = stringToPath;
  function toString(e) {
    return e == null ? "" : baseToString_default(e);
  }
  s(toString, "toString");
  var toString_default = toString;
  function castPath(e, t) {
    return isArray_default(e) ? e : isKey_default(e, t) ? [e] : stringToPath_default(toString_default(e));
  }
  s(castPath, "castPath");
  var castPath_default = castPath, INFINITY2 = 1 / 0;
  function toKey(e) {
    if (typeof e == "string" || isSymbol_default(e))
      return e;
    var t = e + "";
    return t == "0" && 1 / e == -INFINITY2 ? "-0" : t;
  }
  s(toKey, "toKey");
  var toKey_default = toKey;
  function baseGet(e, t) {
    t = castPath_default(t, e);
    for (var r = 0, i = t.length; e != null && r < i; )
      e = e[toKey_default(t[r++])];
    return r && r == i ? e : void 0;
  }
  s(baseGet, "baseGet");
  var baseGet_default = baseGet;
  function get(e, t, r) {
    var i = e == null ? void 0 : baseGet_default(e, t);
    return i === void 0 ? r : i;
  }
  s(get, "get");
  var get_default = get, import_memoizerific = __toESM(tS()), eventProperties = [
    "bubbles",
    "cancelBubble",
    "cancelable",
    "composed",
    "currentTarget",
    "defaultPrevented",
    "eventPhase",
    "isTrusted",
    "returnValue",
    "srcElement",
    "target",
    "timeStamp",
    "type"
  ], customEventSpecificProperties = ["detail"];
  function extractEventHiddenProperties(e) {
    let t = eventProperties.filter((r) => e[r] !== void 0).reduce((r, i) => ({ ...r, [i]: e[i] }), {});
    return e instanceof CustomEvent && customEventSpecificProperties.filter((r) => e[r] !== void 0).forEach((r) => {
      t[r] = e[r];
    }), t;
  }
  s(extractEventHiddenProperties, "extractEventHiddenProperties");
  var isObject3 = isObject, removeCodeComments = /* @__PURE__ */ s((e) => {
    let t = null, r = !1, i = !1, n = !1, a = "";
    if (e.indexOf("//") >= 0 || e.indexOf("/*") >= 0)
      for (let u = 0; u < e.length; u += 1)
        !t && !r && !i && !n ? e[u] === '"' || e[u] === "'" || e[u] === "`" ? t = e[u] : e[u] === "/" && e[u + 1] === "*" ? r = !0 : e[u] ===
        "/" && e[u + 1] === "/" ? i = !0 : e[u] === "/" && e[u + 1] !== "/" && (n = !0) : (t && (e[u] === t && e[u - 1] !== "\\" || e[u] ===
        `
` && t !== "`") && (t = null), n && (e[u] === "/" && e[u - 1] !== "\\" || e[u] === `
`) && (n = !1), r && e[u - 1] === "/" && e[u - 2] === "*" && (r = !1), i && e[u] === `
` && (i = !1)), !r && !i && (a += e[u]);
    else
      a = e;
    return a;
  }, "removeCodeComments"), cleanCode = (0, import_memoizerific.default)(1e4)(
    (e) => removeCodeComments(e).replace(/\n\s*/g, "").trim()
  ), convertShorthandMethods = /* @__PURE__ */ s(function(t, r) {
    let i = r.slice(0, r.indexOf("{")), n = r.slice(r.indexOf("{"));
    if (i.includes("=>") || i.includes("function"))
      return r;
    let a = i;
    return a = a.replace(t, "function"), a + n;
  }, "convertShorthandMethods2"), dateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, isJSON = /* @__PURE__ */ s((e) => e.match(
  /^[\[\{\"\}].*[\]\}\"]$/), "isJSON");
  function convertUnconventionalData(e) {
    if (!isObject3(e))
      return e;
    let t = e, r = !1;
    return typeof Event < "u" && e instanceof Event && (t = extractEventHiddenProperties(t), r = !0), t = Object.keys(t).reduce((i, n) => {
      try {
        t[n] && t[n].toJSON, i[n] = t[n];
      } catch {
        r = !0;
      }
      return i;
    }, {}), r ? t : e;
  }
  s(convertUnconventionalData, "convertUnconventionalData");
  var replacer = /* @__PURE__ */ s(function(t) {
    let r, i, n, a;
    return /* @__PURE__ */ s(function(o, l) {
      try {
        if (o === "")
          return a = [], r = /* @__PURE__ */ new Map([[l, "[]"]]), i = /* @__PURE__ */ new Map(), n = [], l;
        let c = i.get(this) || this;
        for (; n.length && c !== n[0]; )
          n.shift(), a.pop();
        if (typeof l == "boolean")
          return l;
        if (l === void 0)
          return t.allowUndefined ? "_undefined_" : void 0;
        if (l === null)
          return null;
        if (typeof l == "number")
          return l === -1 / 0 ? "_-Infinity_" : l === 1 / 0 ? "_Infinity_" : Number.isNaN(l) ? "_NaN_" : l;
        if (typeof l == "bigint")
          return `_bigint_${l.toString()}`;
        if (typeof l == "string")
          return dateFormat.test(l) ? t.allowDate ? `_date_${l}` : void 0 : l;
        if ((0, import_is_regex.default)(l))
          return t.allowRegExp ? `_regexp_${l.flags}|${l.source}` : void 0;
        if ((0, import_is_function.default)(l)) {
          if (!t.allowFunction)
            return;
          let { name: p } = l, d = l.toString();
          return d.match(
            /(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/
          ) ? `_function_${p}|${(() => {
          }).toString()}` : `_function_${p}|${cleanCode(convertShorthandMethods(o, d))}`;
        }
        if ((0, import_is_symbol.default)(l)) {
          if (!t.allowSymbol)
            return;
          let p = Symbol.keyFor(l);
          return p !== void 0 ? `_gsymbol_${p}` : `_symbol_${l.toString().slice(7, -1)}`;
        }
        if (n.length >= t.maxDepth)
          return Array.isArray(l) ? `[Array(${l.length})]` : "[Object]";
        if (l === this)
          return `_duplicate_${JSON.stringify(a)}`;
        if (l instanceof Error && t.allowError)
          return {
            __isConvertedError__: !0,
            errorProperties: {
              ...l.cause ? { cause: l.cause } : {},
              ...l,
              name: l.name,
              message: l.message,
              stack: l.stack,
              "_constructor-name_": l.constructor.name
            }
          };
        if (l.constructor && l.constructor.name && l.constructor.name !== "Object" && !Array.isArray(l) && !t.allowClass)
          return;
        let h = r.get(l);
        if (!h) {
          let p = Array.isArray(l) ? l : convertUnconventionalData(l);
          if (l.constructor && l.constructor.name && l.constructor.name !== "Object" && !Array.isArray(l) && t.allowClass)
            try {
              Object.assign(p, { "_constructor-name_": l.constructor.name });
            } catch {
            }
          return a.push(o), n.unshift(p), r.set(l, JSON.stringify(a)), l !== p && i.set(l, p), p;
        }
        return `_duplicate_${h}`;
      } catch {
        return;
      }
    }, "replace");
  }, "replacer2"), reviver2 = /* @__PURE__ */ s(function reviver(options) {
    let refs = [], root;
    return /* @__PURE__ */ s(function revive(key, value) {
      if (key === "" && (root = value, refs.forEach(({ target: e, container: t, replacement: r }) => {
        let i = isJSON(r) ? JSON.parse(r) : r.split(".");
        i.length === 0 ? t[e] = root : t[e] = get_default(root, i);
      })), key === "_constructor-name_")
        return value;
      if (isObject3(value) && value.__isConvertedError__) {
        let { message: e, ...t } = value.errorProperties, r = new Error(e);
        return Object.assign(r, t), r;
      }
      if (isObject3(value) && value["_constructor-name_"] && options.allowFunction) {
        let e = value["_constructor-name_"];
        if (e !== "Object") {
          let t = new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g, "")}(){}`)();
          Object.setPrototypeOf(value, new t());
        }
        return delete value["_constructor-name_"], value;
      }
      if (typeof value == "string" && value.startsWith("_function_") && options.allowFunction) {
        let [, name, source] = value.match(/_function_([^|]*)\|(.*)/) || [], sourceSanitized = source.replace(/[(\(\))|\\| |\]|`]*$/, "");
        if (!options.lazyEval)
          return eval(`(${sourceSanitized})`);
        let result = /* @__PURE__ */ s((...args) => {
          let f = eval(`(${sourceSanitized})`);
          return f(...args);
        }, "result");
        return Object.defineProperty(result, "toString", {
          value: /* @__PURE__ */ s(() => sourceSanitized, "value")
        }), Object.defineProperty(result, "name", {
          value: name
        }), result;
      }
      if (typeof value == "string" && value.startsWith("_regexp_") && options.allowRegExp) {
        let [, e, t] = value.match(/_regexp_([^|]*)\|(.*)/) || [];
        return new RegExp(t, e);
      }
      return typeof value == "string" && value.startsWith("_date_") && options.allowDate ? new Date(value.replace("_date_", "")) : typeof value ==
      "string" && value.startsWith("_duplicate_") ? (refs.push({ target: key, container: this, replacement: value.replace(/^_duplicate_/, "") }),
      null) : typeof value == "string" && value.startsWith("_symbol_") && options.allowSymbol ? Symbol(value.replace("_symbol_", "")) : typeof value ==
      "string" && value.startsWith("_gsymbol_") && options.allowSymbol ? Symbol.for(value.replace("_gsymbol_", "")) : typeof value == "strin\
g" && value === "_-Infinity_" ? -1 / 0 : typeof value == "string" && value === "_Infinity_" ? 1 / 0 : typeof value == "string" && value === "\
_NaN_" ? NaN : typeof value == "string" && value.startsWith("_bigint_") && typeof BigInt == "function" ? BigInt(value.replace("_bigint_", "")) :
      value;
    }, "revive");
  }, "reviver"), defaultOptions = {
    maxDepth: 10,
    space: void 0,
    allowFunction: !0,
    allowRegExp: !0,
    allowDate: !0,
    allowClass: !0,
    allowError: !0,
    allowUndefined: !0,
    allowSymbol: !0,
    lazyEval: !0
  }, stringify = /* @__PURE__ */ s((e, t = {}) => {
    let r = { ...defaultOptions, ...t };
    return JSON.stringify(convertUnconventionalData(e), replacer(r), t.space);
  }, "stringify"), mutator = /* @__PURE__ */ s(() => {
    let e = /* @__PURE__ */ new Map();
    return /* @__PURE__ */ s(function t(r) {
      isObject3(r) && Object.entries(r).forEach(([i, n]) => {
        n === "_undefined_" ? r[i] = void 0 : e.get(n) || (e.set(n, !0), t(n));
      }), Array.isArray(r) && r.forEach((i, n) => {
        i === "_undefined_" ? (e.set(i, !0), r[n] = void 0) : e.get(i) || (e.set(i, !0), t(i));
      });
    }, "mutateUndefined");
  }, "mutator"), parse = /* @__PURE__ */ s((e, t = {}) => {
    let r = { ...defaultOptions, ...t }, i = JSON.parse(e, reviver2(r));
    return mutator()(i), i;
  }, "parse");
});

// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-base.js
var hm = B((Sse, iS) => {
  "use strict";
  var cz = H("events"), hz = 0, cm = class extends cz {
    static {
      s(this, "TrackerBase");
    }
    constructor(t) {
      super(), this.id = ++hz, this.name = t;
    }
  };
  iS.exports = cm;
});

// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker.js
var $o = B((kse, nS) => {
  "use strict";
  var pz = hm(), pm = class extends pz {
    static {
      s(this, "Tracker");
    }
    constructor(t, r) {
      super(t), this.workDone = 0, this.workTodo = r || 0;
    }
    completed() {
      return this.workTodo === 0 ? 0 : this.workDone / this.workTodo;
    }
    addWork(t) {
      this.workTodo += t, this.emit("change", this.name, this.completed(), this);
    }
    completeWork(t) {
      this.workDone += t, this.workDone > this.workTodo && (this.workDone = this.workTodo), this.emit("change", this.name, this.completed(),
      this);
    }
    finish() {
      this.workTodo = this.workDone = 1, this.emit("change", this.name, 1, this);
    }
  };
  nS.exports = pm;
});

// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-stream.js
var dm = B((Bse, sS) => {
  "use strict";
  var fz = H("stream"), dz = $o(), fm = class extends fz.Transform {
    static {
      s(this, "TrackerStream");
    }
    constructor(t, r, i) {
      super(i), this.tracker = new dz(t, r), this.name = t, this.id = this.tracker.id, this.tracker.on("change", this.trackerChange.bind(this));
    }
    trackerChange(t, r) {
      this.emit("change", t, r, this);
    }
    _transform(t, r, i) {
      this.tracker.completeWork(t.length ? t.length : 1), this.push(t), i();
    }
    _flush(t) {
      this.tracker.finish(), t();
    }
    completed() {
      return this.tracker.completed();
    }
    addWork(t) {
      return this.tracker.addWork(t);
    }
    finish() {
      return this.tracker.finish();
    }
  };
  sS.exports = fm;
});

// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-group.js
var oS = B((Ise, uS) => {
  "use strict";
  var mz = hm(), aS = $o(), gz = dm(), mm = class e extends mz {
    static {
      s(this, "TrackerGroup");
    }
    parentGroup = null;
    trackers = [];
    completion = {};
    weight = {};
    totalWeight = 0;
    finished = !1;
    bubbleChange = Dz(this);
    nameInTree() {
      for (var t = [], r = this; r; )
        t.unshift(r.name), r = r.parentGroup;
      return t.join("/");
    }
    addUnit(t, r) {
      if (t.addUnit) {
        for (var i = this; i; ) {
          if (t === i)
            throw new Error(
              "Attempted to add tracker group " + t.name + " to tree that already includes it " + this.nameInTree(this)
            );
          i = i.parentGroup;
        }
        t.parentGroup = this;
      }
      return this.weight[t.id] = r || 1, this.totalWeight += this.weight[t.id], this.trackers.push(t), this.completion[t.id] = t.completed(),
      t.on("change", this.bubbleChange), this.finished || this.emit("change", t.name, this.completion[t.id], t), t;
    }
    completed() {
      if (this.trackers.length === 0)
        return 0;
      for (var t = 1 / this.totalWeight, r = 0, i = 0; i < this.trackers.length; i++) {
        var n = this.trackers[i].id;
        r += t * this.weight[n] * this.completion[n];
      }
      return r;
    }
    newGroup(t, r) {
      return this.addUnit(new e(t), r);
    }
    newItem(t, r, i) {
      return this.addUnit(new aS(t, r), i);
    }
    newStream(t, r, i) {
      return this.addUnit(new gz(t, r), i);
    }
    finish() {
      this.finished = !0, this.trackers.length || this.addUnit(new aS(), 1, !0);
      for (var t = 0; t < this.trackers.length; t++) {
        var r = this.trackers[t];
        r.finish(), r.removeListener("change", this.bubbleChange);
      }
      this.emit("change", this.name, 1, this);
    }
    debug(t = 0) {
      let r = " ".repeat(t), i = `${r}${this.name || "top"}: ${this.completed()}
`;
      return this.trackers.forEach(function(n) {
        i += n instanceof e ? n.debug(t + 1) : `${r} ${n.name}: ${n.completed()}
`;
      }), i;
    }
  };
  function Dz(e) {
    return function(t, r, i) {
      e.completion[i.id] = r, !e.finished && e.emit("change", t || e.name, e.completed(), e);
    };
  }
  s(Dz, "bubbleChange");
  uS.exports = mm;
});

// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/index.js
var lS = B((Vo) => {
  "use strict";
  Vo.TrackerGroup = oS();
  Vo.Tracker = $o();
  Vo.TrackerStream = dm();
});

// ../node_modules/console-control-strings/index.js
var Uo = B((mt) => {
  "use strict";
  var Mt = "\x1B[";
  mt.up = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "A";
  }, "up");
  mt.down = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "B";
  }, "down");
  mt.forward = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "C";
  }, "forward");
  mt.back = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "D";
  }, "back");
  mt.nextLine = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "E";
  }, "nextLine");
  mt.previousLine = /* @__PURE__ */ s(function(t) {
    return Mt + (t || "") + "F";
  }, "previousLine");
  mt.horizontalAbsolute = /* @__PURE__ */ s(function(t) {
    if (t == null) throw new Error("horizontalAboslute requires a column to position to");
    return Mt + t + "G";
  }, "horizontalAbsolute");
  mt.eraseData = /* @__PURE__ */ s(function() {
    return Mt + "J";
  }, "eraseData");
  mt.eraseLine = /* @__PURE__ */ s(function() {
    return Mt + "K";
  }, "eraseLine");
  mt.goto = function(e, t) {
    return Mt + t + ";" + e + "H";
  };
  mt.gotoSOL = function() {
    return "\r";
  };
  mt.beep = function() {
    return "\x07";
  };
  mt.hideCursor = /* @__PURE__ */ s(function() {
    return Mt + "?25l";
  }, "hideCursor");
  mt.showCursor = /* @__PURE__ */ s(function() {
    return Mt + "?25h";
  }, "showCursor");
  var cS = {
    reset: 0,
    // styles
    bold: 1,
    italic: 3,
    underline: 4,
    inverse: 7,
    // resets
    stopBold: 22,
    stopItalic: 23,
    stopUnderline: 24,
    stopInverse: 27,
    // colors
    white: 37,
    black: 30,
    blue: 34,
    cyan: 36,
    green: 32,
    magenta: 35,
    red: 31,
    yellow: 33,
    bgWhite: 47,
    bgBlack: 40,
    bgBlue: 44,
    bgCyan: 46,
    bgGreen: 42,
    bgMagenta: 45,
    bgRed: 41,
    bgYellow: 43,
    grey: 90,
    brightBlack: 90,
    brightRed: 91,
    brightGreen: 92,
    brightYellow: 93,
    brightBlue: 94,
    brightMagenta: 95,
    brightCyan: 96,
    brightWhite: 97,
    bgGrey: 100,
    bgBrightBlack: 100,
    bgBrightRed: 101,
    bgBrightGreen: 102,
    bgBrightYellow: 103,
    bgBrightBlue: 104,
    bgBrightMagenta: 105,
    bgBrightCyan: 106,
    bgBrightWhite: 107
  };
  mt.color = /* @__PURE__ */ s(function(t) {
    return (arguments.length !== 1 || !Array.isArray(t)) && (t = Array.prototype.slice.call(arguments)), Mt + t.map(yz).join(";") + "m";
  }, "color");
  function yz(e) {
    if (cS[e] != null) return cS[e];
    throw new Error("Unknown color or style name: " + e);
  }
  s(yz, "colorNameToCode");
});

// ../node_modules/string-width/node_modules/ansi-regex/index.js
var pS = B((Mse, hS) => {
  "use strict";
  hS.exports = ({ onlyFirst: e = !1 } = {}) => {
    let t = [
      "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
      "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
    ].join("|");
    return new RegExp(t, e ? void 0 : "g");
  };
});

// ../node_modules/string-width/node_modules/strip-ansi/index.js
var dS = B((jse, fS) => {
  "use strict";
  var xz = pS();
  fS.exports = (e) => typeof e == "string" ? e.replace(xz(), "") : e;
});

// ../node_modules/is-fullwidth-code-point/index.js
var gS = B((qse, gm) => {
  "use strict";
  var mS = /* @__PURE__ */ s((e) => Number.isNaN(e) ? !1 : e >= 4352 && (e <= 4447 || // Hangul Jamo
  e === 9001 || // LEFT-POINTING ANGLE BRACKET
  e === 9002 || // RIGHT-POINTING ANGLE BRACKET
  // CJK Radicals Supplement .. Enclosed CJK Letters and Months
  11904 <= e && e <= 12871 && e !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
  12880 <= e && e <= 19903 || // CJK Unified Ideographs .. Yi Radicals
  19968 <= e && e <= 42182 || // Hangul Jamo Extended-A
  43360 <= e && e <= 43388 || // Hangul Syllables
  44032 <= e && e <= 55203 || // CJK Compatibility Ideographs
  63744 <= e && e <= 64255 || // Vertical Forms
  65040 <= e && e <= 65049 || // CJK Compatibility Forms .. Small Form Variants
  65072 <= e && e <= 65131 || // Halfwidth and Fullwidth Forms
  65281 <= e && e <= 65376 || 65504 <= e && e <= 65510 || // Kana Supplement
  110592 <= e && e <= 110593 || // Enclosed Ideographic Supplement
  127488 <= e && e <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
  131072 <= e && e <= 262141), "isFullwidthCodePoint");
  gm.exports = mS;
  gm.exports.default = mS;
});

// ../node_modules/string-width/node_modules/emoji-regex/index.js
var yS = B((Vse, DS) => {
  "use strict";
  DS.exports = function() {
    return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
  };
});

// ../node_modules/string-width/index.js
var un = B((Use, Dm) => {
  "use strict";
  var Ez = dS(), bz = gS(), vz = yS(), xS = /* @__PURE__ */ s((e) => {
    if (typeof e != "string" || e.length === 0 || (e = Ez(e), e.length === 0))
      return 0;
    e = e.replace(vz(), "  ");
    let t = 0;
    for (let r = 0; r < e.length; r++) {
      let i = e.codePointAt(r);
      i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879 || (i > 65535 && r++, t += bz(i) ? 2 : 1);
    }
    return t;
  }, "stringWidth");
  Dm.exports = xS;
  Dm.exports.default = xS;
});

// ../node_modules/wide-align/align.js
var ES = B((Ho) => {
  "use strict";
  var ym = un();
  Ho.center = Az;
  Ho.left = Cz;
  Ho.right = wz;
  function zo(e) {
    var t = "", r = " ", i = e;
    do
      i % 2 && (t += r), i = Math.floor(i / 2), r += r;
    while (i);
    return t;
  }
  s(zo, "createPadding");
  function Cz(e, t) {
    var r = e.trimRight();
    if (r.length === 0 && e.length >= t) return e;
    var i = "", n = ym(r);
    return n < t && (i = zo(t - n)), r + i;
  }
  s(Cz, "alignLeft");
  function wz(e, t) {
    var r = e.trimLeft();
    if (r.length === 0 && e.length >= t) return e;
    var i = "", n = ym(r);
    return n < t && (i = zo(t - n)), i + r;
  }
  s(wz, "alignRight");
  function Az(e, t) {
    var r = e.trim();
    if (r.length === 0 && e.length >= t) return e;
    var i = "", n = "", a = ym(r);
    if (a < t) {
      var u = parseInt((t - a) / 2, 10);
      i = zo(u), n = zo(t - (a + u));
    }
    return i + r + n;
  }
  s(Az, "alignCenter");
});

// ../node_modules/aproba/index.js
var Jo = B((Jse, AS) => {
  "use strict";
  AS.exports = CS;
  function Fz(e) {
    return e != null && typeof e == "object" && e.hasOwnProperty("callee");
  }
  s(Fz, "isArguments");
  var $r = {
    "*": { label: "any", check: /* @__PURE__ */ s(() => !0, "check") },
    A: { label: "array", check: /* @__PURE__ */ s((e) => Array.isArray(e) || Fz(e), "check") },
    S: { label: "string", check: /* @__PURE__ */ s((e) => typeof e == "string", "check") },
    N: { label: "number", check: /* @__PURE__ */ s((e) => typeof e == "number", "check") },
    F: { label: "function", check: /* @__PURE__ */ s((e) => typeof e == "function", "check") },
    O: { label: "object", check: /* @__PURE__ */ s((e) => typeof e == "object" && e != null && !$r.A.check(e) && !$r.E.check(e), "check") },
    B: { label: "boolean", check: /* @__PURE__ */ s((e) => typeof e == "boolean", "check") },
    E: { label: "error", check: /* @__PURE__ */ s((e) => e instanceof Error, "check") },
    Z: { label: "null", check: /* @__PURE__ */ s((e) => e == null, "check") }
  };
  function Wo(e, t) {
    let r = t[e.length] = t[e.length] || [];
    r.indexOf(e) === -1 && r.push(e);
  }
  s(Wo, "addSchema");
  function CS(e, t) {
    if (arguments.length !== 2) throw vS(["SA"], arguments.length);
    if (!e) throw bS(0, "rawSchemas");
    if (!t) throw bS(1, "args");
    if (!$r.S.check(e)) throw xm(0, ["string"], e);
    if (!$r.A.check(t)) throw xm(1, ["array"], t);
    let r = e.split("|"), i = {};
    r.forEach((a) => {
      for (let u = 0; u < a.length; ++u) {
        let o = a[u];
        if (!$r[o]) throw Sz(u, o);
      }
      if (/E.*E/.test(a)) throw _z(a);
      Wo(a, i), /E/.test(a) && (Wo(a.replace(/E.*$/, "E"), i), Wo(a.replace(/E/, "Z"), i), a.length === 1 && Wo("", i));
    });
    let n = i[t.length];
    if (!n)
      throw vS(Object.keys(i), t.length);
    for (let a = 0; a < t.length; ++a) {
      let u = n.filter((o) => {
        let l = o[a], c = $r[l].check;
        return c(t[a]);
      });
      if (!u.length) {
        let o = n.map((l) => $r[l[a]].label).filter((l) => l != null);
        throw xm(a, o, t[a]);
      }
      n = u;
    }
  }
  s(CS, "validate");
  function bS(e) {
    return ba("EMISSINGARG", "Missing required argument #" + (e + 1));
  }
  s(bS, "missingRequiredArg");
  function Sz(e, t) {
    return ba("EUNKNOWNTYPE", "Unknown type " + t + " in argument #" + (e + 1));
  }
  s(Sz, "unknownType");
  function xm(e, t, r) {
    let i;
    return Object.keys($r).forEach((n) => {
      $r[n].check(r) && (i = $r[n].label);
    }), ba("EINVALIDTYPE", "Argument #" + (e + 1) + ": Expected " + wS(t) + " but got " + i);
  }
  s(xm, "invalidType");
  function wS(e) {
    return e.join(", ").replace(/, ([^,]+)$/, " or $1");
  }
  s(wS, "englishList");
  function vS(e, t) {
    let r = wS(e), i = e.every((n) => n.length === 1) ? "argument" : "arguments";
    return ba("EWRONGARGCOUNT", "Expected " + r + " " + i + " but got " + t);
  }
  s(vS, "wrongNumberOfArgs");
  function _z(e) {
    return ba(
      "ETOOMANYERRORTYPES",
      'Only one error type per argument signature is allowed, more than one found in "' + e + '"'
    );
  }
  s(_z, "moreThanOneError");
  function ba(e, t) {
    let r = new Error(t);
    return r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, CS), r;
  }
  s(ba, "newException");
});

// ../node_modules/npmlog/node_modules/ansi-regex/index.js
var SS = B((Xse, FS) => {
  "use strict";
  FS.exports = ({ onlyFirst: e = !1 } = {}) => {
    let t = [
      "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
      "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
    ].join("|");
    return new RegExp(t, e ? void 0 : "g");
  };
});

// ../node_modules/npmlog/node_modules/strip-ansi/index.js
var kS = B((Yse, _S) => {
  "use strict";
  var kz = SS();
  _S.exports = (e) => typeof e == "string" ? e.replace(kz(), "") : e;
});

// ../node_modules/npmlog/node_modules/gauge/lib/wide-truncate.js
var bm = B((Kse, TS) => {
  "use strict";
  var Em = un(), Tz = kS();
  TS.exports = Bz;
  function Bz(e, t) {
    if (Em(e) === 0)
      return e;
    if (t <= 0)
      return "";
    if (Em(e) <= t)
      return e;
    for (var r = Tz(e), i = e.length + r.length, n = e.slice(0, t + i); Em(n) > t; )
      n = n.slice(0, -1);
    return n;
  }
  s(Bz, "wideTruncate");
});

// ../node_modules/npmlog/node_modules/gauge/lib/error.js
var BS = B((Go) => {
  "use strict";
  var Pz = H("util"), Iz = Go.User = /* @__PURE__ */ s(function e(t) {
    var r = new Error(t);
    return Error.captureStackTrace(r, e), r.code = "EGAUGE", r;
  }, "User");
  Go.MissingTemplateValue = /* @__PURE__ */ s(function e(t, r) {
    var i = new Iz(Pz.format('Missing template value "%s"', t.type));
    return Error.captureStackTrace(i, e), i.template = t, i.values = r, i;
  }, "MissingTemplateValue");
  Go.Internal = /* @__PURE__ */ s(function e(t) {
    var r = new Error(t);
    return Error.captureStackTrace(r, e), r.code = "EGAUGEINTERNAL", r;
  }, "Internal");
});

// ../node_modules/npmlog/node_modules/gauge/lib/template-item.js
var IS = B((tae, PS) => {
  "use strict";
  var Oz = un();
  PS.exports = ns;
  function vm(e) {
    return typeof e != "string" ? !1 : e.slice(-1) === "%";
  }
  s(vm, "isPercent");
  function Cm(e) {
    return Number(e.slice(0, -1)) / 100;
  }
  s(Cm, "percent");
  function ns(e, t) {
    if (this.overallOutputLength = t, this.finished = !1, this.type = null, this.value = null, this.length = null, this.maxLength = null, this.
    minLength = null, this.kerning = null, this.align = "left", this.padLeft = 0, this.padRight = 0, this.index = null, this.first = null, this.
    last = null, typeof e == "string")
      this.value = e;
    else
      for (var r in e)
        this[r] = e[r];
    return vm(this.length) && (this.length = Math.round(this.overallOutputLength * Cm(this.length))), vm(this.minLength) && (this.minLength =
    Math.round(this.overallOutputLength * Cm(this.minLength))), vm(this.maxLength) && (this.maxLength = Math.round(this.overallOutputLength *
    Cm(this.maxLength))), this;
  }
  s(ns, "TemplateItem");
  ns.prototype = {};
  ns.prototype.getBaseLength = function() {
    var e = this.length;
    return e == null && typeof this.value == "string" && this.maxLength == null && this.minLength == null && (e = Oz(this.value)), e;
  };
  ns.prototype.getLength = function() {
    var e = this.getBaseLength();
    return e == null ? null : e + this.padLeft + this.padRight;
  };
  ns.prototype.getMaxLength = function() {
    return this.maxLength == null ? null : this.maxLength + this.padLeft + this.padRight;
  };
  ns.prototype.getMinLength = function() {
    return this.minLength == null ? null : this.minLength + this.padLeft + this.padRight;
  };
});

// ../node_modules/npmlog/node_modules/gauge/lib/render-template.js
var wm = B((iae, LS) => {
  "use strict";
  var va = ES(), Rz = Jo(), OS = bm(), ss = BS(), Nz = IS();
  function Lz(e) {
    return function(t) {
      return Uz(t, e);
    };
  }
  s(Lz, "renderValueWithValues");
  var Mz = LS.exports = function(e, t, r) {
    var i = $z(e, t, r), n = i.map(Lz(r)).join("");
    return va.left(OS(n, e), e);
  };
  function RS(e) {
    var t = e.type[0].toUpperCase() + e.type.slice(1);
    return "pre" + t;
  }
  s(RS, "preType");
  function NS(e) {
    var t = e.type[0].toUpperCase() + e.type.slice(1);
    return "post" + t;
  }
  s(NS, "postType");
  function jz(e, t) {
    if (e.type)
      return t[RS(e)] || t[NS(e)];
  }
  s(jz, "hasPreOrPost");
  function qz(e, t) {
    var r = Object.assign({}, e), i = Object.create(t), n = [], a = RS(r), u = NS(r);
    return i[a] && (n.push({ value: i[a] }), i[a] = null), r.minLength = null, r.length = null, r.maxLength = null, n.push(r), i[r.type] = i[r.
    type], i[u] && (n.push({ value: i[u] }), i[u] = null), function(o, l, c) {
      return Mz(c, n, i);
    };
  }
  s(qz, "generatePreAndPost");
  function $z(e, t, r) {
    function i(d, m, g) {
      var D = new Nz(d, e), v = D.type;
      if (D.value == null)
        if (v in r)
          D.value = r[v];
        else {
          if (D.default == null)
            throw new ss.MissingTemplateValue(D, r);
          D.value = D.default;
        }
      return D.value == null || D.value === "" ? null : (D.index = m, D.first = m === 0, D.last = m === g.length - 1, jz(D, r) && (D.value =
      qz(D, r)), D);
    }
    s(i, "cloneAndObjectify");
    var n = t.map(i).filter(function(d) {
      return d != null;
    }), a = e, u = n.length;
    function o(d) {
      d > a && (d = a), a -= d;
    }
    s(o, "consumeSpace");
    function l(d, m) {
      if (d.finished)
        throw new ss.Internal("Tried to finish template item that was already finished");
      if (m === 1 / 0)
        throw new ss.Internal("Length of template item cannot be infinity");
      if (m != null && (d.length = m), d.minLength = null, d.maxLength = null, --u, d.finished = !0, d.length == null && (d.length = d.getBaseLength()),
      d.length == null)
        throw new ss.Internal("Finished template items must have a length");
      o(d.getLength());
    }
    s(l, "finishSizing"), n.forEach(function(d) {
      if (d.kerning) {
        var m = d.first ? 0 : n[d.index - 1].padRight;
        !d.first && m < d.kerning && (d.padLeft = d.kerning - m), d.last || (d.padRight = d.kerning);
      }
    }), n.forEach(function(d) {
      d.getBaseLength() != null && l(d);
    });
    var c = 0, h, p;
    do
      h = !1, p = Math.round(a / u), n.forEach(function(d) {
        d.finished || d.maxLength && d.getMaxLength() < p && (l(d, d.maxLength), h = !0);
      });
    while (h && c++ < n.length);
    if (h)
      throw new ss.Internal("Resize loop iterated too many times while determining maxLength");
    c = 0;
    do
      h = !1, p = Math.round(a / u), n.forEach(function(d) {
        d.finished || d.minLength && d.getMinLength() >= p && (l(d, d.minLength), h = !0);
      });
    while (h && c++ < n.length);
    if (h)
      throw new ss.Internal("Resize loop iterated too many times while determining minLength");
    return p = Math.round(a / u), n.forEach(function(d) {
      d.finished || l(d, p);
    }), n;
  }
  s($z, "prepareItems");
  function Vz(e, t, r) {
    return Rz("OON", arguments), e.type ? e.value(t, t[e.type + "Theme"] || {}, r) : e.value(t, {}, r);
  }
  s(Vz, "renderFunction");
  function Uz(e, t) {
    var r = e.getBaseLength(), i = typeof e.value == "function" ? Vz(e, t, r) : e.value;
    if (i == null || i === "")
      return "";
    var n = va[e.align] || va.left, a = e.padLeft ? va.left("", e.padLeft) : "", u = e.padRight ? va.right("", e.padRight) : "", o = OS(String(
    i), r), l = n(o, r);
    return a + l + u;
  }
  s(Uz, "renderValue");
});

// ../node_modules/npmlog/node_modules/gauge/lib/plumbing.js
var jS = B((sae, MS) => {
  "use strict";
  var on = Uo(), zz = wm(), Xo = Jo(), Li = MS.exports = function(e, t, r) {
    r || (r = 80), Xo("OAN", [e, t, r]), this.showing = !1, this.theme = e, this.width = r, this.template = t;
  };
  Li.prototype = {};
  Li.prototype.setTheme = function(e) {
    Xo("O", [e]), this.theme = e;
  };
  Li.prototype.setTemplate = function(e) {
    Xo("A", [e]), this.template = e;
  };
  Li.prototype.setWidth = function(e) {
    Xo("N", [e]), this.width = e;
  };
  Li.prototype.hide = function() {
    return on.gotoSOL() + on.eraseLine();
  };
  Li.prototype.hideCursor = on.hideCursor;
  Li.prototype.showCursor = on.showCursor;
  Li.prototype.show = function(e) {
    var t = Object.create(this.theme);
    for (var r in e)
      t[r] = e[r];
    return zz(this.width, this.template, t).trim() + on.color("reset") + on.eraseLine() + on.gotoSOL();
  };
});

// ../node_modules/has-unicode/index.js
var $S = B((uae, qS) => {
  "use strict";
  var Hz = H("os"), aae = qS.exports = function() {
    if (Hz.type() == "Windows_NT")
      return !1;
    var e = /UTF-?8$/i, t = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG;
    return e.test(t);
  };
});

// ../node_modules/color-support/index.js
var zS = B((oae, US) => {
  US.exports = VS({ alwaysReturn: !0 }, VS);
  function as(e, t) {
    return e.level = 0, e.hasBasic = !1, e.has256 = !1, e.has16m = !1, t.alwaysReturn ? e : !1;
  }
  s(as, "hasNone");
  function Yo(e) {
    return e.hasBasic = !0, e.has256 = !1, e.has16m = !1, e.level = 1, e;
  }
  s(Yo, "hasBasic");
  function us(e) {
    return e.hasBasic = !0, e.has256 = !0, e.has16m = !1, e.level = 2, e;
  }
  s(us, "has256");
  function Ko(e) {
    return e.hasBasic = !0, e.has256 = !0, e.has16m = !0, e.level = 3, e;
  }
  s(Ko, "has16m");
  function VS(e, t) {
    if (e = e || {}, t = t || {}, typeof e.level == "number")
      switch (e.level) {
        case 0:
          return as(t, e);
        case 1:
          return Yo(t);
        case 2:
          return us(t);
        case 3:
          return Ko(t);
      }
    if (t.level = 0, t.hasBasic = !1, t.has256 = !1, t.has16m = !1, typeof process > "u" || !process || !process.stdout || !process.env || !process.
    platform)
      return as(t, e);
    var r = e.env || process.env, i = e.stream || process.stdout, n = e.term || r.TERM || "", a = e.platform || process.platform;
    if (!e.ignoreTTY && !i.isTTY || !e.ignoreDumb && n === "dumb" && !r.COLORTERM)
      return as(t, e);
    if (a === "win32")
      return Yo(t);
    if (r.TMUX)
      return us(t);
    if (!e.ignoreCI && (r.CI || r.TEAMCITY_VERSION))
      return r.TRAVIS ? us(t) : as(t, e);
    switch (r.TERM_PROGRAM) {
      case "iTerm.app":
        var u = r.TERM_PROGRAM_VERSION || "0.";
        return /^[0-2]\./.test(u) ? us(t) : Ko(t);
      case "HyperTerm":
      case "Hyper":
        return Ko(t);
      case "MacTerm":
        return Ko(t);
      case "Apple_Terminal":
        return us(t);
    }
    return /^xterm-256/.test(n) ? us(t) : /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(n) || r.COLORTERM ? Yo(t) : as(t, e);
  }
  s(VS, "colorSupport");
});

// ../node_modules/npmlog/node_modules/gauge/lib/has-color.js
var WS = B((cae, HS) => {
  "use strict";
  var Wz = zS();
  HS.exports = Wz().hasBasic;
});

// ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/signals.js
var Mi, JS = ut(() => {
  Mi = [];
  Mi.push("SIGHUP", "SIGINT", "SIGTERM");
  process.platform !== "win32" && Mi.push(
    "SIGALRM",
    "SIGABRT",
    "SIGVTALRM",
    "SIGXCPU",
    "SIGXFSZ",
    "SIGUSR2",
    "SIGTRAP",
    "SIGSYS",
    "SIGQUIT",
    "SIGIOT"
    // should detect profiler and enable/disable accordingly.
    // see #21
    // 'SIGPROF'
  );
  process.platform === "linux" && Mi.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
});

// ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/index.js
var GS = {};
di(GS, {
  load: () => Yz,
  onExit: () => Xz,
  signals: () => Mi,
  unload: () => Kz
});
var Qo, Am, Fm, Jz, Sm, Zo, Gz, _m, km, Tm, Xz, Yz, Kz, XS = ut(() => {
  JS();
  Qo = /* @__PURE__ */ s((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.
  reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "\
function", "processOk"), Am = Symbol.for("signal-exit emitter"), Fm = globalThis, Jz = Object.defineProperty.bind(Object), Sm = class {
    static {
      s(this, "Emitter");
    }
    emitted = {
      afterExit: !1,
      exit: !1
    };
    listeners = {
      afterExit: [],
      exit: []
    };
    count = 0;
    id = Math.random();
    constructor() {
      if (Fm[Am])
        return Fm[Am];
      Jz(Fm, Am, {
        value: this,
        writable: !1,
        enumerable: !1,
        configurable: !1
      });
    }
    on(t, r) {
      this.listeners[t].push(r);
    }
    removeListener(t, r) {
      let i = this.listeners[t], n = i.indexOf(r);
      n !== -1 && (n === 0 && i.length === 1 ? i.length = 0 : i.splice(n, 1));
    }
    emit(t, r, i) {
      if (this.emitted[t])
        return !1;
      this.emitted[t] = !0;
      let n = !1;
      for (let a of this.listeners[t])
        n = a(r, i) === !0 || n;
      return t === "exit" && (n = this.emit("afterExit", r, i) || n), n;
    }
  }, Zo = class {
    static {
      s(this, "SignalExitBase");
    }
  }, Gz = /* @__PURE__ */ s((e) => ({
    onExit(t, r) {
      return e.onExit(t, r);
    },
    load() {
      return e.load();
    },
    unload() {
      return e.unload();
    }
  }), "signalExitWrap"), _m = class extends Zo {
    static {
      s(this, "SignalExitFallback");
    }
    onExit() {
      return () => {
      };
    }
    load() {
    }
    unload() {
    }
  }, km = class extends Zo {
    static {
      s(this, "SignalExit");
    }
    // "SIGHUP" throws an `ENOSYS` error on Windows,
    // so use a supported signal instead
    /* c8 ignore start */
    #t = Tm.platform === "win32" ? "SIGINT" : "SIGHUP";
    /* c8 ignore stop */
    #r = new Sm();
    #e;
    #i;
    #a;
    #s = {};
    #n = !1;
    constructor(t) {
      super(), this.#e = t, this.#s = {};
      for (let r of Mi)
        this.#s[r] = () => {
          let i = this.#e.listeners(r), { count: n } = this.#r, a = t;
          if (typeof a.__signal_exit_emitter__ == "object" && typeof a.__signal_exit_emitter__.count == "number" && (n += a.__signal_exit_emitter__.
          count), i.length === n) {
            this.unload();
            let u = this.#r.emit("exit", null, r), o = r === "SIGHUP" ? this.#t : r;
            u || t.kill(t.pid, o);
          }
        };
      this.#a = t.reallyExit, this.#i = t.emit;
    }
    onExit(t, r) {
      if (!Qo(this.#e))
        return () => {
        };
      this.#n === !1 && this.load();
      let i = r?.alwaysLast ? "afterExit" : "exit";
      return this.#r.on(i, t), () => {
        this.#r.removeListener(i, t), this.#r.listeners.exit.length === 0 && this.#r.listeners.afterExit.length === 0 && this.unload();
      };
    }
    load() {
      if (!this.#n) {
        this.#n = !0, this.#r.count += 1;
        for (let t of Mi)
          try {
            let r = this.#s[t];
            r && this.#e.on(t, r);
          } catch {
          }
        this.#e.emit = (t, ...r) => this.#o(t, ...r), this.#e.reallyExit = (t) => this.#u(t);
      }
    }
    unload() {
      this.#n && (this.#n = !1, Mi.forEach((t) => {
        let r = this.#s[t];
        if (!r)
          throw new Error("Listener not defined for signal: " + t);
        try {
          this.#e.removeListener(t, r);
        } catch {
        }
      }), this.#e.emit = this.#i, this.#e.reallyExit = this.#a, this.#r.count -= 1);
    }
    #u(t) {
      return Qo(this.#e) ? (this.#e.exitCode = t || 0, this.#r.emit("exit", this.#e.exitCode, null), this.#a.call(this.#e, this.#e.exitCode)) :
      0;
    }
    #o(t, ...r) {
      let i = this.#i;
      if (t === "exit" && Qo(this.#e)) {
        typeof r[0] == "number" && (this.#e.exitCode = r[0]);
        let n = i.call(this.#e, t, ...r);
        return this.#r.emit("exit", this.#e.exitCode, null), n;
      } else
        return i.call(this.#e, t, ...r);
    }
  }, Tm = globalThis.process, {
    onExit: (
      /**
       * Called when the process is exiting, whether via signal, explicit
       * exit, or running out of stuff to do.
       *
       * If the global process object is not suitable for instrumentation,
       * then this will be a no-op.
       *
       * Returns a function that may be used to unload signal-exit.
       */
      Xz
    ),
    load: (
      /**
       * Load the listeners.  Likely you never need to call this, unless
       * doing a rather deep integration with signal-exit functionality.
       * Mostly exposed for the benefit of testing.
       *
       * @internal
       */
      Yz
    ),
    unload: (
      /**
       * Unload the listeners.  Likely you never need to call this, unless
       * doing a rather deep integration with signal-exit functionality.
       * Mostly exposed for the benefit of testing.
       *
       * @internal
       */
      Kz
    )
  } = Gz(Qo(Tm) ? new km(Tm) : new _m());
});

// ../node_modules/npmlog/node_modules/gauge/lib/spin.js
var KS = B((dae, YS) => {
  "use strict";
  YS.exports = /* @__PURE__ */ s(function(t, r) {
    return t[r % t.length];
  }, "spin");
});

// ../node_modules/npmlog/node_modules/gauge/lib/progress-bar.js
var e3 = B((gae, ZS) => {
  "use strict";
  var Qz = Jo(), Zz = wm(), eH = bm(), tH = un();
  ZS.exports = function(e, t, r) {
    if (Qz("ONN", [e, t, r]), r < 0 && (r = 0), r > 1 && (r = 1), t <= 0)
      return "";
    var i = Math.round(t * r), n = t - i, a = [
      { type: "complete", value: QS(e.complete, i), length: i },
      { type: "remaining", value: QS(e.remaining, n), length: n }
    ];
    return Zz(t, a, e);
  };
  function QS(e, t) {
    var r = "", i = t;
    do
      i % 2 && (r += e), i = Math.floor(i / 2), e += e;
    while (i && tH(r) < t);
    return eH(r, t);
  }
  s(QS, "repeat");
});

// ../node_modules/npmlog/node_modules/gauge/lib/base-theme.js
var r3 = B((yae, t3) => {
  "use strict";
  var rH = KS(), iH = e3();
  t3.exports = {
    activityIndicator: /* @__PURE__ */ s(function(e, t, r) {
      if (e.spun != null)
        return rH(t, e.spun);
    }, "activityIndicator"),
    progressbar: /* @__PURE__ */ s(function(e, t, r) {
      if (e.completed != null)
        return iH(t, r, e.completed);
    }, "progressbar")
  };
});

// ../node_modules/npmlog/node_modules/gauge/lib/theme-set.js
var n3 = B((Eae, i3) => {
  "use strict";
  i3.exports = function() {
    return jt.newThemeSet();
  };
  var jt = {};
  jt.baseTheme = r3();
  jt.newTheme = function(e, t) {
    return t || (t = e, e = this.baseTheme), Object.assign({}, e, t);
  };
  jt.getThemeNames = function() {
    return Object.keys(this.themes);
  };
  jt.addTheme = function(e, t, r) {
    this.themes[e] = this.newTheme(t, r);
  };
  jt.addToAllThemes = function(e) {
    var t = this.themes;
    Object.keys(t).forEach(function(r) {
      Object.assign(t[r], e);
    }), Object.assign(this.baseTheme, e);
  };
  jt.getTheme = function(e) {
    if (!this.themes[e])
      throw this.newMissingThemeError(e);
    return this.themes[e];
  };
  jt.setDefault = function(e, t) {
    t == null && (t = e, e = {});
    var r = e.platform == null ? "fallback" : e.platform, i = !!e.hasUnicode, n = !!e.hasColor;
    this.defaults[r] || (this.defaults[r] = { true: {}, false: {} }), this.defaults[r][i][n] = t;
  };
  jt.getDefault = function(e) {
    e || (e = {});
    var t = e.platform || process.platform, r = this.defaults[t] || this.defaults.fallback, i = !!e.hasUnicode, n = !!e.hasColor;
    if (!r)
      throw this.newMissingDefaultThemeError(t, i, n);
    if (!r[i][n]) {
      if (i && n && r[!i][n])
        i = !1;
      else if (i && n && r[i][!n])
        n = !1;
      else if (i && n && r[!i][!n])
        i = !1, n = !1;
      else if (i && !n && r[!i][n])
        i = !1;
      else if (!i && n && r[i][!n])
        n = !1;
      else if (r === this.defaults.fallback)
        throw this.newMissingDefaultThemeError(t, i, n);
    }
    return r[i][n] ? this.getTheme(r[i][n]) : this.getDefault(Object.assign({}, e, { platform: "fallback" }));
  };
  jt.newMissingThemeError = /* @__PURE__ */ s(function e(t) {
    var r = new Error('Could not find a gauge theme named "' + t + '"');
    return Error.captureStackTrace.call(r, e), r.theme = t, r.code = "EMISSINGTHEME", r;
  }, "newMissingThemeError");
  jt.newMissingDefaultThemeError = /* @__PURE__ */ s(function e(t, r, i) {
    var n = new Error(
      `Could not find a gauge theme for your platform/unicode/color use combo:
    platform = ` + t + `
    hasUnicode = ` + r + `
    hasColor = ` + i
    );
    return Error.captureStackTrace.call(n, e), n.platform = t, n.hasUnicode = r, n.hasColor = i, n.code = "EMISSINGTHEME", n;
  }, "newMissingDefaultThemeError");
  jt.newThemeSet = function() {
    var e = /* @__PURE__ */ s(function(t) {
      return e.getDefault(t);
    }, "themeset");
    return Object.assign(e, jt, {
      themes: Object.assign({}, this.themes),
      baseTheme: Object.assign({}, this.baseTheme),
      defaults: JSON.parse(JSON.stringify(this.defaults || {}))
    });
  };
});

// ../node_modules/npmlog/node_modules/gauge/lib/themes.js
var a3 = B((vae, s3) => {
  "use strict";
  var ji = Uo().color, nH = n3(), ir = s3.exports = new nH();
  ir.addTheme("ASCII", {
    preProgressbar: "[",
    postProgressbar: "]",
    progressbarTheme: {
      complete: "#",
      remaining: "."
    },
    activityIndicatorTheme: "-\\|/",
    preSubsection: ">"
  });
  ir.addTheme("colorASCII", ir.getTheme("ASCII"), {
    progressbarTheme: {
      preComplete: ji("bgBrightWhite", "brightWhite"),
      complete: "#",
      postComplete: ji("reset"),
      preRemaining: ji("bgBrightBlack", "brightBlack"),
      remaining: ".",
      postRemaining: ji("reset")
    }
  });
  ir.addTheme("brailleSpinner", {
    preProgressbar: "(",
    postProgressbar: ")",
    progressbarTheme: {
      complete: "#",
      remaining: "\u2802"
    },
    activityIndicatorTheme: "\u280B\u2819\u2839\u2838\u283C\u2834\u2826\u2827\u2807\u280F",
    preSubsection: ">"
  });
  ir.addTheme("colorBrailleSpinner", ir.getTheme("brailleSpinner"), {
    progressbarTheme: {
      preComplete: ji("bgBrightWhite", "brightWhite"),
      complete: "#",
      postComplete: ji("reset"),
      preRemaining: ji("bgBrightBlack", "brightBlack"),
      remaining: "\u2802",
      postRemaining: ji("reset")
    }
  });
  ir.setDefault({}, "ASCII");
  ir.setDefault({ hasColor: !0 }, "colorASCII");
  ir.setDefault({ platform: "darwin", hasUnicode: !0 }, "brailleSpinner");
  ir.setDefault({ platform: "darwin", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
  ir.setDefault({ platform: "linux", hasUnicode: !0 }, "brailleSpinner");
  ir.setDefault({ platform: "linux", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
});

// ../node_modules/npmlog/node_modules/gauge/lib/set-interval.js
var o3 = B((Cae, u3) => {
  "use strict";
  u3.exports = setInterval;
});

// ../node_modules/npmlog/node_modules/gauge/lib/process.js
var Bm = B((wae, l3) => {
  "use strict";
  l3.exports = process;
});

// ../node_modules/npmlog/node_modules/gauge/lib/set-immediate.js
var c3 = B((Aae, Pm) => {
  "use strict";
  var sH = Bm();
  try {
    Pm.exports = setImmediate;
  } catch {
    Pm.exports = sH.nextTick;
  }
});

// ../node_modules/npmlog/node_modules/gauge/lib/index.js
var p3 = B((Fae, h3) => {
  "use strict";
  var aH = jS(), uH = $S(), oH = WS(), lH = (XS(), Na(GS)).onExit, cH = a3(), hH = o3(), ln = Bm(), pH = c3();
  h3.exports = it;
  function el(e, t) {
    return function() {
      return t.call(e);
    };
  }
  s(el, "callWith");
  function it(e, t) {
    var r, i;
    e && e.write ? (i = e, r = t || {}) : t && t.write ? (i = t, r = e || {}) : (i = ln.stderr, r = e || t || {}), this._status = {
      spun: 0,
      section: "",
      subsection: ""
    }, this._paused = !1, this._disabled = !0, this._showing = !1, this._onScreen = !1, this._needsRedraw = !1, this._hideCursor = r.hideCursor ==
    null ? !0 : r.hideCursor, this._fixedFramerate = r.fixedFramerate == null ? !/^v0\.8\./.test(ln.version) : r.fixedFramerate, this._lastUpdateAt =
    null, this._updateInterval = r.updateInterval == null ? 50 : r.updateInterval, this._themes = r.themes || cH, this._theme = r.theme;
    var n = this._computeTheme(r.theme), a = r.template || [
      { type: "progressbar", length: 20 },
      { type: "activityIndicator", kerning: 1, length: 1 },
      { type: "section", kerning: 1, default: "" },
      { type: "subsection", kerning: 1, default: "" }
    ];
    this.setWriteTo(i, r.tty);
    var u = r.Plumbing || aH;
    this._gauge = new u(n, a, this.getWidth()), this._$$doRedraw = el(this, this._doRedraw), this._$$handleSizeChange = el(this, this._handleSizeChange),
    this._cleanupOnExit = r.cleanupOnExit == null || r.cleanupOnExit, this._removeOnExit = null, r.enabled || r.enabled == null && this._tty &&
    this._tty.isTTY ? this.enable() : this.disable();
  }
  s(it, "Gauge");
  it.prototype = {};
  it.prototype.isEnabled = function() {
    return !this._disabled;
  };
  it.prototype.setTemplate = function(e) {
    this._gauge.setTemplate(e), this._showing && this._requestRedraw();
  };
  it.prototype._computeTheme = function(e) {
    if (e || (e = {}), typeof e == "string")
      e = this._themes.getTheme(e);
    else if (Object.keys(e).length === 0 || e.hasUnicode != null || e.hasColor != null) {
      var t = e.hasUnicode == null ? uH() : e.hasUnicode, r = e.hasColor == null ? oH : e.hasColor;
      e = this._themes.getDefault({
        hasUnicode: t,
        hasColor: r,
        platform: e.platform
      });
    }
    return e;
  };
  it.prototype.setThemeset = function(e) {
    this._themes = e, this.setTheme(this._theme);
  };
  it.prototype.setTheme = function(e) {
    this._gauge.setTheme(this._computeTheme(e)), this._showing && this._requestRedraw(), this._theme = e;
  };
  it.prototype._requestRedraw = function() {
    this._needsRedraw = !0, this._fixedFramerate || this._doRedraw();
  };
  it.prototype.getWidth = function() {
    return (this._tty && this._tty.columns || 80) - 1;
  };
  it.prototype.setWriteTo = function(e, t) {
    var r = !this._disabled;
    r && this.disable(), this._writeTo = e, this._tty = t || e === ln.stderr && ln.stdout.isTTY && ln.stdout || e.isTTY && e || this._tty, this.
    _gauge && this._gauge.setWidth(this.getWidth()), r && this.enable();
  };
  it.prototype.enable = function() {
    this._disabled && (this._disabled = !1, this._tty && this._enableEvents(), this._showing && this.show());
  };
  it.prototype.disable = function() {
    this._disabled || (this._showing && (this._lastUpdateAt = null, this._showing = !1, this._doRedraw(), this._showing = !0), this._disabled =
    !0, this._tty && this._disableEvents());
  };
  it.prototype._enableEvents = function() {
    this._cleanupOnExit && (this._removeOnExit = lH(el(this, this.disable))), this._tty.on("resize", this._$$handleSizeChange), this._fixedFramerate &&
    (this.redrawTracker = hH(this._$$doRedraw, this._updateInterval), this.redrawTracker.unref && this.redrawTracker.unref());
  };
  it.prototype._disableEvents = function() {
    this._tty.removeListener("resize", this._$$handleSizeChange), this._fixedFramerate && clearInterval(this.redrawTracker), this._removeOnExit &&
    this._removeOnExit();
  };
  it.prototype.hide = function(e) {
    if (this._disabled || !this._showing)
      return e && ln.nextTick(e);
    this._showing = !1, this._doRedraw(), e && pH(e);
  };
  it.prototype.show = function(e, t) {
    if (this._showing = !0, typeof e == "string")
      this._status.section = e;
    else if (typeof e == "object")
      for (var r = Object.keys(e), i = 0; i < r.length; ++i) {
        var n = r[i];
        this._status[n] = e[n];
      }
    t != null && (this._status.completed = t), !this._disabled && this._requestRedraw();
  };
  it.prototype.pulse = function(e) {
    this._status.subsection = e || "", this._status.spun++, !this._disabled && this._showing && this._requestRedraw();
  };
  it.prototype._handleSizeChange = function() {
    this._gauge.setWidth(this._tty.columns - 1), this._requestRedraw();
  };
  it.prototype._doRedraw = function() {
    if (!(this._disabled || this._paused)) {
      if (!this._fixedFramerate) {
        var e = Date.now();
        if (this._lastUpdateAt && e - this._lastUpdateAt < this._updateInterval)
          return;
        this._lastUpdateAt = e;
      }
      if (!this._showing && this._onScreen) {
        this._onScreen = !1;
        var t = this._gauge.hide();
        return this._hideCursor && (t += this._gauge.showCursor()), this._writeTo.write(t);
      }
      !this._showing && !this._onScreen || (this._showing && !this._onScreen && (this._onScreen = !0, this._needsRedraw = !0, this._hideCursor &&
      this._writeTo.write(this._gauge.hideCursor())), this._needsRedraw && (this._writeTo.write(this._gauge.show(this._status)) || (this._paused =
      !0, this._writeTo.on("drain", el(this, function() {
        this._paused = !1, this._doRedraw();
      })))));
    }
  };
});

// ../node_modules/set-blocking/index.js
var d3 = B((_ae, f3) => {
  f3.exports = function(e) {
    [process.stdout, process.stderr].forEach(function(t) {
      t._handle && t.isTTY && typeof t._handle.setBlocking == "function" && t._handle.setBlocking(e);
    });
  };
});

// ../node_modules/npmlog/lib/log.js
var x3 = B((D3, y3) => {
  "use strict";
  var m3 = lS(), fH = p3(), dH = H("events").EventEmitter, se = D3 = y3.exports = new dH(), Im = H("util"), mH = d3(), Om = Uo();
  mH(!0);
  var li = process.stderr;
  Object.defineProperty(se, "stream", {
    set: /* @__PURE__ */ s(function(e) {
      li = e, this.gauge && this.gauge.setWriteTo(li, li);
    }, "set"),
    get: /* @__PURE__ */ s(function() {
      return li;
    }, "get")
  });
  var os;
  se.useColor = function() {
    return os ?? li.isTTY;
  };
  se.enableColor = function() {
    os = !0, this.gauge.setTheme({ hasColor: os, hasUnicode: ls });
  };
  se.disableColor = function() {
    os = !1, this.gauge.setTheme({ hasColor: os, hasUnicode: ls });
  };
  se.level = "info";
  se.gauge = new fH(li, {
    enabled: !1,
    // no progress bars unless asked
    theme: { hasColor: se.useColor() },
    template: [
      { type: "progressbar", length: 20 },
      { type: "activityIndicator", kerning: 1, length: 1 },
      { type: "section", default: "" },
      ":",
      { type: "logline", kerning: 1, default: "" }
    ]
  });
  se.tracker = new m3.TrackerGroup();
  se.progressEnabled = se.gauge.isEnabled();
  var ls;
  se.enableUnicode = function() {
    ls = !0, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: ls });
  };
  se.disableUnicode = function() {
    ls = !1, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: ls });
  };
  se.setGaugeThemeset = function(e) {
    this.gauge.setThemeset(e);
  };
  se.setGaugeTemplate = function(e) {
    this.gauge.setTemplate(e);
  };
  se.enableProgress = function() {
    this.progressEnabled || this._paused || (this.progressEnabled = !0, this.tracker.on("change", this.showProgress), this.gauge.enable());
  };
  se.disableProgress = function() {
    this.progressEnabled && (this.progressEnabled = !1, this.tracker.removeListener("change", this.showProgress), this.gauge.disable());
  };
  var Rm = ["newGroup", "newItem", "newStream"], g3 = /* @__PURE__ */ s(function(e) {
    return Object.keys(se).forEach(function(t) {
      if (t[0] !== "_" && !Rm.filter(function(i) {
        return i === t;
      }).length && !e[t] && typeof se[t] == "function") {
        var r = se[t];
        e[t] = function() {
          return r.apply(se, arguments);
        };
      }
    }), e instanceof m3.TrackerGroup && Rm.forEach(function(t) {
      var r = e[t];
      e[t] = function() {
        return g3(r.apply(e, arguments));
      };
    }), e;
  }, "mixinLog");
  Rm.forEach(function(e) {
    se[e] = function() {
      return g3(this.tracker[e].apply(this.tracker, arguments));
    };
  });
  se.clearProgress = function(e) {
    if (!this.progressEnabled)
      return e && process.nextTick(e);
    this.gauge.hide(e);
  };
  se.showProgress = function(e, t) {
    if (this.progressEnabled) {
      var r = {};
      e && (r.section = e);
      var i = se.record[se.record.length - 1];
      if (i) {
        r.subsection = i.prefix;
        var n = se.disp[i.level] || i.level, a = this._format(n, se.style[i.level]);
        i.prefix && (a += " " + this._format(i.prefix, this.prefixStyle)), a += " " + i.message.split(/\r?\n/)[0], r.logline = a;
      }
      r.completed = t || this.tracker.completed(), this.gauge.show(r);
    }
  }.bind(se);
  se.pause = function() {
    this._paused = !0, this.progressEnabled && this.gauge.disable();
  };
  se.resume = function() {
    if (this._paused) {
      this._paused = !1;
      var e = this._buffer;
      this._buffer = [], e.forEach(function(t) {
        this.emitLog(t);
      }, this), this.progressEnabled && this.gauge.enable();
    }
  };
  se._buffer = [];
  var gH = 0;
  se.record = [];
  se.maxRecordSize = 1e4;
  se.log = function(e, t, r) {
    var i = this.levels[e];
    if (i === void 0)
      return this.emit("error", new Error(Im.format(
        "Undefined log level: %j",
        e
      )));
    for (var n = new Array(arguments.length - 2), a = null, u = 2; u < arguments.length; u++) {
      var o = n[u - 2] = arguments[u];
      typeof o == "object" && o instanceof Error && o.stack && Object.defineProperty(o, "stack", {
        value: a = o.stack + "",
        enumerable: !0,
        writable: !0
      });
    }
    a && n.unshift(a + `
`), r = Im.format.apply(Im, n);
    var l = {
      id: gH++,
      level: e,
      prefix: String(t || ""),
      message: r,
      messageRaw: n
    };
    this.emit("log", l), this.emit("log." + e, l), l.prefix && this.emit(l.prefix, l), this.record.push(l);
    var c = this.maxRecordSize, h = this.record.length - c;
    if (h > c / 10) {
      var p = Math.floor(c * 0.9);
      this.record = this.record.slice(-1 * p);
    }
    this.emitLog(l);
  }.bind(se);
  se.emitLog = function(e) {
    if (this._paused) {
      this._buffer.push(e);
      return;
    }
    this.progressEnabled && this.gauge.pulse(e.prefix);
    var t = this.levels[e.level];
    if (t !== void 0 && !(t < this.levels[this.level]) && !(t > 0 && !isFinite(t))) {
      var r = se.disp[e.level] != null ? se.disp[e.level] : e.level;
      this.clearProgress(), e.message.split(/\r?\n/).forEach(function(i) {
        var n = this.heading;
        n && (this.write(n, this.headingStyle), this.write(" ")), this.write(r, se.style[e.level]);
        var a = e.prefix || "";
        a && this.write(" "), this.write(a, this.prefixStyle), this.write(" " + i + `
`);
      }, this), this.showProgress();
    }
  };
  se._format = function(e, t) {
    if (li) {
      var r = "";
      if (this.useColor()) {
        t = t || {};
        var i = [];
        t.fg && i.push(t.fg), t.bg && i.push("bg" + t.bg[0].toUpperCase() + t.bg.slice(1)), t.bold && i.push("bold"), t.underline && i.push(
        "underline"), t.inverse && i.push("inverse"), i.length && (r += Om.color(i)), t.beep && (r += Om.beep());
      }
      return r += e, this.useColor() && (r += Om.color("reset")), r;
    }
  };
  se.write = function(e, t) {
    li && li.write(this._format(e, t));
  };
  se.addLevel = function(e, t, r, i) {
    i == null && (i = e), this.levels[e] = t, this.style[e] = r, this[e] || (this[e] = function() {
      var n = new Array(arguments.length + 1);
      n[0] = e;
      for (var a = 0; a < arguments.length; a++)
        n[a + 1] = arguments[a];
      return this.log.apply(this, n);
    }.bind(this)), this.disp[e] = i;
  };
  se.prefixStyle = { fg: "magenta" };
  se.headingStyle = { fg: "white", bg: "black" };
  se.style = {};
  se.levels = {};
  se.disp = {};
  se.addLevel("silly", -1 / 0, { inverse: !0 }, "sill");
  se.addLevel("verbose", 1e3, { fg: "cyan", bg: "black" }, "verb");
  se.addLevel("info", 2e3, { fg: "green" });
  se.addLevel("timing", 2500, { fg: "green", bg: "black" });
  se.addLevel("http", 3e3, { fg: "green", bg: "black" });
  se.addLevel("notice", 3500, { fg: "cyan", bg: "black" });
  se.addLevel("warn", 4e3, { fg: "black", bg: "yellow" }, "WARN");
  se.addLevel("error", 5e3, { fg: "red", bg: "black" }, "ERR!");
  se.addLevel("silent", 1 / 0);
  se.on("error", function() {
  });
});

// ../node_modules/pretty-hrtime/index.js
var Nm = B((Tae, b3) => {
  "use strict";
  var DH = ["h", "min", "s", "ms", "\u03BCs", "ns"], yH = ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"], E3 = [3600,
  60, 1, 1e6, 1e3, 1];
  b3.exports = function(e, t) {
    var r, i, n, a, u, o, l, c, h, p;
    if (r = !1, i = !1, t && (r = t.verbose || !1, i = t.precise || !1), !Array.isArray(e) || e.length !== 2 || typeof e[0] != "number" || typeof e[1] !=
    "number")
      return "";
    for (e[1] < 0 && (p = e[0] + e[1] / 1e9, e[0] = parseInt(p), e[1] = parseFloat((p % 1).toPrecision(9)) * 1e9), h = "", n = 0; n < 6 && (a =
    n < 3 ? 0 : 1, u = e[a], n !== 3 && n !== 0 && (u = u % E3[n - 1]), n === 2 && (u += e[1] / 1e9), o = u / E3[n], !(o >= 1 && (r && (o = Math.
    floor(o)), i ? c = o.toString() : (l = o >= 10 ? 0 : 2, c = o.toFixed(l)), c.indexOf(".") > -1 && c[c.length - 1] === "0" && (c = c.replace(
    /\.?0+$/, "")), h && (h += " "), h += c, r ? (h += " " + yH[n], c !== "1" && (h += "s")) : h += " " + DH[n], !r))); n++)
      ;
    return h;
  };
});

// ../node_modules/@aw-web-design/x-default-browser/src/common-name.js
var Ca = B((pue, O3) => {
  O3.exports = function(e) {
    return e.isEdge ? "edge" : e.isIE ? "ie" : e.isFirefox ? "firefox" : e.isChrome ? "chrome" : e.isChromium ? "chromium" : e.isOpera ? "op\
era" : e.isSafari ? "safari" : "unknown";
  };
});

// ../node_modules/@aw-web-design/x-default-browser/src/detect-windows10.js
var N3 = B((fue, R3) => {
  var BH = H("child_process").exec;
  R3.exports = function(e) {
    var t = "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Shell\\Associations\\URLAssociations\\http\\UserChoice", r = "reg query " + t +
    ' | findstr "ProgId"';
    BH(r, function(i, n, a) {
      var u;
      if (i) {
        if (a.length > 0)
          return e("Unable to execute the query: " + i);
        u = "iexplore.exe";
      }
      if (!u) {
        n = n.trim().replace(/\s\s+/g, " ");
        var o = n.split(" ");
        u = o[2].toLowerCase();
      }
      var l = {
        isEdge: u.indexOf("app") > -1,
        // AppXq0fevzme2pys62n3e0fbqa7peapykr8v
        isIE: u.indexOf("ie.http") > -1,
        // IE.HTTP
        isSafari: u.indexOf("safari") > -1,
        // SafariURL
        isFirefox: u.indexOf("firefox") > -1,
        // FirefoxURL
        isChrome: u.indexOf("chrome") > -1,
        // ChromeHTML
        isChromium: u.indexOf("chromium") > -1,
        isOpera: u.indexOf("opera") > -1,
        // OperaHTML
        identity: u
      };
      l.isBlink = l.isChrome || l.isChromium || l.isOpera, l.isWebkit = l.isSafari || l.isBlink, l.commonName = Ca()(l), e(null, l);
    });
  };
});

// ../node_modules/@aw-web-design/x-default-browser/src/detect-windows.js
var M3 = B((due, L3) => {
  var PH = H("child_process").exec;
  L3.exports = function(e) {
    var t = "HKCU\\Software\\Clients\\StartMenuInternet", r = "reg query " + t + ' | findstr "REG_SZ"';
    PH(r, function(i, n, a) {
      var u;
      if (i) {
        if (a.length > 0)
          return e("Unable to execute the query: " + i);
        u = "iexplore.exe";
      }
      if (!u) {
        n = n.replace("NO NAME", "NONAME");
        var o = n.trim().split(/(\t| +)/);
        u = (o[4] + (o[5] || "") + (o[6] || "")).toLowerCase();
      }
      var l = {
        isIE: u.indexOf("iexplore") > -1,
        // IEXPLORE.EXE             / -
        isSafari: u.indexOf("safari") > -1,
        // Safari.exe
        // works also for nightly
        isFirefox: u.indexOf("firefox") > -1,
        // FIREFOX.EXE              / "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -osint -url "%1"
        // note that both chrome and chromium are chrome.exe! we can't look for 'chrome' hence
        isChrome: u.indexOf("google") > -1,
        // Google Chrome            / "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "%1"
        isChromium: u.indexOf("chromium") > -1,
        // Chromium.<randomstring>  / "C:\Users\<username>\AppData\Local\Chromium\Application\chrome.exe" -- "%1"
        isOpera: u.indexOf("opera") > -1,
        // OperaStable              / "C:\Program Files (x86)\Opera\launcher.exe" -noautoupdate -- "%1"
        identity: u
      };
      l.isBlink = l.isChrome || l.isChromium || l.isOpera, l.isWebkit = l.isSafari || l.isBlink, l.commonName = Ca()(l), e(null, l);
    });
  };
});

// ../node_modules/big-integer/BigInteger.js
var j3 = B((mue, tl) => {
  var nt = function(e) {
    "use strict";
    var t = 1e7, r = 7, i = 9007199254740992, n = d(i), a = "0123456789abcdefghijklmnopqrstuvwxyz", u = typeof BigInt == "function";
    function o(E, x, _, O) {
      return typeof E > "u" ? o[0] : typeof x < "u" ? +x == 10 && !_ ? ce(E) : Re(E, x, _, O) : ce(E);
    }
    s(o, "Integer");
    function l(E, x) {
      this.value = E, this.sign = x, this.isSmall = !1;
    }
    s(l, "BigInteger"), l.prototype = Object.create(o.prototype);
    function c(E) {
      this.value = E, this.sign = E < 0, this.isSmall = !0;
    }
    s(c, "SmallInteger"), c.prototype = Object.create(o.prototype);
    function h(E) {
      this.value = E;
    }
    s(h, "NativeBigInt"), h.prototype = Object.create(o.prototype);
    function p(E) {
      return -i < E && E < i;
    }
    s(p, "isPrecise");
    function d(E) {
      return E < 1e7 ? [E] : E < 1e14 ? [E % 1e7, Math.floor(E / 1e7)] : [E % 1e7, Math.floor(E / 1e7) % 1e7, Math.floor(E / 1e14)];
    }
    s(d, "smallToArray");
    function m(E) {
      g(E);
      var x = E.length;
      if (x < 4 && Q(E, n) < 0)
        switch (x) {
          case 0:
            return 0;
          case 1:
            return E[0];
          case 2:
            return E[0] + E[1] * t;
          default:
            return E[0] + (E[1] + E[2] * t) * t;
        }
      return E;
    }
    s(m, "arrayToSmall");
    function g(E) {
      for (var x = E.length; E[--x] === 0; ) ;
      E.length = x + 1;
    }
    s(g, "trim");
    function D(E) {
      for (var x = new Array(E), _ = -1; ++_ < E; )
        x[_] = 0;
      return x;
    }
    s(D, "createArray");
    function v(E) {
      return E > 0 ? Math.floor(E) : Math.ceil(E);
    }
    s(v, "truncate");
    function y(E, x) {
      var _ = E.length, O = x.length, b = new Array(_), q = 0, W = t, J, X;
      for (X = 0; X < O; X++)
        J = E[X] + x[X] + q, q = J >= W ? 1 : 0, b[X] = J - q * W;
      for (; X < _; )
        J = E[X] + q, q = J === W ? 1 : 0, b[X++] = J - q * W;
      return q > 0 && b.push(q), b;
    }
    s(y, "add");
    function C(E, x) {
      return E.length >= x.length ? y(E, x) : y(x, E);
    }
    s(C, "addAny");
    function S(E, x) {
      var _ = E.length, O = new Array(_), b = t, q, W;
      for (W = 0; W < _; W++)
        q = E[W] - b + x, x = Math.floor(q / b), O[W] = q - x * b, x += 1;
      for (; x > 0; )
        O[W++] = x % b, x = Math.floor(x / b);
      return O;
    }
    s(S, "addSmall"), l.prototype.add = function(E) {
      var x = ce(E);
      if (this.sign !== x.sign)
        return this.subtract(x.negate());
      var _ = this.value, O = x.value;
      return x.isSmall ? new l(S(_, Math.abs(O)), this.sign) : new l(C(_, O), this.sign);
    }, l.prototype.plus = l.prototype.add, c.prototype.add = function(E) {
      var x = ce(E), _ = this.value;
      if (_ < 0 !== x.sign)
        return this.subtract(x.negate());
      var O = x.value;
      if (x.isSmall) {
        if (p(_ + O)) return new c(_ + O);
        O = d(Math.abs(O));
      }
      return new l(S(O, Math.abs(_)), _ < 0);
    }, c.prototype.plus = c.prototype.add, h.prototype.add = function(E) {
      return new h(this.value + ce(E).value);
    }, h.prototype.plus = h.prototype.add;
    function T(E, x) {
      var _ = E.length, O = x.length, b = new Array(_), q = 0, W = t, J, X;
      for (J = 0; J < O; J++)
        X = E[J] - q - x[J], X < 0 ? (X += W, q = 1) : q = 0, b[J] = X;
      for (J = O; J < _; J++) {
        if (X = E[J] - q, X < 0) X += W;
        else {
          b[J++] = X;
          break;
        }
        b[J] = X;
      }
      for (; J < _; J++)
        b[J] = E[J];
      return g(b), b;
    }
    s(T, "subtract");
    function j(E, x, _) {
      var O;
      return Q(E, x) >= 0 ? O = T(E, x) : (O = T(x, E), _ = !_), O = m(O), typeof O == "number" ? (_ && (O = -O), new c(O)) : new l(O, _);
    }
    s(j, "subtractAny");
    function w(E, x, _) {
      var O = E.length, b = new Array(O), q = -x, W = t, J, X;
      for (J = 0; J < O; J++)
        X = E[J] + q, q = Math.floor(X / W), X %= W, b[J] = X < 0 ? X + W : X;
      return b = m(b), typeof b == "number" ? (_ && (b = -b), new c(b)) : new l(b, _);
    }
    s(w, "subtractSmall"), l.prototype.subtract = function(E) {
      var x = ce(E);
      if (this.sign !== x.sign)
        return this.add(x.negate());
      var _ = this.value, O = x.value;
      return x.isSmall ? w(_, Math.abs(O), this.sign) : j(_, O, this.sign);
    }, l.prototype.minus = l.prototype.subtract, c.prototype.subtract = function(E) {
      var x = ce(E), _ = this.value;
      if (_ < 0 !== x.sign)
        return this.add(x.negate());
      var O = x.value;
      return x.isSmall ? new c(_ - O) : w(O, Math.abs(_), _ >= 0);
    }, c.prototype.minus = c.prototype.subtract, h.prototype.subtract = function(E) {
      return new h(this.value - ce(E).value);
    }, h.prototype.minus = h.prototype.subtract, l.prototype.negate = function() {
      return new l(this.value, !this.sign);
    }, c.prototype.negate = function() {
      var E = this.sign, x = new c(-this.value);
      return x.sign = !E, x;
    }, h.prototype.negate = function() {
      return new h(-this.value);
    }, l.prototype.abs = function() {
      return new l(this.value, !1);
    }, c.prototype.abs = function() {
      return new c(Math.abs(this.value));
    }, h.prototype.abs = function() {
      return new h(this.value >= 0 ? this.value : -this.value);
    };
    function A(E, x) {
      var _ = E.length, O = x.length, b = _ + O, q = D(b), W = t, J, X, oe, ye, ae;
      for (oe = 0; oe < _; ++oe) {
        ye = E[oe];
        for (var be = 0; be < O; ++be)
          ae = x[be], J = ye * ae + q[oe + be], X = Math.floor(J / W), q[oe + be] = J - X * W, q[oe + be + 1] += X;
      }
      return g(q), q;
    }
    s(A, "multiplyLong");
    function P(E, x) {
      var _ = E.length, O = new Array(_), b = t, q = 0, W, J;
      for (J = 0; J < _; J++)
        W = E[J] * x + q, q = Math.floor(W / b), O[J] = W - q * b;
      for (; q > 0; )
        O[J++] = q % b, q = Math.floor(q / b);
      return O;
    }
    s(P, "multiplySmall");
    function k(E, x) {
      for (var _ = []; x-- > 0; ) _.push(0);
      return _.concat(E);
    }
    s(k, "shiftLeft");
    function $(E, x) {
      var _ = Math.max(E.length, x.length);
      if (_ <= 30) return A(E, x);
      _ = Math.ceil(_ / 2);
      var O = E.slice(_), b = E.slice(0, _), q = x.slice(_), W = x.slice(0, _), J = $(b, W), X = $(O, q), oe = $(C(b, O), C(W, q)), ye = C(C(
      J, k(T(T(oe, J), X), _)), k(X, 2 * _));
      return g(ye), ye;
    }
    s($, "multiplyKaratsuba");
    function M(E, x) {
      return -0.012 * E - 0.012 * x + 15e-6 * E * x > 0;
    }
    s(M, "useKaratsuba"), l.prototype.multiply = function(E) {
      var x = ce(E), _ = this.value, O = x.value, b = this.sign !== x.sign, q;
      if (x.isSmall) {
        if (O === 0) return o[0];
        if (O === 1) return this;
        if (O === -1) return this.negate();
        if (q = Math.abs(O), q < t)
          return new l(P(_, q), b);
        O = d(q);
      }
      return M(_.length, O.length) ? new l($(_, O), b) : new l(A(_, O), b);
    }, l.prototype.times = l.prototype.multiply;
    function V(E, x, _) {
      return E < t ? new l(P(x, E), _) : new l(A(x, d(E)), _);
    }
    s(V, "multiplySmallAndArray"), c.prototype._multiplyBySmall = function(E) {
      return p(E.value * this.value) ? new c(E.value * this.value) : V(Math.abs(E.value), d(Math.abs(this.value)), this.sign !== E.sign);
    }, l.prototype._multiplyBySmall = function(E) {
      return E.value === 0 ? o[0] : E.value === 1 ? this : E.value === -1 ? this.negate() : V(Math.abs(E.value), this.value, this.sign !== E.
      sign);
    }, c.prototype.multiply = function(E) {
      return ce(E)._multiplyBySmall(this);
    }, c.prototype.times = c.prototype.multiply, h.prototype.multiply = function(E) {
      return new h(this.value * ce(E).value);
    }, h.prototype.times = h.prototype.multiply;
    function U(E) {
      var x = E.length, _ = D(x + x), O = t, b, q, W, J, X;
      for (W = 0; W < x; W++) {
        J = E[W], q = 0 - J * J;
        for (var oe = W; oe < x; oe++)
          X = E[oe], b = 2 * (J * X) + _[W + oe] + q, q = Math.floor(b / O), _[W + oe] = b - q * O;
        _[W + x] = q;
      }
      return g(_), _;
    }
    s(U, "square"), l.prototype.square = function() {
      return new l(U(this.value), !1);
    }, c.prototype.square = function() {
      var E = this.value * this.value;
      return p(E) ? new c(E) : new l(U(d(Math.abs(this.value))), !1);
    }, h.prototype.square = function(E) {
      return new h(this.value * this.value);
    };
    function G(E, x) {
      var _ = E.length, O = x.length, b = t, q = D(x.length), W = x[O - 1], J = Math.ceil(b / (2 * W)), X = P(E, J), oe = P(x, J), ye, ae, be,
      ze, At, El, bl;
      for (X.length <= _ && X.push(0), oe.push(0), W = oe[O - 1], ae = _ - O; ae >= 0; ae--) {
        for (ye = b - 1, X[ae + O] !== W && (ye = Math.floor((X[ae + O] * b + X[ae + O - 1]) / W)), be = 0, ze = 0, El = oe.length, At = 0; At <
        El; At++)
          be += ye * oe[At], bl = Math.floor(be / b), ze += X[ae + At] - (be - bl * b), be = bl, ze < 0 ? (X[ae + At] = ze + b, ze = -1) : (X[ae +
          At] = ze, ze = 0);
        for (; ze !== 0; ) {
          for (ye -= 1, be = 0, At = 0; At < El; At++)
            be += X[ae + At] - b + oe[At], be < 0 ? (X[ae + At] = be + b, be = 0) : (X[ae + At] = be, be = 1);
          ze += be;
        }
        q[ae] = ye;
      }
      return X = N(X, J)[0], [m(q), m(X)];
    }
    s(G, "divMod1");
    function R(E, x) {
      for (var _ = E.length, O = x.length, b = [], q = [], W = t, J, X, oe, ye, ae; _; ) {
        if (q.unshift(E[--_]), g(q), Q(q, x) < 0) {
          b.push(0);
          continue;
        }
        X = q.length, oe = q[X - 1] * W + q[X - 2], ye = x[O - 1] * W + x[O - 2], X > O && (oe = (oe + 1) * W), J = Math.ceil(oe / ye);
        do {
          if (ae = P(x, J), Q(ae, q) <= 0) break;
          J--;
        } while (J);
        b.push(J), q = T(q, ae);
      }
      return b.reverse(), [m(b), m(q)];
    }
    s(R, "divMod2");
    function N(E, x) {
      var _ = E.length, O = D(_), b = t, q, W, J, X;
      for (J = 0, q = _ - 1; q >= 0; --q)
        X = J * b + E[q], W = v(X / x), J = X - W * x, O[q] = W | 0;
      return [O, J | 0];
    }
    s(N, "divModSmall");
    function z(E, x) {
      var _, O = ce(x);
      if (u)
        return [new h(E.value / O.value), new h(E.value % O.value)];
      var b = E.value, q = O.value, W;
      if (q === 0) throw new Error("Cannot divide by zero");
      if (E.isSmall)
        return O.isSmall ? [new c(v(b / q)), new c(b % q)] : [o[0], E];
      if (O.isSmall) {
        if (q === 1) return [E, o[0]];
        if (q == -1) return [E.negate(), o[0]];
        var J = Math.abs(q);
        if (J < t) {
          _ = N(b, J), W = m(_[0]);
          var X = _[1];
          return E.sign && (X = -X), typeof W == "number" ? (E.sign !== O.sign && (W = -W), [new c(W), new c(X)]) : [new l(W, E.sign !== O.sign),
          new c(X)];
        }
        q = d(J);
      }
      var oe = Q(b, q);
      if (oe === -1) return [o[0], E];
      if (oe === 0) return [o[E.sign === O.sign ? 1 : -1], o[0]];
      b.length + q.length <= 200 ? _ = G(b, q) : _ = R(b, q), W = _[0];
      var ye = E.sign !== O.sign, ae = _[1], be = E.sign;
      return typeof W == "number" ? (ye && (W = -W), W = new c(W)) : W = new l(W, ye), typeof ae == "number" ? (be && (ae = -ae), ae = new c(
      ae)) : ae = new l(ae, be), [W, ae];
    }
    s(z, "divModAny"), l.prototype.divmod = function(E) {
      var x = z(this, E);
      return {
        quotient: x[0],
        remainder: x[1]
      };
    }, h.prototype.divmod = c.prototype.divmod = l.prototype.divmod, l.prototype.divide = function(E) {
      return z(this, E)[0];
    }, h.prototype.over = h.prototype.divide = function(E) {
      return new h(this.value / ce(E).value);
    }, c.prototype.over = c.prototype.divide = l.prototype.over = l.prototype.divide, l.prototype.mod = function(E) {
      return z(this, E)[1];
    }, h.prototype.mod = h.prototype.remainder = function(E) {
      return new h(this.value % ce(E).value);
    }, c.prototype.remainder = c.prototype.mod = l.prototype.remainder = l.prototype.mod, l.prototype.pow = function(E) {
      var x = ce(E), _ = this.value, O = x.value, b, q, W;
      if (O === 0) return o[1];
      if (_ === 0) return o[0];
      if (_ === 1) return o[1];
      if (_ === -1) return x.isEven() ? o[1] : o[-1];
      if (x.sign)
        return o[0];
      if (!x.isSmall) throw new Error("The exponent " + x.toString() + " is too large.");
      if (this.isSmall && p(b = Math.pow(_, O)))
        return new c(v(b));
      for (q = this, W = o[1]; O & !0 && (W = W.times(q), --O), O !== 0; )
        O /= 2, q = q.square();
      return W;
    }, c.prototype.pow = l.prototype.pow, h.prototype.pow = function(E) {
      var x = ce(E), _ = this.value, O = x.value, b = BigInt(0), q = BigInt(1), W = BigInt(2);
      if (O === b) return o[1];
      if (_ === b) return o[0];
      if (_ === q) return o[1];
      if (_ === BigInt(-1)) return x.isEven() ? o[1] : o[-1];
      if (x.isNegative()) return new h(b);
      for (var J = this, X = o[1]; (O & q) === q && (X = X.times(J), --O), O !== b; )
        O /= W, J = J.square();
      return X;
    }, l.prototype.modPow = function(E, x) {
      if (E = ce(E), x = ce(x), x.isZero()) throw new Error("Cannot take modPow with modulus 0");
      var _ = o[1], O = this.mod(x);
      for (E.isNegative() && (E = E.multiply(o[-1]), O = O.modInv(x)); E.isPositive(); ) {
        if (O.isZero()) return o[0];
        E.isOdd() && (_ = _.multiply(O).mod(x)), E = E.divide(2), O = O.square().mod(x);
      }
      return _;
    }, h.prototype.modPow = c.prototype.modPow = l.prototype.modPow;
    function Q(E, x) {
      if (E.length !== x.length)
        return E.length > x.length ? 1 : -1;
      for (var _ = E.length - 1; _ >= 0; _--)
        if (E[_] !== x[_]) return E[_] > x[_] ? 1 : -1;
      return 0;
    }
    s(Q, "compareAbs"), l.prototype.compareAbs = function(E) {
      var x = ce(E), _ = this.value, O = x.value;
      return x.isSmall ? 1 : Q(_, O);
    }, c.prototype.compareAbs = function(E) {
      var x = ce(E), _ = Math.abs(this.value), O = x.value;
      return x.isSmall ? (O = Math.abs(O), _ === O ? 0 : _ > O ? 1 : -1) : -1;
    }, h.prototype.compareAbs = function(E) {
      var x = this.value, _ = ce(E).value;
      return x = x >= 0 ? x : -x, _ = _ >= 0 ? _ : -_, x === _ ? 0 : x > _ ? 1 : -1;
    }, l.prototype.compare = function(E) {
      if (E === 1 / 0)
        return -1;
      if (E === -1 / 0)
        return 1;
      var x = ce(E), _ = this.value, O = x.value;
      return this.sign !== x.sign ? x.sign ? 1 : -1 : x.isSmall ? this.sign ? -1 : 1 : Q(_, O) * (this.sign ? -1 : 1);
    }, l.prototype.compareTo = l.prototype.compare, c.prototype.compare = function(E) {
      if (E === 1 / 0)
        return -1;
      if (E === -1 / 0)
        return 1;
      var x = ce(E), _ = this.value, O = x.value;
      return x.isSmall ? _ == O ? 0 : _ > O ? 1 : -1 : _ < 0 !== x.sign ? _ < 0 ? -1 : 1 : _ < 0 ? 1 : -1;
    }, c.prototype.compareTo = c.prototype.compare, h.prototype.compare = function(E) {
      if (E === 1 / 0)
        return -1;
      if (E === -1 / 0)
        return 1;
      var x = this.value, _ = ce(E).value;
      return x === _ ? 0 : x > _ ? 1 : -1;
    }, h.prototype.compareTo = h.prototype.compare, l.prototype.equals = function(E) {
      return this.compare(E) === 0;
    }, h.prototype.eq = h.prototype.equals = c.prototype.eq = c.prototype.equals = l.prototype.eq = l.prototype.equals, l.prototype.notEquals =
    function(E) {
      return this.compare(E) !== 0;
    }, h.prototype.neq = h.prototype.notEquals = c.prototype.neq = c.prototype.notEquals = l.prototype.neq = l.prototype.notEquals, l.prototype.
    greater = function(E) {
      return this.compare(E) > 0;
    }, h.prototype.gt = h.prototype.greater = c.prototype.gt = c.prototype.greater = l.prototype.gt = l.prototype.greater, l.prototype.lesser =
    function(E) {
      return this.compare(E) < 0;
    }, h.prototype.lt = h.prototype.lesser = c.prototype.lt = c.prototype.lesser = l.prototype.lt = l.prototype.lesser, l.prototype.greaterOrEquals =
    function(E) {
      return this.compare(E) >= 0;
    }, h.prototype.geq = h.prototype.greaterOrEquals = c.prototype.geq = c.prototype.greaterOrEquals = l.prototype.geq = l.prototype.greaterOrEquals,
    l.prototype.lesserOrEquals = function(E) {
      return this.compare(E) <= 0;
    }, h.prototype.leq = h.prototype.lesserOrEquals = c.prototype.leq = c.prototype.lesserOrEquals = l.prototype.leq = l.prototype.lesserOrEquals,
    l.prototype.isEven = function() {
      return (this.value[0] & 1) === 0;
    }, c.prototype.isEven = function() {
      return (this.value & 1) === 0;
    }, h.prototype.isEven = function() {
      return (this.value & BigInt(1)) === BigInt(0);
    }, l.prototype.isOdd = function() {
      return (this.value[0] & 1) === 1;
    }, c.prototype.isOdd = function() {
      return (this.value & 1) === 1;
    }, h.prototype.isOdd = function() {
      return (this.value & BigInt(1)) === BigInt(1);
    }, l.prototype.isPositive = function() {
      return !this.sign;
    }, c.prototype.isPositive = function() {
      return this.value > 0;
    }, h.prototype.isPositive = c.prototype.isPositive, l.prototype.isNegative = function() {
      return this.sign;
    }, c.prototype.isNegative = function() {
      return this.value < 0;
    }, h.prototype.isNegative = c.prototype.isNegative, l.prototype.isUnit = function() {
      return !1;
    }, c.prototype.isUnit = function() {
      return Math.abs(this.value) === 1;
    }, h.prototype.isUnit = function() {
      return this.abs().value === BigInt(1);
    }, l.prototype.isZero = function() {
      return !1;
    }, c.prototype.isZero = function() {
      return this.value === 0;
    }, h.prototype.isZero = function() {
      return this.value === BigInt(0);
    }, l.prototype.isDivisibleBy = function(E) {
      var x = ce(E);
      return x.isZero() ? !1 : x.isUnit() ? !0 : x.compareAbs(2) === 0 ? this.isEven() : this.mod(x).isZero();
    }, h.prototype.isDivisibleBy = c.prototype.isDivisibleBy = l.prototype.isDivisibleBy;
    function te(E) {
      var x = E.abs();
      if (x.isUnit()) return !1;
      if (x.equals(2) || x.equals(3) || x.equals(5)) return !0;
      if (x.isEven() || x.isDivisibleBy(3) || x.isDivisibleBy(5)) return !1;
      if (x.lesser(49)) return !0;
    }
    s(te, "isBasicPrime");
    function I(E, x) {
      for (var _ = E.prev(), O = _, b = 0, q, W, J, X; O.isEven(); ) O = O.divide(2), b++;
      e: for (J = 0; J < x.length; J++)
        if (!E.lesser(x[J]) && (X = nt(x[J]).modPow(O, E), !(X.isUnit() || X.equals(_)))) {
          for (q = b - 1; q != 0; q--) {
            if (X = X.square().mod(E), X.isUnit()) return !1;
            if (X.equals(_)) continue e;
          }
          return !1;
        }
      return !0;
    }
    s(I, "millerRabinTest"), l.prototype.isPrime = function(E) {
      var x = te(this);
      if (x !== e) return x;
      var _ = this.abs(), O = _.bitLength();
      if (O <= 64)
        return I(_, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]);
      for (var b = Math.log(2) * O.toJSNumber(), q = Math.ceil(E === !0 ? 2 * Math.pow(b, 2) : b), W = [], J = 0; J < q; J++)
        W.push(nt(J + 2));
      return I(_, W);
    }, h.prototype.isPrime = c.prototype.isPrime = l.prototype.isPrime, l.prototype.isProbablePrime = function(E, x) {
      var _ = te(this);
      if (_ !== e) return _;
      for (var O = this.abs(), b = E === e ? 5 : E, q = [], W = 0; W < b; W++)
        q.push(nt.randBetween(2, O.minus(2), x));
      return I(O, q);
    }, h.prototype.isProbablePrime = c.prototype.isProbablePrime = l.prototype.isProbablePrime, l.prototype.modInv = function(E) {
      for (var x = nt.zero, _ = nt.one, O = ce(E), b = this.abs(), q, W, J; !b.isZero(); )
        q = O.divide(b), W = x, J = O, x = _, O = b, _ = W.subtract(q.multiply(_)), b = J.subtract(q.multiply(b));
      if (!O.isUnit()) throw new Error(this.toString() + " and " + E.toString() + " are not co-prime");
      return x.compare(0) === -1 && (x = x.add(E)), this.isNegative() ? x.negate() : x;
    }, h.prototype.modInv = c.prototype.modInv = l.prototype.modInv, l.prototype.next = function() {
      var E = this.value;
      return this.sign ? w(E, 1, this.sign) : new l(S(E, 1), this.sign);
    }, c.prototype.next = function() {
      var E = this.value;
      return E + 1 < i ? new c(E + 1) : new l(n, !1);
    }, h.prototype.next = function() {
      return new h(this.value + BigInt(1));
    }, l.prototype.prev = function() {
      var E = this.value;
      return this.sign ? new l(S(E, 1), !0) : w(E, 1, this.sign);
    }, c.prototype.prev = function() {
      var E = this.value;
      return E - 1 > -i ? new c(E - 1) : new l(n, !0);
    }, h.prototype.prev = function() {
      return new h(this.value - BigInt(1));
    };
    for (var he = [1]; 2 * he[he.length - 1] <= t; ) he.push(2 * he[he.length - 1]);
    var xe = he.length, L = he[xe - 1];
    function Se(E) {
      return Math.abs(E) <= t;
    }
    s(Se, "shift_isSmall"), l.prototype.shiftLeft = function(E) {
      var x = ce(E).toJSNumber();
      if (!Se(x))
        throw new Error(String(x) + " is too large for shifting.");
      if (x < 0) return this.shiftRight(-x);
      var _ = this;
      if (_.isZero()) return _;
      for (; x >= xe; )
        _ = _.multiply(L), x -= xe - 1;
      return _.multiply(he[x]);
    }, h.prototype.shiftLeft = c.prototype.shiftLeft = l.prototype.shiftLeft, l.prototype.shiftRight = function(E) {
      var x, _ = ce(E).toJSNumber();
      if (!Se(_))
        throw new Error(String(_) + " is too large for shifting.");
      if (_ < 0) return this.shiftLeft(-_);
      for (var O = this; _ >= xe; ) {
        if (O.isZero() || O.isNegative() && O.isUnit()) return O;
        x = z(O, L), O = x[1].isNegative() ? x[0].prev() : x[0], _ -= xe - 1;
      }
      return x = z(O, he[_]), x[1].isNegative() ? x[0].prev() : x[0];
    }, h.prototype.shiftRight = c.prototype.shiftRight = l.prototype.shiftRight;
    function Ie(E, x, _) {
      x = ce(x);
      for (var O = E.isNegative(), b = x.isNegative(), q = O ? E.not() : E, W = b ? x.not() : x, J = 0, X = 0, oe = null, ye = null, ae = []; !q.
      isZero() || !W.isZero(); )
        oe = z(q, L), J = oe[1].toJSNumber(), O && (J = L - 1 - J), ye = z(W, L), X = ye[1].toJSNumber(), b && (X = L - 1 - X), q = oe[0], W =
        ye[0], ae.push(_(J, X));
      for (var be = _(O ? 1 : 0, b ? 1 : 0) !== 0 ? nt(-1) : nt(0), ze = ae.length - 1; ze >= 0; ze -= 1)
        be = be.multiply(L).add(nt(ae[ze]));
      return be;
    }
    s(Ie, "bitwise"), l.prototype.not = function() {
      return this.negate().prev();
    }, h.prototype.not = c.prototype.not = l.prototype.not, l.prototype.and = function(E) {
      return Ie(this, E, function(x, _) {
        return x & _;
      });
    }, h.prototype.and = c.prototype.and = l.prototype.and, l.prototype.or = function(E) {
      return Ie(this, E, function(x, _) {
        return x | _;
      });
    }, h.prototype.or = c.prototype.or = l.prototype.or, l.prototype.xor = function(E) {
      return Ie(this, E, function(x, _) {
        return x ^ _;
      });
    }, h.prototype.xor = c.prototype.xor = l.prototype.xor;
    var ue = 1 << 30, at = (t & -t) * (t & -t) | ue;
    function Oe(E) {
      var x = E.value, _ = typeof x == "number" ? x | ue : typeof x == "bigint" ? x | BigInt(ue) : x[0] + x[1] * t | at;
      return _ & -_;
    }
    s(Oe, "roughLOB");
    function ee(E, x) {
      if (x.compareTo(E) <= 0) {
        var _ = ee(E, x.square(x)), O = _.p, b = _.e, q = O.multiply(x);
        return q.compareTo(E) <= 0 ? { p: q, e: b * 2 + 1 } : { p: O, e: b * 2 };
      }
      return { p: nt(1), e: 0 };
    }
    s(ee, "integerLogarithm"), l.prototype.bitLength = function() {
      var E = this;
      return E.compareTo(nt(0)) < 0 && (E = E.negate().subtract(nt(1))), E.compareTo(nt(0)) === 0 ? nt(0) : nt(ee(E, nt(2)).e).add(nt(1));
    }, h.prototype.bitLength = c.prototype.bitLength = l.prototype.bitLength;
    function De(E, x) {
      return E = ce(E), x = ce(x), E.greater(x) ? E : x;
    }
    s(De, "max");
    function K(E, x) {
      return E = ce(E), x = ce(x), E.lesser(x) ? E : x;
    }
    s(K, "min");
    function le(E, x) {
      if (E = ce(E).abs(), x = ce(x).abs(), E.equals(x)) return E;
      if (E.isZero()) return x;
      if (x.isZero()) return E;
      for (var _ = o[1], O, b; E.isEven() && x.isEven(); )
        O = K(Oe(E), Oe(x)), E = E.divide(O), x = x.divide(O), _ = _.multiply(O);
      for (; E.isEven(); )
        E = E.divide(Oe(E));
      do {
        for (; x.isEven(); )
          x = x.divide(Oe(x));
        E.greater(x) && (b = x, x = E, E = b), x = x.subtract(E);
      } while (!x.isZero());
      return _.isUnit() ? E : E.multiply(_);
    }
    s(le, "gcd");
    function ke(E, x) {
      return E = ce(E).abs(), x = ce(x).abs(), E.divide(le(E, x)).multiply(x);
    }
    s(ke, "lcm");
    function Xe(E, x, _) {
      E = ce(E), x = ce(x);
      var O = _ || Math.random, b = K(E, x), q = De(E, x), W = q.subtract(b).add(1);
      if (W.isSmall) return b.add(Math.floor(O() * W));
      for (var J = or(W, t).value, X = [], oe = !0, ye = 0; ye < J.length; ye++) {
        var ae = oe ? J[ye] + (ye + 1 < J.length ? J[ye + 1] / t : 0) : t, be = v(O() * ae);
        X.push(be), be < J[ye] && (oe = !1);
      }
      return b.add(o.fromArray(X, t, !1));
    }
    s(Xe, "randBetween");
    var Re = /* @__PURE__ */ s(function(E, x, _, O) {
      _ = _ || a, E = String(E), O || (E = E.toLowerCase(), _ = _.toLowerCase());
      var b = E.length, q, W = Math.abs(x), J = {};
      for (q = 0; q < _.length; q++)
        J[_[q]] = q;
      for (q = 0; q < b; q++) {
        var X = E[q];
        if (X !== "-" && X in J && J[X] >= W) {
          if (X === "1" && W === 1) continue;
          throw new Error(X + " is not a valid digit in base " + x + ".");
        }
      }
      x = ce(x);
      var oe = [], ye = E[0] === "-";
      for (q = ye ? 1 : 0; q < E.length; q++) {
        var X = E[q];
        if (X in J) oe.push(ce(J[X]));
        else if (X === "<") {
          var ae = q;
          do
            q++;
          while (E[q] !== ">" && q < E.length);
          oe.push(ce(E.slice(ae + 1, q)));
        } else throw new Error(X + " is not a valid character");
      }
      return Vt(oe, x, ye);
    }, "parseBase");
    function Vt(E, x, _) {
      var O = o[0], b = o[1], q;
      for (q = E.length - 1; q >= 0; q--)
        O = O.add(E[q].times(b)), b = b.times(x);
      return _ ? O.negate() : O;
    }
    s(Vt, "parseBaseFromArray");
    function vr(E, x) {
      return x = x || a, E < x.length ? x[E] : "<" + E + ">";
    }
    s(vr, "stringify");
    function or(E, x) {
      if (x = nt(x), x.isZero()) {
        if (E.isZero()) return { value: [0], isNegative: !1 };
        throw new Error("Cannot convert nonzero numbers to base 0.");
      }
      if (x.equals(-1)) {
        if (E.isZero()) return { value: [0], isNegative: !1 };
        if (E.isNegative())
          return {
            value: [].concat.apply(
              [],
              Array.apply(null, Array(-E.toJSNumber())).map(Array.prototype.valueOf, [1, 0])
            ),
            isNegative: !1
          };
        var _ = Array.apply(null, Array(E.toJSNumber() - 1)).map(Array.prototype.valueOf, [0, 1]);
        return _.unshift([1]), {
          value: [].concat.apply([], _),
          isNegative: !1
        };
      }
      var O = !1;
      if (E.isNegative() && x.isPositive() && (O = !0, E = E.abs()), x.isUnit())
        return E.isZero() ? { value: [0], isNegative: !1 } : {
          value: Array.apply(null, Array(E.toJSNumber())).map(Number.prototype.valueOf, 1),
          isNegative: O
        };
      for (var b = [], q = E, W; q.isNegative() || q.compareAbs(x) >= 0; ) {
        W = q.divmod(x), q = W.quotient;
        var J = W.remainder;
        J.isNegative() && (J = x.minus(J).abs(), q = q.next()), b.push(J.toJSNumber());
      }
      return b.push(q.toJSNumber()), { value: b.reverse(), isNegative: O };
    }
    s(or, "toBase");
    function zi(E, x, _) {
      var O = or(E, x);
      return (O.isNegative ? "-" : "") + O.value.map(function(b) {
        return vr(b, _);
      }).join("");
    }
    s(zi, "toBaseString"), l.prototype.toArray = function(E) {
      return or(this, E);
    }, c.prototype.toArray = function(E) {
      return or(this, E);
    }, h.prototype.toArray = function(E) {
      return or(this, E);
    }, l.prototype.toString = function(E, x) {
      if (E === e && (E = 10), E !== 10) return zi(this, E, x);
      for (var _ = this.value, O = _.length, b = String(_[--O]), q = "0000000", W; --O >= 0; )
        W = String(_[O]), b += q.slice(W.length) + W;
      var J = this.sign ? "-" : "";
      return J + b;
    }, c.prototype.toString = function(E, x) {
      return E === e && (E = 10), E != 10 ? zi(this, E, x) : String(this.value);
    }, h.prototype.toString = c.prototype.toString, h.prototype.toJSON = l.prototype.toJSON = c.prototype.toJSON = function() {
      return this.toString();
    }, l.prototype.valueOf = function() {
      return parseInt(this.toString(), 10);
    }, l.prototype.toJSNumber = l.prototype.valueOf, c.prototype.valueOf = function() {
      return this.value;
    }, c.prototype.toJSNumber = c.prototype.valueOf, h.prototype.valueOf = h.prototype.toJSNumber = function() {
      return parseInt(this.toString(), 10);
    };
    function fi(E) {
      if (p(+E)) {
        var x = +E;
        if (x === v(x))
          return u ? new h(BigInt(x)) : new c(x);
        throw new Error("Invalid integer: " + E);
      }
      var _ = E[0] === "-";
      _ && (E = E.slice(1));
      var O = E.split(/e/i);
      if (O.length > 2) throw new Error("Invalid integer: " + O.join("e"));
      if (O.length === 2) {
        var b = O[1];
        if (b[0] === "+" && (b = b.slice(1)), b = +b, b !== v(b) || !p(b)) throw new Error("Invalid integer: " + b + " is not a valid expone\
nt.");
        var q = O[0], W = q.indexOf(".");
        if (W >= 0 && (b -= q.length - W - 1, q = q.slice(0, W) + q.slice(W + 1)), b < 0) throw new Error("Cannot include negative exponent \
part for integers");
        q += new Array(b + 1).join("0"), E = q;
      }
      var J = /^([0-9][0-9]*)$/.test(E);
      if (!J) throw new Error("Invalid integer: " + E);
      if (u)
        return new h(BigInt(_ ? "-" + E : E));
      for (var X = [], oe = E.length, ye = r, ae = oe - ye; oe > 0; )
        X.push(+E.slice(ae, oe)), ae -= ye, ae < 0 && (ae = 0), oe -= ye;
      return g(X), new l(X, _);
    }
    s(fi, "parseStringValue");
    function yn(E) {
      if (u)
        return new h(BigInt(E));
      if (p(E)) {
        if (E !== v(E)) throw new Error(E + " is not an integer.");
        return new c(E);
      }
      return fi(E.toString());
    }
    s(yn, "parseNumberValue");
    function ce(E) {
      return typeof E == "number" ? yn(E) : typeof E == "string" ? fi(E) : typeof E == "bigint" ? new h(E) : E;
    }
    s(ce, "parseValue");
    for (var wt = 0; wt < 1e3; wt++)
      o[wt] = ce(wt), wt > 0 && (o[-wt] = ce(-wt));
    return o.one = o[1], o.zero = o[0], o.minusOne = o[-1], o.max = De, o.min = K, o.gcd = le, o.lcm = ke, o.isInstance = function(E) {
      return E instanceof l || E instanceof c || E instanceof h;
    }, o.randBetween = Xe, o.fromArray = function(E, x, _) {
      return Vt(E.map(ce), ce(x || 10), _);
    }, o;
  }();
  typeof tl < "u" && tl.hasOwnProperty("exports") && (tl.exports = nt);
  typeof define == "function" && define.amd && define(function() {
    return nt;
  });
});

// ../node_modules/bplist-parser/bplistParser.js
var q3 = B((st) => {
  "use strict";
  var IH = H("fs"), OH = j3(), qi = !1;
  st.maxObjectSize = 100 * 1e3 * 1e3;
  st.maxObjectCount = 32768;
  var RH = 9783072e5, NH = st.UID = function(e) {
    this.UID = e;
  }, Due = st.parseFile = function(e, t) {
    return new Promise(function(r, i) {
      function n(a) {
        let u = null, o;
        try {
          o = LH(a), r(o);
        } catch (l) {
          u = l, i(u);
        } finally {
          t && t(u, o);
        }
      }
      if (s(n, "tryParseBuffer"), Buffer.isBuffer(e))
        return n(e);
      IH.readFile(e, function(a, u) {
        if (a)
          return i(a), t(a);
        n(u);
      });
    });
  }, LH = st.parseBuffer = function(e) {
    if (e.slice(0, 6).toString("utf8") !== "bplist")
      throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.");
    let r = e.slice(e.length - 32, e.length), i = r.readUInt8(6);
    qi && console.log("offsetSize: " + i);
    let n = r.readUInt8(7);
    qi && console.log("objectRefSize: " + n);
    let a = Um(r, 8);
    qi && console.log("numObjects: " + a);
    let u = Um(r, 16);
    qi && console.log("topObject: " + u);
    let o = Um(r, 24);
    if (qi && console.log("offsetTableOffset: " + o), a > st.maxObjectCount)
      throw new Error("maxObjectCount exceeded");
    let l = [];
    for (let h = 0; h < a; h++) {
      let p = e.slice(o + h * i, o + (h + 1) * i);
      l[h] = Pt(p, 0), qi && console.log("Offset for Object #" + h + " is " + l[h] + " [" + l[h].toString(16) + "]");
    }
    function c(h) {
      let p = l[h], d = e[p], m = (d & 240) >> 4, g = d & 15;
      switch (m) {
        case 0:
          return D();
        case 1:
          return y();
        case 8:
          return C();
        case 2:
          return S();
        case 3:
          return T();
        case 4:
          return j();
        case 5:
          return w();
        case 6:
          return w(!0);
        case 10:
          return A();
        case 13:
          return P();
        default:
          throw new Error("Unhandled type 0x" + m.toString(16));
      }
      function D() {
        switch (g) {
          case 0:
            return null;
          case 8:
            return !1;
          case 9:
            return !0;
          case 15:
            return null;
          default:
            throw new Error("Unhandled simple type 0x" + m.toString(16));
        }
      }
      s(D, "parseSimple");
      function v(k) {
        let $ = "", M;
        for (M = 0; M < k.length && k[M] == 0; M++)
          ;
        for (; M < k.length; M++) {
          let V = "00" + k[M].toString(16);
          $ += V.substr(V.length - 2);
        }
        return $;
      }
      s(v, "bufferToHexString");
      function y() {
        let k = Math.pow(2, g);
        if (g == 4) {
          let $ = e.slice(p + 1, p + 1 + k), M = v($);
          return OH(M, 16);
        }
        if (g == 3)
          return e.readInt32BE(p + 1);
        if (k < st.maxObjectSize)
          return Pt(e.slice(p + 1, p + 1 + k));
        throw new Error("To little heap space available! Wanted to read " + k + " bytes, but only " + st.maxObjectSize + " are available.");
      }
      s(y, "parseInteger");
      function C() {
        let k = g + 1;
        if (k < st.maxObjectSize)
          return new NH(Pt(e.slice(p + 1, p + 1 + k)));
        throw new Error("To little heap space available! Wanted to read " + k + " bytes, but only " + st.maxObjectSize + " are available.");
      }
      s(C, "parseUID");
      function S() {
        let k = Math.pow(2, g);
        if (k < st.maxObjectSize) {
          let $ = e.slice(p + 1, p + 1 + k);
          if (k === 4)
            return $.readFloatBE(0);
          if (k === 8)
            return $.readDoubleBE(0);
        } else
          throw new Error("To little heap space available! Wanted to read " + k + " bytes, but only " + st.maxObjectSize + " are available.");
      }
      s(S, "parseReal");
      function T() {
        g != 3 && console.error("Unknown date type :" + g + ". Parsing anyway...");
        let k = e.slice(p + 1, p + 9);
        return new Date(RH + 1e3 * k.readDoubleBE(0));
      }
      s(T, "parseDate");
      function j() {
        let k = 1, $ = g;
        if (g == 15) {
          let M = e[p + 1], V = (M & 240) / 16;
          V != 1 && console.error("0x4: UNEXPECTED LENGTH-INT TYPE! " + V);
          let U = M & 15, G = Math.pow(2, U);
          k = 2 + G, G < 3, $ = Pt(e.slice(p + 2, p + 2 + G));
        }
        if ($ < st.maxObjectSize)
          return e.slice(p + k, p + k + $);
        throw new Error("To little heap space available! Wanted to read " + $ + " bytes, but only " + st.maxObjectSize + " are available.");
      }
      s(j, "parseData");
      function w(k) {
        k = k || 0;
        let $ = "utf8", M = g, V = 1;
        if (g == 15) {
          let U = e[p + 1], G = (U & 240) / 16;
          G != 1 && console.err("UNEXPECTED LENGTH-INT TYPE! " + G);
          let R = U & 15, N = Math.pow(2, R);
          V = 2 + N, N < 3, M = Pt(e.slice(p + 2, p + 2 + N));
        }
        if (M *= k + 1, M < st.maxObjectSize) {
          let U = Buffer.from(e.slice(p + V, p + V + M));
          return k && (U = MH(U), $ = "ucs2"), U.toString($);
        }
        throw new Error("To little heap space available! Wanted to read " + M + " bytes, but only " + st.maxObjectSize + " are available.");
      }
      s(w, "parsePlistString");
      function A() {
        let k = g, $ = 1;
        if (g == 15) {
          let V = e[p + 1], U = (V & 240) / 16;
          U != 1 && console.error("0xa: UNEXPECTED LENGTH-INT TYPE! " + U);
          let G = V & 15, R = Math.pow(2, G);
          $ = 2 + R, R < 3, k = Pt(e.slice(p + 2, p + 2 + R));
        }
        if (k * n > st.maxObjectSize)
          throw new Error("To little heap space available!");
        let M = [];
        for (let V = 0; V < k; V++) {
          let U = Pt(e.slice(p + $ + V * n, p + $ + (V + 1) * n));
          M[V] = c(U);
        }
        return M;
      }
      s(A, "parseArray");
      function P() {
        let k = g, $ = 1;
        if (g == 15) {
          let V = e[p + 1], U = (V & 240) / 16;
          U != 1 && console.error("0xD: UNEXPECTED LENGTH-INT TYPE! " + U);
          let G = V & 15, R = Math.pow(2, G);
          $ = 2 + R, R < 3, k = Pt(e.slice(p + 2, p + 2 + R));
        }
        if (k * 2 * n > st.maxObjectSize)
          throw new Error("To little heap space available!");
        qi && console.log("Parsing dictionary #" + h);
        let M = {};
        for (let V = 0; V < k; V++) {
          let U = Pt(e.slice(p + $ + V * n, p + $ + (V + 1) * n)), G = Pt(e.slice(p + $ + k * n + V * n, p + $ + k * n + (V + 1) * n)), R = c(
          U), N = c(G);
          qi && console.log("  DICT #" + h + ": Mapped " + R + " to " + N), M[R] = N;
        }
        return M;
      }
      s(P, "parseDictionary");
    }
    return s(c, "parseObject"), [c(u)];
  };
  function Pt(e, t) {
    t = t || 0;
    let r = 0;
    for (let i = t; i < e.length; i++)
      r <<= 8, r |= e[i] & 255;
    return r;
  }
  s(Pt, "readUInt");
  function Um(e, t) {
    return e.slice(t, t + 8).readUInt32BE(4, 8);
  }
  s(Um, "readUInt64BE");
  function MH(e) {
    let t = e.length;
    for (let r = 0; r < t; r += 2) {
      let i = e[r];
      e[r] = e[r + 1], e[r + 1] = i;
    }
    return e;
  }
  s(MH, "swapBytes");
});

// ../node_modules/untildify/index.js
var U3 = B((Eue, V3) => {
  "use strict";
  var jH = H("os"), $3 = jH.homedir();
  V3.exports = (e) => {
    if (typeof e != "string")
      throw new TypeError(`Expected a string, got ${typeof e}`);
    return $3 ? e.replace(/^~(?=$|\/|\\)/, $3) : e;
  };
});

// ../node_modules/@aw-web-design/x-default-browser/node_modules/default-browser-id/index.js
var J3 = {};
di(J3, {
  default: () => W3
});
import qH from "os";
import { promises as $H } from "fs";
async function W3() {
  if (process.platform !== "darwin")
    throw new Error("macOS only");
  let e = "com.apple.Safari", t;
  try {
    t = await $H.readFile(UH);
  } catch (n) {
    if (n.code === "ENOENT")
      return e;
    throw n;
  }
  let r = z3.default.parseBuffer(t), i = r && r[0].LSHandlers;
  if (!i || i.length === 0)
    return e;
  for (let n of i)
    if (n.LSHandlerURLScheme === "http" && n.LSHandlerRoleAll) {
      e = n.LSHandlerRoleAll;
      break;
    }
  return e;
}
var z3, H3, VH, UH, G3 = ut(() => {
  z3 = pe(q3(), 1), H3 = pe(U3(), 1), VH = Number(qH.release().split(".")[0]), UH = (0, H3.default)(VH >= 14 ? "~/Library/Preferences/com.ap\
ple.LaunchServices/com.apple.launchservices.secure.plist" : "~/Library/Preferences/com.apple.LaunchServices.plist");
  s(W3, "defaultBrowserId");
});

// ../node_modules/@aw-web-design/x-default-browser/src/detect-mac.js
var Y3 = B((wue, X3) => {
  var zH = Promise.resolve().then(() => (G3(), J3));
  X3.exports = async function(e) {
    let t = await zH.then((r) => r.default());
    if (t) {
      let r = t.toLowerCase(), i = {
        isIE: !1,
        isSafari: r.indexOf("safari") > -1,
        isFirefox: r.indexOf("firefox") > -1,
        isChrome: r.indexOf("google") > -1,
        isChromium: r.indexOf("chromium") > -1,
        // untested
        isOpera: r.indexOf("opera") > -1,
        identity: t
      };
      i.isBlink = i.isChrome || i.isChromium || i.isOpera, i.isWebkit = i.isSafari || i.isBlink, i.commonName = Ca()(i), e(null, i);
    } else
      e("Unable to retrieve default browser");
  };
});

// ../node_modules/@aw-web-design/x-default-browser/src/detect-linux.js
var Q3 = B((Aue, K3) => {
  var HH = H("child_process").exec;
  K3.exports = function(e) {
    var t = "xdg-mime query default x-scheme-handler/http";
    HH(t, function(r, i, n) {
      if (r) {
        e("Unable to execute the query: " + r + `
` + n);
        return;
      }
      var a = i, u = {
        isIE: !1,
        isSafari: !1,
        isFirefox: a.indexOf("firefox") > -1,
        isChrome: a.indexOf("google") > -1,
        isChromium: a.indexOf("chromium") > -1,
        isOpera: a.indexOf("opera") > -1,
        identity: a
      };
      u.isWebkit = u.isBlink = u.isChrome || u.isChromium || u.isOpera, u.commonName = Ca()(u), e(null, u);
    });
  };
});

// ../node_modules/@aw-web-design/x-default-browser/src/detect-stub.js
var e_ = B((Fue, Z3) => {
  Z3.exports = function(e) {
    e("Your platform is not supported, sorry. Patches welcome.");
  };
});

// ../node_modules/@aw-web-design/x-default-browser/index.js
var r_ = B((Sue, t_) => {
  var hs, wa = H("os");
  wa.platform() == "win32" ? wa.release().indexOf("10.") == 0 ? hs = N3() : hs = M3() : wa.platform() == "darwin" ? hs = Y3() : wa.platform() ==
  "linux" || wa.platform() == "freebsd" ? hs = Q3() : hs = e_();
  t_.exports = hs;
});

// ../node_modules/is-docker/index.js
var Hm = B((_ue, n_) => {
  "use strict";
  var i_ = H("fs"), zm;
  function WH() {
    try {
      return i_.statSync("/.dockerenv"), !0;
    } catch {
      return !1;
    }
  }
  s(WH, "hasDockerEnv");
  function JH() {
    try {
      return i_.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
    } catch {
      return !1;
    }
  }
  s(JH, "hasDockerCGroup");
  n_.exports = () => (zm === void 0 && (zm = WH() || JH()), zm);
});

// ../node_modules/open/node_modules/is-wsl/index.js
var u_ = B((Tue, Wm) => {
  "use strict";
  var GH = H("os"), XH = H("fs"), s_ = Hm(), a_ = /* @__PURE__ */ s(() => {
    if (process.platform !== "linux")
      return !1;
    if (GH.release().toLowerCase().includes("microsoft"))
      return !s_();
    try {
      return XH.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !s_() : !1;
    } catch {
      return !1;
    }
  }, "isWsl");
  process.env.__IS_WSL_TEST__ ? Wm.exports = a_ : Wm.exports = a_();
});

// ../node_modules/open/node_modules/define-lazy-prop/index.js
var l_ = B((Pue, o_) => {
  "use strict";
  o_.exports = (e, t, r) => {
    let i = /* @__PURE__ */ s((n) => Object.defineProperty(e, t, { value: n, enumerable: !0, writable: !0 }), "define");
    return Object.defineProperty(e, t, {
      configurable: !0,
      enumerable: !0,
      get() {
        let n = r();
        return i(n), n;
      },
      set(n) {
        i(n);
      }
    }), e;
  };
});

// ../node_modules/open/index.js
var g_ = B((Oue, m_) => {
  var YH = H("path"), KH = H("child_process"), { promises: il, constants: d_ } = H("fs"), rl = u_(), QH = Hm(), Gm = l_(), c_ = YH.join(__dirname,
  "xdg-open"), { platform: ps, arch: h_ } = process, ZH = /* @__PURE__ */ s(() => {
    try {
      return il.statSync("/run/.containerenv"), !0;
    } catch {
      return !1;
    }
  }, "hasContainerEnv"), Jm;
  function eW() {
    return Jm === void 0 && (Jm = ZH() || QH()), Jm;
  }
  s(eW, "isInsideContainer");
  var tW = /* @__PURE__ */ (() => {
    let e = "/mnt/", t;
    return async function() {
      if (t)
        return t;
      let r = "/etc/wsl.conf", i = !1;
      try {
        await il.access(r, d_.F_OK), i = !0;
      } catch {
      }
      if (!i)
        return e;
      let n = await il.readFile(r, { encoding: "utf8" }), a = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);
      return a ? (t = a.groups.mountPoint.trim(), t = t.endsWith("/") ? t : `${t}/`, t) : e;
    };
  })(), p_ = /* @__PURE__ */ s(async (e, t) => {
    let r;
    for (let i of e)
      try {
        return await t(i);
      } catch (n) {
        r = n;
      }
    throw r;
  }, "pTryEach"), nl = /* @__PURE__ */ s(async (e) => {
    if (e = {
      wait: !1,
      background: !1,
      newInstance: !1,
      allowNonzeroExitCode: !1,
      ...e
    }, Array.isArray(e.app))
      return p_(e.app, (o) => nl({
        ...e,
        app: o
      }));
    let { name: t, arguments: r = [] } = e.app || {};
    if (r = [...r], Array.isArray(t))
      return p_(t, (o) => nl({
        ...e,
        app: {
          name: o,
          arguments: r
        }
      }));
    let i, n = [], a = {};
    if (ps === "darwin")
      i = "open", e.wait && n.push("--wait-apps"), e.background && n.push("--background"), e.newInstance && n.push("--new"), t && n.push("-a",
      t);
    else if (ps === "win32" || rl && !eW() && !t) {
      let o = await tW();
      i = rl ? `${o}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\p\
owershell`, n.push(
        "-NoProfile",
        "-NonInteractive",
        "\u2013ExecutionPolicy",
        "Bypass",
        "-EncodedCommand"
      ), rl || (a.windowsVerbatimArguments = !0);
      let l = ["Start"];
      e.wait && l.push("-Wait"), t ? (l.push(`"\`"${t}\`""`, "-ArgumentList"), e.target && r.unshift(e.target)) : e.target && l.push(`"${e.target}\
"`), r.length > 0 && (r = r.map((c) => `"\`"${c}\`""`), l.push(r.join(","))), e.target = Buffer.from(l.join(" "), "utf16le").toString("base6\
4");
    } else {
      if (t)
        i = t;
      else {
        let o = !__dirname || __dirname === "/", l = !1;
        try {
          await il.access(c_, d_.X_OK), l = !0;
        } catch {
        }
        i = process.versions.electron || ps === "android" || o || !l ? "xdg-open" : c_;
      }
      r.length > 0 && n.push(...r), e.wait || (a.stdio = "ignore", a.detached = !0);
    }
    e.target && n.push(e.target), ps === "darwin" && r.length > 0 && n.push("--args", ...r);
    let u = KH.spawn(i, n, a);
    return e.wait ? new Promise((o, l) => {
      u.once("error", l), u.once("close", (c) => {
        if (!e.allowNonzeroExitCode && c > 0) {
          l(new Error(`Exited with code ${c}`));
          return;
        }
        o(u);
      });
    }) : (u.unref(), u);
  }, "baseOpen"), Xm = /* @__PURE__ */ s((e, t) => {
    if (typeof e != "string")
      throw new TypeError("Expected a `target`");
    return nl({
      ...t,
      target: e
    });
  }, "open"), rW = /* @__PURE__ */ s((e, t) => {
    if (typeof e != "string")
      throw new TypeError("Expected a `name`");
    let { arguments: r = [] } = t || {};
    if (r != null && !Array.isArray(r))
      throw new TypeError("Expected `appArguments` as Array type");
    return nl({
      ...t,
      app: {
        name: e,
        arguments: r
      }
    });
  }, "openApp");
  function f_(e) {
    if (typeof e == "string" || Array.isArray(e))
      return e;
    let { [h_]: t } = e;
    if (!t)
      throw new Error(`${h_} is not supported`);
    return t;
  }
  s(f_, "detectArchBinary");
  function Ym({ [ps]: e }, { wsl: t }) {
    if (t && rl)
      return f_(t);
    if (!e)
      throw new Error(`${ps} is not supported`);
    return f_(e);
  }
  s(Ym, "detectPlatformBinary");
  var sl = {};
  Gm(sl, "chrome", () => Ym({
    darwin: "google chrome",
    win32: "chrome",
    linux: ["google-chrome", "google-chrome-stable", "chromium"]
  }, {
    wsl: {
      ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
      x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
    }
  }));
  Gm(sl, "firefox", () => Ym({
    darwin: "firefox",
    win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
    linux: "firefox"
  }, {
    wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
  }));
  Gm(sl, "edge", () => Ym({
    darwin: "microsoft edge",
    win32: "msedge",
    linux: ["microsoft-edge", "microsoft-edge-dev"]
  }, {
    wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
  }));
  Xm.apps = sl;
  Xm.openApp = rW;
  m_.exports = Xm;
});

// ../node_modules/address/lib/address.js
var S_ = B((que, F_) => {
  "use strict";
  var Km = H("os"), sW = H("fs"), aW = H("child_process"), uW = "/etc/resolv.conf";
  function A_() {
    var e = "eth", t = Km.platform();
    return t === "darwin" ? e = "en" : t === "win32" && (e = null), e;
  }
  s(A_, "getInterfaceName");
  function oW() {
    return Km.platform() === "win32" ? "ipconfig/all" : "/sbin/ifconfig";
  }
  s(oW, "getIfconfigCMD");
  function b_(e, t) {
    return t === "IPv4" ? e === "IPv4" || e === 4 : t === "IPv6" ? e === "IPv6" || e === 6 : e === t;
  }
  s(b_, "matchName");
  function It(e, t) {
    typeof e == "function" && (t = e, e = null);
    var r = {
      ip: It.ip(e),
      ipv6: It.ipv6(e),
      mac: null
    };
    It.mac(e, function(i, n) {
      n && (r.mac = n), t(i, r);
    });
  }
  s(It, "address");
  It.interface = function(e, t) {
    var r = Km.networkInterfaces(), i = !t;
    t = t || A_(), e = e || "IPv4";
    for (var n = -1; n < 8; n++) {
      var a = t + (n >= 0 ? n : ""), u = r[a];
      if (u)
        for (var o = 0; o < u.length; o++) {
          var l = u[o];
          if (b_(l.family, e))
            return l;
        }
    }
    if (i)
      for (var c in r)
        for (var u = r[c], n = 0; n < u.length; n++) {
          var l = u[n];
          if (b_(l.family, e) && !l.address.startsWith("127."))
            return l;
        }
  };
  It.ip = function(e) {
    var t = It.interface("IPv4", e);
    return t && t.address;
  };
  It.ipv6 = function(e) {
    var t = It.interface("IPv6", e);
    return t && t.address;
  };
  var v_ = /^(\w+)\:\s+flags=/, C_ = /^(\w+)\s{2,}link encap:\w+/i, w_ = It.MAC_RE = /(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,
  lW = It.MAC_IP_RE = /inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;
  function cW(e, t, r) {
    for (var i = e.split(`
`), n = 0; n < i.length; n++) {
      var a = i[n].trimRight(), u = v_.exec(a) || C_.exec(a);
      if (u) {
        var o = u[1];
        if (o.indexOf(t) === 0) {
          var l = null, c = null, h = w_.exec(a);
          for (h && (c = h[1]), n++; ; ) {
            if (a = i[n], !a || v_.exec(a) || C_.exec(a)) {
              n--;
              break;
            }
            c || (h = w_.exec(a), h && (c = h[1])), l || (h = lW.exec(a), h && (l = h[1])), n++;
          }
          if (l === r)
            return c;
        }
      }
    }
  }
  s(cW, "getMAC");
  It.mac = function(e, t) {
    typeof e == "function" && (t = e, e = null), e = e || A_();
    var r = It.interface("IPv4", e);
    if (!r)
      return t();
    if (!process.env.CI && (r.mac === "ff:00:00:00:00:00" || r.mac === "00:00:00:00:00:00") && (r.mac = ""), r.mac)
      return t(null, r.mac);
    aW.exec(oW(), { timeout: 5e3 }, function(i, n, a) {
      if (i || !n)
        return t(i);
      var u = cW(n || "", e, r.address);
      t(null, u);
    });
  };
  var hW = /^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;
  It.dns = function(e, t) {
    typeof e == "function" && (t = e, e = null), e = e || uW, sW.readFile(e, "utf8", function(r, i) {
      if (r)
        return t(r);
      var n = [];
      i = i || "";
      for (var a = i.split(`
`), u = 0; u < a.length; u++) {
        var o = a[u].trim(), l = hW.exec(o);
        l && n.push(l[1]);
      }
      t(null, n);
    });
  };
  F_.exports = It;
});

// ../node_modules/ms/index.js
var k_ = B((Vue, __) => {
  var fs = 1e3, ds = fs * 60, ms = ds * 60, pn = ms * 24, pW = pn * 7, fW = pn * 365.25;
  __.exports = function(e, t) {
    t = t || {};
    var r = typeof e;
    if (r === "string" && e.length > 0)
      return dW(e);
    if (r === "number" && isFinite(e))
      return t.long ? gW(e) : mW(e);
    throw new Error(
      "val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
    );
  };
  function dW(e) {
    if (e = String(e), !(e.length > 100)) {
      var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.
      exec(
        e
      );
      if (t) {
        var r = parseFloat(t[1]), i = (t[2] || "ms").toLowerCase();
        switch (i) {
          case "years":
          case "year":
          case "yrs":
          case "yr":
          case "y":
            return r * fW;
          case "weeks":
          case "week":
          case "w":
            return r * pW;
          case "days":
          case "day":
          case "d":
            return r * pn;
          case "hours":
          case "hour":
          case "hrs":
          case "hr":
          case "h":
            return r * ms;
          case "minutes":
          case "minute":
          case "mins":
          case "min":
          case "m":
            return r * ds;
          case "seconds":
          case "second":
          case "secs":
          case "sec":
          case "s":
            return r * fs;
          case "milliseconds":
          case "millisecond":
          case "msecs":
          case "msec":
          case "ms":
            return r;
          default:
            return;
        }
      }
    }
  }
  s(dW, "parse");
  function mW(e) {
    var t = Math.abs(e);
    return t >= pn ? Math.round(e / pn) + "d" : t >= ms ? Math.round(e / ms) + "h" : t >= ds ? Math.round(e / ds) + "m" : t >= fs ? Math.round(
    e / fs) + "s" : e + "ms";
  }
  s(mW, "fmtShort");
  function gW(e) {
    var t = Math.abs(e);
    return t >= pn ? al(e, t, pn, "day") : t >= ms ? al(e, t, ms, "hour") : t >= ds ? al(e, t, ds, "minute") : t >= fs ? al(e, t, fs, "secon\
d") : e + " ms";
  }
  s(gW, "fmtLong");
  function al(e, t, r, i) {
    var n = t >= r * 1.5;
    return Math.round(e / r) + " " + i + (n ? "s" : "");
  }
  s(al, "plural");
});

// ../node_modules/debug/src/common.js
var Qm = B((zue, T_) => {
  function DW(e) {
    r.debug = r, r.default = r, r.coerce = l, r.disable = u, r.enable = n, r.enabled = o, r.humanize = k_(), r.destroy = c, Object.keys(e).forEach(
    (h) => {
      r[h] = e[h];
    }), r.names = [], r.skips = [], r.formatters = {};
    function t(h) {
      let p = 0;
      for (let d = 0; d < h.length; d++)
        p = (p << 5) - p + h.charCodeAt(d), p |= 0;
      return r.colors[Math.abs(p) % r.colors.length];
    }
    s(t, "selectColor"), r.selectColor = t;
    function r(h) {
      let p, d = null, m, g;
      function D(...v) {
        if (!D.enabled)
          return;
        let y = D, C = Number(/* @__PURE__ */ new Date()), S = C - (p || C);
        y.diff = S, y.prev = p, y.curr = C, p = C, v[0] = r.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
        let T = 0;
        v[0] = v[0].replace(/%([a-zA-Z%])/g, (w, A) => {
          if (w === "%%")
            return "%";
          T++;
          let P = r.formatters[A];
          if (typeof P == "function") {
            let k = v[T];
            w = P.call(y, k), v.splice(T, 1), T--;
          }
          return w;
        }), r.formatArgs.call(y, v), (y.log || r.log).apply(y, v);
      }
      return s(D, "debug"), D.namespace = h, D.useColors = r.useColors(), D.color = r.selectColor(h), D.extend = i, D.destroy = r.destroy, Object.
      defineProperty(D, "enabled", {
        enumerable: !0,
        configurable: !1,
        get: /* @__PURE__ */ s(() => d !== null ? d : (m !== r.namespaces && (m = r.namespaces, g = r.enabled(h)), g), "get"),
        set: /* @__PURE__ */ s((v) => {
          d = v;
        }, "set")
      }), typeof r.init == "function" && r.init(D), D;
    }
    s(r, "createDebug");
    function i(h, p) {
      let d = r(this.namespace + (typeof p > "u" ? ":" : p) + h);
      return d.log = this.log, d;
    }
    s(i, "extend");
    function n(h) {
      r.save(h), r.namespaces = h, r.names = [], r.skips = [];
      let p = (typeof h == "string" ? h : "").trim().replace(" ", ",").split(",").filter(Boolean);
      for (let d of p)
        d[0] === "-" ? r.skips.push(d.slice(1)) : r.names.push(d);
    }
    s(n, "enable");
    function a(h, p) {
      let d = 0, m = 0, g = -1, D = 0;
      for (; d < h.length; )
        if (m < p.length && (p[m] === h[d] || p[m] === "*"))
          p[m] === "*" ? (g = m, D = d, m++) : (d++, m++);
        else if (g !== -1)
          m = g + 1, D++, d = D;
        else
          return !1;
      for (; m < p.length && p[m] === "*"; )
        m++;
      return m === p.length;
    }
    s(a, "matchesTemplate");
    function u() {
      let h = [
        ...r.names,
        ...r.skips.map((p) => "-" + p)
      ].join(",");
      return r.enable(""), h;
    }
    s(u, "disable");
    function o(h) {
      for (let p of r.skips)
        if (a(h, p))
          return !1;
      for (let p of r.names)
        if (a(h, p))
          return !0;
      return !1;
    }
    s(o, "enabled");
    function l(h) {
      return h instanceof Error ? h.stack || h.message : h;
    }
    s(l, "coerce");
    function c() {
      console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\
n of `debug`.");
    }
    return s(c, "destroy"), r.enable(r.load()), r;
  }
  s(DW, "setup");
  T_.exports = DW;
});

// ../node_modules/debug/src/browser.js
var B_ = B((qt, ul) => {
  qt.formatArgs = xW;
  qt.save = EW;
  qt.load = bW;
  qt.useColors = yW;
  qt.storage = vW();
  qt.destroy = /* @__PURE__ */ (() => {
    let e = !1;
    return () => {
      e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the nex\
t major version of `debug`."));
    };
  })();
  qt.colors = [
    "#0000CC",
    "#0000FF",
    "#0033CC",
    "#0033FF",
    "#0066CC",
    "#0066FF",
    "#0099CC",
    "#0099FF",
    "#00CC00",
    "#00CC33",
    "#00CC66",
    "#00CC99",
    "#00CCCC",
    "#00CCFF",
    "#3300CC",
    "#3300FF",
    "#3333CC",
    "#3333FF",
    "#3366CC",
    "#3366FF",
    "#3399CC",
    "#3399FF",
    "#33CC00",
    "#33CC33",
    "#33CC66",
    "#33CC99",
    "#33CCCC",
    "#33CCFF",
    "#6600CC",
    "#6600FF",
    "#6633CC",
    "#6633FF",
    "#66CC00",
    "#66CC33",
    "#9900CC",
    "#9900FF",
    "#9933CC",
    "#9933FF",
    "#99CC00",
    "#99CC33",
    "#CC0000",
    "#CC0033",
    "#CC0066",
    "#CC0099",
    "#CC00CC",
    "#CC00FF",
    "#CC3300",
    "#CC3333",
    "#CC3366",
    "#CC3399",
    "#CC33CC",
    "#CC33FF",
    "#CC6600",
    "#CC6633",
    "#CC9900",
    "#CC9933",
    "#CCCC00",
    "#CCCC33",
    "#FF0000",
    "#FF0033",
    "#FF0066",
    "#FF0099",
    "#FF00CC",
    "#FF00FF",
    "#FF3300",
    "#FF3333",
    "#FF3366",
    "#FF3399",
    "#FF33CC",
    "#FF33FF",
    "#FF6600",
    "#FF6633",
    "#FF9900",
    "#FF9933",
    "#FFCC00",
    "#FFCC33"
  ];
  function yW() {
    if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
      return !0;
    if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
      return !1;
    let e;
    return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
    // Is firebug? http://stackoverflow.com/a/398120/376773
    typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
    // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
    typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >=
    31 || // Double check webkit in userAgent just in case we are in a worker
    typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
  }
  s(yW, "useColors");
  function xW(e) {
    if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" +
    ul.exports.humanize(this.diff), !this.useColors)
      return;
    let t = "color: " + this.color;
    e.splice(1, 0, t, "color: inherit");
    let r = 0, i = 0;
    e[0].replace(/%[a-zA-Z%]/g, (n) => {
      n !== "%%" && (r++, n === "%c" && (i = r));
    }), e.splice(i, 0, t);
  }
  s(xW, "formatArgs");
  qt.log = console.debug || console.log || (() => {
  });
  function EW(e) {
    try {
      e ? qt.storage.setItem("debug", e) : qt.storage.removeItem("debug");
    } catch {
    }
  }
  s(EW, "save");
  function bW() {
    let e;
    try {
      e = qt.storage.getItem("debug");
    } catch {
    }
    return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e;
  }
  s(bW, "load");
  function vW() {
    try {
      return localStorage;
    } catch {
    }
  }
  s(vW, "localstorage");
  ul.exports = Qm()(qt);
  var { formatters: CW } = ul.exports;
  CW.j = function(e) {
    try {
      return JSON.stringify(e);
    } catch (t) {
      return "[UnexpectedJSONParseError]: " + t.message;
    }
  };
});

// ../node_modules/has-flag/index.js
var I_ = B((Jue, P_) => {
  "use strict";
  P_.exports = (e, t = process.argv) => {
    let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", i = t.indexOf(r + e), n = t.indexOf("--");
    return i !== -1 && (n === -1 || i < n);
  };
});

// ../node_modules/supports-color/index.js
var N_ = B((Gue, R_) => {
  "use strict";
  var wW = H("os"), O_ = H("tty"), sr = I_(), { env: ct } = process, $i;
  sr("no-color") || sr("no-colors") || sr("color=false") || sr("color=never") ? $i = 0 : (sr("color") || sr("colors") || sr("color=true") ||
  sr("color=always")) && ($i = 1);
  "FORCE_COLOR" in ct && (ct.FORCE_COLOR === "true" ? $i = 1 : ct.FORCE_COLOR === "false" ? $i = 0 : $i = ct.FORCE_COLOR.length === 0 ? 1 : Math.
  min(parseInt(ct.FORCE_COLOR, 10), 3));
  function Zm(e) {
    return e === 0 ? !1 : {
      level: e,
      hasBasic: !0,
      has256: e >= 2,
      has16m: e >= 3
    };
  }
  s(Zm, "translateLevel");
  function eg(e, t) {
    if ($i === 0)
      return 0;
    if (sr("color=16m") || sr("color=full") || sr("color=truecolor"))
      return 3;
    if (sr("color=256"))
      return 2;
    if (e && !t && $i === void 0)
      return 0;
    let r = $i || 0;
    if (ct.TERM === "dumb")
      return r;
    if (process.platform === "win32") {
      let i = wW.release().split(".");
      return Number(i[0]) >= 10 && Number(i[2]) >= 10586 ? Number(i[2]) >= 14931 ? 3 : 2 : 1;
    }
    if ("CI" in ct)
      return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((i) => i in ct) || ct.CI_NAME === "codeship" ?
      1 : r;
    if ("TEAMCITY_VERSION" in ct)
      return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ct.TEAMCITY_VERSION) ? 1 : 0;
    if (ct.COLORTERM === "truecolor")
      return 3;
    if ("TERM_PROGRAM" in ct) {
      let i = parseInt((ct.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
      switch (ct.TERM_PROGRAM) {
        case "iTerm.app":
          return i >= 3 ? 3 : 2;
        case "Apple_Terminal":
          return 2;
      }
    }
    return /-256(color)?$/i.test(ct.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ct.TERM) || "COLORTERM" in
    ct ? 1 : r;
  }
  s(eg, "supportsColor");
  function AW(e) {
    let t = eg(e, e && e.isTTY);
    return Zm(t);
  }
  s(AW, "getSupportLevel");
  R_.exports = {
    supportsColor: AW,
    stdout: Zm(eg(!0, O_.isatty(1))),
    stderr: Zm(eg(!0, O_.isatty(2)))
  };
});

// ../node_modules/debug/src/node.js
var M_ = B((ht, ll) => {
  var FW = H("tty"), ol = H("util");
  ht.init = IW;
  ht.log = TW;
  ht.formatArgs = _W;
  ht.save = BW;
  ht.load = PW;
  ht.useColors = SW;
  ht.destroy = ol.deprecate(
    () => {
    },
    "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
  );
  ht.colors = [6, 2, 3, 4, 5, 1];
  try {
    let e = N_();
    e && (e.stderr || e).level >= 2 && (ht.colors = [
      20,
      21,
      26,
      27,
      32,
      33,
      38,
      39,
      40,
      41,
      42,
      43,
      44,
      45,
      56,
      57,
      62,
      63,
      68,
      69,
      74,
      75,
      76,
      77,
      78,
      79,
      80,
      81,
      92,
      93,
      98,
      99,
      112,
      113,
      128,
      129,
      134,
      135,
      148,
      149,
      160,
      161,
      162,
      163,
      164,
      165,
      166,
      167,
      168,
      169,
      170,
      171,
      172,
      173,
      178,
      179,
      184,
      185,
      196,
      197,
      198,
      199,
      200,
      201,
      202,
      203,
      204,
      205,
      206,
      207,
      208,
      209,
      214,
      215,
      220,
      221
    ]);
  } catch {
  }
  ht.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => {
    let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (n, a) => a.toUpperCase()), i = process.env[t];
    return /^(yes|on|true|enabled)$/i.test(i) ? i = !0 : /^(no|off|false|disabled)$/i.test(i) ? i = !1 : i === "null" ? i = null : i = Number(
    i), e[r] = i, e;
  }, {});
  function SW() {
    return "colors" in ht.inspectOpts ? !!ht.inspectOpts.colors : FW.isatty(process.stderr.fd);
  }
  s(SW, "useColors");
  function _W(e) {
    let { namespace: t, useColors: r } = this;
    if (r) {
      let i = this.color, n = "\x1B[3" + (i < 8 ? i : "8;5;" + i), a = `  ${n};1m${t} \x1B[0m`;
      e[0] = a + e[0].split(`
`).join(`
` + a), e.push(n + "m+" + ll.exports.humanize(this.diff) + "\x1B[0m");
    } else
      e[0] = kW() + t + " " + e[0];
  }
  s(_W, "formatArgs");
  function kW() {
    return ht.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
  }
  s(kW, "getDate");
  function TW(...e) {
    return process.stderr.write(ol.formatWithOptions(ht.inspectOpts, ...e) + `
`);
  }
  s(TW, "log");
  function BW(e) {
    e ? process.env.DEBUG = e : delete process.env.DEBUG;
  }
  s(BW, "save");
  function PW() {
    return process.env.DEBUG;
  }
  s(PW, "load");
  function IW(e) {
    e.inspectOpts = {};
    let t = Object.keys(ht.inspectOpts);
    for (let r = 0; r < t.length; r++)
      e.inspectOpts[t[r]] = ht.inspectOpts[t[r]];
  }
  s(IW, "init");
  ll.exports = Qm()(ht);
  var { formatters: L_ } = ll.exports;
  L_.o = function(e) {
    return this.inspectOpts.colors = this.useColors, ol.inspect(e, this.inspectOpts).split(`
`).map((t) => t.trim()).join(" ");
  };
  L_.O = function(e) {
    return this.inspectOpts.colors = this.useColors, ol.inspect(e, this.inspectOpts);
  };
});

// ../node_modules/debug/src/index.js
var rg = B((Kue, tg) => {
  typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? tg.exports = B_() : tg.exports = M_();
});

// ../node_modules/detect-port/lib/detect-port.js
var ng = B((Que, j_) => {
  "use strict";
  var OW = H("net"), RW = S_(), Fa = rg()("detect-port");
  j_.exports = (e, t) => {
    let r = "";
    typeof e == "object" && e ? (r = e.hostname, t = e.callback, e = e.port) : typeof e == "function" && (t = e, e = null), e = parseInt(e) ||
    0;
    let i = e + 10;
    return i > 65535 && (i = 65535), Fa("detect free port between [%s, %s)", e, i), typeof t == "function" ? ig(e, i, r, t) : new Promise((n) => {
      ig(e, i, r, (a, u) => {
        n(u);
      });
    });
  };
  function ig(e, t, r, i) {
    function n() {
      e++, e >= t && (Fa("port: %s >= maxPort: %s, give up and use random port", e, t), e = 0, t = 0), ig(e, t, r, i);
    }
    s(n, "handleError"), r ? Aa(e, r, (a, u) => {
      if (a)
        return a.code === "EADDRNOTAVAIL" ? i(new Error("the ip that is not unknown on the machine")) : n();
      i(null, u);
    }) : Aa(e, null, (a, u) => {
      if (e === 0)
        return i(a, u);
      if (a)
        return n(a);
      Aa(e, "0.0.0.0", (o) => {
        if (o)
          return n(o);
        Aa(e, "localhost", (l) => {
          if (l && l.code !== "EADDRNOTAVAIL")
            return n(l);
          Aa(e, RW.ip(), (c, h) => {
            if (c)
              return n(c);
            i(null, h);
          });
        });
      });
    });
  }
  s(ig, "tryListen");
  function Aa(e, t, r) {
    let i = new OW.Server();
    i.on("error", (n) => (Fa("listen %s:%s error: %s", t, e, n), i.close(), n.code === "ENOTFOUND" ? (Fa("ignore dns ENOTFOUND error, get fr\
ee %s:%s", t, e), r(null, e)) : r(n))), i.listen(e, t, () => (e = i.address().port, i.close(), Fa("get free %s:%s", t, e), r(null, e)));
  }
  s(Aa, "listen");
});

// ../node_modules/detect-port/lib/wait-port.js
var $_ = B((eoe, q_) => {
  "use strict";
  var NW = rg()("wait-port"), LW = ng(), MW = /* @__PURE__ */ s((e) => new Promise((t) => setTimeout(t, e)), "sleep");
  async function jW(e, t = {}) {
    let { retryInterval: r = 1e3, retries: i = 1 / 0 } = t, n = 1;
    async function a() {
      if (NW("retries", i, "count", n), n > i) {
        let o = new Error("retries exceeded");
        throw o.retries = i, o.count = n, o;
      }
      return n++, await LW(e) === e ? (await MW(r), a()) : !0;
    }
    return s(a, "loop"), await a();
  }
  s(jW, "waitPort");
  q_.exports = jW;
});

// ../node_modules/detect-port/index.js
var V_ = B((roe, sg) => {
  "use strict";
  sg.exports = ng();
  sg.exports.waitPort = $_();
});

// ../node_modules/eastasianwidth/eastasianwidth.js
var lg = B((joe, og) => {
  var Vi = {};
  typeof og > "u" ? window.eastasianwidth = Vi : og.exports = Vi;
  Vi.eastAsianWidth = function(e) {
    var t = e.charCodeAt(0), r = e.length == 2 ? e.charCodeAt(1) : 0, i = t;
    return 55296 <= t && t <= 56319 && 56320 <= r && r <= 57343 && (t &= 1023, r &= 1023, i = t << 10 | r, i += 65536), i == 12288 || 65281 <=
    i && i <= 65376 || 65504 <= i && i <= 65510 ? "F" : i == 8361 || 65377 <= i && i <= 65470 || 65474 <= i && i <= 65479 || 65482 <= i && i <=
    65487 || 65490 <= i && i <= 65495 || 65498 <= i && i <= 65500 || 65512 <= i && i <= 65518 ? "H" : 4352 <= i && i <= 4447 || 4515 <= i &&
    i <= 4519 || 4602 <= i && i <= 4607 || 9001 <= i && i <= 9002 || 11904 <= i && i <= 11929 || 11931 <= i && i <= 12019 || 12032 <= i && i <=
    12245 || 12272 <= i && i <= 12283 || 12289 <= i && i <= 12350 || 12353 <= i && i <= 12438 || 12441 <= i && i <= 12543 || 12549 <= i && i <=
    12589 || 12593 <= i && i <= 12686 || 12688 <= i && i <= 12730 || 12736 <= i && i <= 12771 || 12784 <= i && i <= 12830 || 12832 <= i && i <=
    12871 || 12880 <= i && i <= 13054 || 13056 <= i && i <= 19903 || 19968 <= i && i <= 42124 || 42128 <= i && i <= 42182 || 43360 <= i && i <=
    43388 || 44032 <= i && i <= 55203 || 55216 <= i && i <= 55238 || 55243 <= i && i <= 55291 || 63744 <= i && i <= 64255 || 65040 <= i && i <=
    65049 || 65072 <= i && i <= 65106 || 65108 <= i && i <= 65126 || 65128 <= i && i <= 65131 || 110592 <= i && i <= 110593 || 127488 <= i &&
    i <= 127490 || 127504 <= i && i <= 127546 || 127552 <= i && i <= 127560 || 127568 <= i && i <= 127569 || 131072 <= i && i <= 194367 || 177984 <=
    i && i <= 196605 || 196608 <= i && i <= 262141 ? "W" : 32 <= i && i <= 126 || 162 <= i && i <= 163 || 165 <= i && i <= 166 || i == 172 ||
    i == 175 || 10214 <= i && i <= 10221 || 10629 <= i && i <= 10630 ? "Na" : i == 161 || i == 164 || 167 <= i && i <= 168 || i == 170 || 173 <=
    i && i <= 174 || 176 <= i && i <= 180 || 182 <= i && i <= 186 || 188 <= i && i <= 191 || i == 198 || i == 208 || 215 <= i && i <= 216 ||
    222 <= i && i <= 225 || i == 230 || 232 <= i && i <= 234 || 236 <= i && i <= 237 || i == 240 || 242 <= i && i <= 243 || 247 <= i && i <=
    250 || i == 252 || i == 254 || i == 257 || i == 273 || i == 275 || i == 283 || 294 <= i && i <= 295 || i == 299 || 305 <= i && i <= 307 ||
    i == 312 || 319 <= i && i <= 322 || i == 324 || 328 <= i && i <= 331 || i == 333 || 338 <= i && i <= 339 || 358 <= i && i <= 359 || i ==
    363 || i == 462 || i == 464 || i == 466 || i == 468 || i == 470 || i == 472 || i == 474 || i == 476 || i == 593 || i == 609 || i == 708 ||
    i == 711 || 713 <= i && i <= 715 || i == 717 || i == 720 || 728 <= i && i <= 731 || i == 733 || i == 735 || 768 <= i && i <= 879 || 913 <=
    i && i <= 929 || 931 <= i && i <= 937 || 945 <= i && i <= 961 || 963 <= i && i <= 969 || i == 1025 || 1040 <= i && i <= 1103 || i == 1105 ||
    i == 8208 || 8211 <= i && i <= 8214 || 8216 <= i && i <= 8217 || 8220 <= i && i <= 8221 || 8224 <= i && i <= 8226 || 8228 <= i && i <= 8231 ||
    i == 8240 || 8242 <= i && i <= 8243 || i == 8245 || i == 8251 || i == 8254 || i == 8308 || i == 8319 || 8321 <= i && i <= 8324 || i == 8364 ||
    i == 8451 || i == 8453 || i == 8457 || i == 8467 || i == 8470 || 8481 <= i && i <= 8482 || i == 8486 || i == 8491 || 8531 <= i && i <= 8532 ||
    8539 <= i && i <= 8542 || 8544 <= i && i <= 8555 || 8560 <= i && i <= 8569 || i == 8585 || 8592 <= i && i <= 8601 || 8632 <= i && i <= 8633 ||
    i == 8658 || i == 8660 || i == 8679 || i == 8704 || 8706 <= i && i <= 8707 || 8711 <= i && i <= 8712 || i == 8715 || i == 8719 || i == 8721 ||
    i == 8725 || i == 8730 || 8733 <= i && i <= 8736 || i == 8739 || i == 8741 || 8743 <= i && i <= 8748 || i == 8750 || 8756 <= i && i <= 8759 ||
    8764 <= i && i <= 8765 || i == 8776 || i == 8780 || i == 8786 || 8800 <= i && i <= 8801 || 8804 <= i && i <= 8807 || 8810 <= i && i <= 8811 ||
    8814 <= i && i <= 8815 || 8834 <= i && i <= 8835 || 8838 <= i && i <= 8839 || i == 8853 || i == 8857 || i == 8869 || i == 8895 || i == 8978 ||
    9312 <= i && i <= 9449 || 9451 <= i && i <= 9547 || 9552 <= i && i <= 9587 || 9600 <= i && i <= 9615 || 9618 <= i && i <= 9621 || 9632 <=
    i && i <= 9633 || 9635 <= i && i <= 9641 || 9650 <= i && i <= 9651 || 9654 <= i && i <= 9655 || 9660 <= i && i <= 9661 || 9664 <= i && i <=
    9665 || 9670 <= i && i <= 9672 || i == 9675 || 9678 <= i && i <= 9681 || 9698 <= i && i <= 9701 || i == 9711 || 9733 <= i && i <= 9734 ||
    i == 9737 || 9742 <= i && i <= 9743 || 9748 <= i && i <= 9749 || i == 9756 || i == 9758 || i == 9792 || i == 9794 || 9824 <= i && i <= 9825 ||
    9827 <= i && i <= 9829 || 9831 <= i && i <= 9834 || 9836 <= i && i <= 9837 || i == 9839 || 9886 <= i && i <= 9887 || 9918 <= i && i <= 9919 ||
    9924 <= i && i <= 9933 || 9935 <= i && i <= 9953 || i == 9955 || 9960 <= i && i <= 9983 || i == 10045 || i == 10071 || 10102 <= i && i <=
    10111 || 11093 <= i && i <= 11097 || 12872 <= i && i <= 12879 || 57344 <= i && i <= 63743 || 65024 <= i && i <= 65039 || i == 65533 || 127232 <=
    i && i <= 127242 || 127248 <= i && i <= 127277 || 127280 <= i && i <= 127337 || 127344 <= i && i <= 127386 || 917760 <= i && i <= 917999 ||
    983040 <= i && i <= 1048573 || 1048576 <= i && i <= 1114109 ? "A" : "N";
  };
  Vi.characterLength = function(e) {
    var t = this.eastAsianWidth(e);
    return t == "F" || t == "W" || t == "A" ? 2 : 1;
  };
  function K_(e) {
    return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
  }
  s(K_, "stringToArray");
  Vi.length = function(e) {
    for (var t = K_(e), r = 0, i = 0; i < t.length; i++)
      r = r + this.characterLength(t[i]);
    return r;
  };
  Vi.slice = function(e, t, r) {
    textLen = Vi.length(e), t = t || 0, r = r || 1, t < 0 && (t = textLen + t), r < 0 && (r = textLen + r);
    for (var i = "", n = 0, a = K_(e), u = 0; u < a.length; u++) {
      var o = a[u], l = Vi.length(o);
      if (n >= t - (l == 2 ? 1 : 0))
        if (n + l <= r)
          i += o;
        else
          break;
      n += l;
    }
    return i;
  };
});

// ../node_modules/emoji-regex/index.js
var cg = B(($oe, Q_) => {
  "use strict";
  Q_.exports = function() {
    return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
  };
});

// ../node_modules/cli-boxes/boxes.json
var pk = B((hle, cJ) => {
  cJ.exports = {
    single: {
      topLeft: "\u250C",
      top: "\u2500",
      topRight: "\u2510",
      right: "\u2502",
      bottomRight: "\u2518",
      bottom: "\u2500",
      bottomLeft: "\u2514",
      left: "\u2502"
    },
    double: {
      topLeft: "\u2554",
      top: "\u2550",
      topRight: "\u2557",
      right: "\u2551",
      bottomRight: "\u255D",
      bottom: "\u2550",
      bottomLeft: "\u255A",
      left: "\u2551"
    },
    round: {
      topLeft: "\u256D",
      top: "\u2500",
      topRight: "\u256E",
      right: "\u2502",
      bottomRight: "\u256F",
      bottom: "\u2500",
      bottomLeft: "\u2570",
      left: "\u2502"
    },
    bold: {
      topLeft: "\u250F",
      top: "\u2501",
      topRight: "\u2513",
      right: "\u2503",
      bottomRight: "\u251B",
      bottom: "\u2501",
      bottomLeft: "\u2517",
      left: "\u2503"
    },
    singleDouble: {
      topLeft: "\u2553",
      top: "\u2500",
      topRight: "\u2556",
      right: "\u2551",
      bottomRight: "\u255C",
      bottom: "\u2500",
      bottomLeft: "\u2559",
      left: "\u2551"
    },
    doubleSingle: {
      topLeft: "\u2552",
      top: "\u2550",
      topRight: "\u2555",
      right: "\u2502",
      bottomRight: "\u255B",
      bottom: "\u2550",
      bottomLeft: "\u2558",
      left: "\u2502"
    },
    classic: {
      topLeft: "+",
      top: "-",
      topRight: "+",
      right: "|",
      bottomRight: "+",
      bottom: "-",
      bottomLeft: "+",
      left: "|"
    },
    arrow: {
      topLeft: "\u2198",
      top: "\u2193",
      topRight: "\u2199",
      right: "\u2190",
      bottomRight: "\u2196",
      bottom: "\u2191",
      bottomLeft: "\u2197",
      left: "\u2192"
    }
  };
});

// ../node_modules/cli-boxes/index.js
var gg = B((ple, mg) => {
  "use strict";
  var fk = pk();
  mg.exports = fk;
  mg.exports.default = fk;
});

// ../node_modules/ansi-align/index.js
var xk = B((mle, yk) => {
  "use strict";
  var DJ = un();
  function mn(e, t) {
    if (!e) return e;
    t = t || {};
    let r = t.align || "center";
    if (r === "left") return e;
    let i = t.split || `
`, n = t.pad || " ", a = r !== "right" ? yJ : xJ, u = !1;
    Array.isArray(e) || (u = !0, e = String(e).split(i));
    let o, l = 0;
    return e = e.map(function(c) {
      return c = String(c), o = DJ(c), l = Math.max(o, l), {
        str: c,
        width: o
      };
    }).map(function(c) {
      return new Array(a(l, c.width) + 1).join(n) + c.str;
    }), u ? e.join(i) : e;
  }
  s(mn, "ansiAlign");
  mn.left = /* @__PURE__ */ s(function(t) {
    return mn(t, { align: "left" });
  }, "left");
  mn.center = /* @__PURE__ */ s(function(t) {
    return mn(t, { align: "center" });
  }, "center");
  mn.right = /* @__PURE__ */ s(function(t) {
    return mn(t, { align: "right" });
  }, "right");
  yk.exports = mn;
  function yJ(e, t) {
    return Math.floor((e - t) / 2);
  }
  s(yJ, "halfDiff");
  function xJ(e, t) {
    return e - t;
  }
  s(xJ, "fullDiff");
});

// ../node_modules/cli-table3/src/debug.js
var gl = B((Lle, Nk) => {
  var Ag = [], Rk = 0, gt = /* @__PURE__ */ s((e, t) => {
    Rk >= t && Ag.push(e);
  }, "debug");
  gt.WARN = 1;
  gt.INFO = 2;
  gt.DEBUG = 3;
  gt.reset = () => {
    Ag = [];
  };
  gt.setDebugLevel = (e) => {
    Rk = e;
  };
  gt.warn = (e) => gt(e, gt.WARN);
  gt.info = (e) => gt(e, gt.INFO);
  gt.debug = (e) => gt(e, gt.DEBUG);
  gt.debugMessages = () => Ag;
  Nk.exports = gt;
});

// ../node_modules/cli-table3/src/utils.js
var Fg = B((jle, qk) => {
  var Lk = un();
  function Dl(e) {
    return e ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
  }
  s(Dl, "codeRegex");
  function zr(e) {
    let t = Dl();
    return ("" + e).replace(t, "").split(`
`).reduce(function(n, a) {
      return Lk(a) > n ? Lk(a) : n;
    }, 0);
  }
  s(zr, "strlen");
  function Ba(e, t) {
    return Array(t + 1).join(e);
  }
  s(Ba, "repeat");
  function MJ(e, t, r, i) {
    let n = zr(e);
    if (t + 1 >= n) {
      let a = t - n;
      switch (i) {
        case "right": {
          e = Ba(r, a) + e;
          break;
        }
        case "center": {
          let u = Math.ceil(a / 2), o = a - u;
          e = Ba(r, o) + e + Ba(r, u);
          break;
        }
        default: {
          e = e + Ba(r, a);
          break;
        }
      }
    }
    return e;
  }
  s(MJ, "pad");
  var ys = {};
  function Pa(e, t, r) {
    t = "\x1B[" + t + "m", r = "\x1B[" + r + "m", ys[t] = { set: e, to: !0 }, ys[r] = { set: e, to: !1 }, ys[e] = { on: t, off: r };
  }
  s(Pa, "addToCodeCache");
  Pa("bold", 1, 22);
  Pa("italics", 3, 23);
  Pa("underline", 4, 24);
  Pa("inverse", 7, 27);
  Pa("strikethrough", 9, 29);
  function Mk(e, t) {
    let r = t[1] ? parseInt(t[1].split(";")[0]) : 0;
    if (r >= 30 && r <= 39 || r >= 90 && r <= 97) {
      e.lastForegroundAdded = t[0];
      return;
    }
    if (r >= 40 && r <= 49 || r >= 100 && r <= 107) {
      e.lastBackgroundAdded = t[0];
      return;
    }
    if (r === 0) {
      for (let n in e)
        Object.prototype.hasOwnProperty.call(e, n) && delete e[n];
      return;
    }
    let i = ys[t[0]];
    i && (e[i.set] = i.to);
  }
  s(Mk, "updateState");
  function jJ(e) {
    let t = Dl(!0), r = t.exec(e), i = {};
    for (; r !== null; )
      Mk(i, r), r = t.exec(e);
    return i;
  }
  s(jJ, "readState");
  function jk(e, t) {
    let r = e.lastBackgroundAdded, i = e.lastForegroundAdded;
    return delete e.lastBackgroundAdded, delete e.lastForegroundAdded, Object.keys(e).forEach(function(n) {
      e[n] && (t += ys[n].off);
    }), r && r != "\x1B[49m" && (t += "\x1B[49m"), i && i != "\x1B[39m" && (t += "\x1B[39m"), t;
  }
  s(jk, "unwindState");
  function qJ(e, t) {
    let r = e.lastBackgroundAdded, i = e.lastForegroundAdded;
    return delete e.lastBackgroundAdded, delete e.lastForegroundAdded, Object.keys(e).forEach(function(n) {
      e[n] && (t = ys[n].on + t);
    }), r && r != "\x1B[49m" && (t = r + t), i && i != "\x1B[39m" && (t = i + t), t;
  }
  s(qJ, "rewindState");
  function $J(e, t) {
    if (e.length === zr(e))
      return e.substr(0, t);
    for (; zr(e) > t; )
      e = e.slice(0, -1);
    return e;
  }
  s($J, "truncateWidth");
  function VJ(e, t) {
    let r = Dl(!0), i = e.split(Dl()), n = 0, a = 0, u = "", o, l = {};
    for (; a < t; ) {
      o = r.exec(e);
      let c = i[n];
      if (n++, a + zr(c) > t && (c = $J(c, t - a)), u += c, a += zr(c), a < t) {
        if (!o)
          break;
        u += o[0], Mk(l, o);
      }
    }
    return jk(l, u);
  }
  s(VJ, "truncateWidthWithAnsi");
  function UJ(e, t, r) {
    return r = r || "\u2026", zr(e) <= t ? e : (t -= zr(r), VJ(e, t) + r);
  }
  s(UJ, "truncate");
  function zJ() {
    return {
      chars: {
        top: "\u2500",
        "top-mid": "\u252C",
        "top-left": "\u250C",
        "top-right": "\u2510",
        bottom: "\u2500",
        "bottom-mid": "\u2534",
        "bottom-left": "\u2514",
        "bottom-right": "\u2518",
        left: "\u2502",
        "left-mid": "\u251C",
        mid: "\u2500",
        "mid-mid": "\u253C",
        right: "\u2502",
        "right-mid": "\u2524",
        middle: "\u2502"
      },
      truncate: "\u2026",
      colWidths: [],
      rowHeights: [],
      colAligns: [],
      rowAligns: [],
      style: {
        "padding-left": 1,
        "padding-right": 1,
        head: ["red"],
        border: ["grey"],
        compact: !1
      },
      head: []
    };
  }
  s(zJ, "defaultOptions");
  function HJ(e, t) {
    e = e || {}, t = t || zJ();
    let r = Object.assign({}, t, e);
    return r.chars = Object.assign({}, t.chars, e.chars), r.style = Object.assign({}, t.style, e.style), r;
  }
  s(HJ, "mergeOptions");
  function WJ(e, t) {
    let r = [], i = t.split(/(\s+)/g), n = [], a = 0, u;
    for (let o = 0; o < i.length; o += 2) {
      let l = i[o], c = a + zr(l);
      a > 0 && u && (c += u.length), c > e ? (a !== 0 && r.push(n.join("")), n = [l], a = zr(l)) : (n.push(u || "", l), a = c), u = i[o + 1];
    }
    return a && r.push(n.join("")), r;
  }
  s(WJ, "wordWrap");
  function JJ(e, t) {
    let r = [], i = "";
    function n(u, o) {
      for (i.length && o && (i += o), i += u; i.length > e; )
        r.push(i.slice(0, e)), i = i.slice(e);
    }
    s(n, "pushLine");
    let a = t.split(/(\s+)/g);
    for (let u = 0; u < a.length; u += 2)
      n(a[u], u && a[u - 1]);
    return i.length && r.push(i), r;
  }
  s(JJ, "textWrap");
  function GJ(e, t, r = !0) {
    let i = [];
    t = t.split(`
`);
    let n = r ? WJ : JJ;
    for (let a = 0; a < t.length; a++)
      i.push.apply(i, n(e, t[a]));
    return i;
  }
  s(GJ, "multiLineWordWrap");
  function XJ(e) {
    let t = {}, r = [];
    for (let i = 0; i < e.length; i++) {
      let n = qJ(t, e[i]);
      t = jJ(n);
      let a = Object.assign({}, t);
      r.push(jk(a, n));
    }
    return r;
  }
  s(XJ, "colorizeLines");
  function YJ(e, t) {
    let r = "\x1B]", i = "\x07", n = ";";
    return [r, "8", n, n, e || t, i, t, r, "8", n, n, i].join("");
  }
  s(YJ, "hyperlink");
  qk.exports = {
    strlen: zr,
    repeat: Ba,
    pad: MJ,
    truncate: UJ,
    mergeOptions: HJ,
    wordWrap: GJ,
    colorizeLines: XJ,
    hyperlink: YJ
  };
});

// ../node_modules/@colors/colors/lib/styles.js
var zk = B(($le, Uk) => {
  var Vk = {};
  Uk.exports = Vk;
  var $k = {
    reset: [0, 0],
    bold: [1, 22],
    dim: [2, 22],
    italic: [3, 23],
    underline: [4, 24],
    inverse: [7, 27],
    hidden: [8, 28],
    strikethrough: [9, 29],
    black: [30, 39],
    red: [31, 39],
    green: [32, 39],
    yellow: [33, 39],
    blue: [34, 39],
    magenta: [35, 39],
    cyan: [36, 39],
    white: [37, 39],
    gray: [90, 39],
    grey: [90, 39],
    brightRed: [91, 39],
    brightGreen: [92, 39],
    brightYellow: [93, 39],
    brightBlue: [94, 39],
    brightMagenta: [95, 39],
    brightCyan: [96, 39],
    brightWhite: [97, 39],
    bgBlack: [40, 49],
    bgRed: [41, 49],
    bgGreen: [42, 49],
    bgYellow: [43, 49],
    bgBlue: [44, 49],
    bgMagenta: [45, 49],
    bgCyan: [46, 49],
    bgWhite: [47, 49],
    bgGray: [100, 49],
    bgGrey: [100, 49],
    bgBrightRed: [101, 49],
    bgBrightGreen: [102, 49],
    bgBrightYellow: [103, 49],
    bgBrightBlue: [104, 49],
    bgBrightMagenta: [105, 49],
    bgBrightCyan: [106, 49],
    bgBrightWhite: [107, 49],
    // legacy styles for colors pre v1.0.0
    blackBG: [40, 49],
    redBG: [41, 49],
    greenBG: [42, 49],
    yellowBG: [43, 49],
    blueBG: [44, 49],
    magentaBG: [45, 49],
    cyanBG: [46, 49],
    whiteBG: [47, 49]
  };
  Object.keys($k).forEach(function(e) {
    var t = $k[e], r = Vk[e] = [];
    r.open = "\x1B[" + t[0] + "m", r.close = "\x1B[" + t[1] + "m";
  });
});

// ../node_modules/@colors/colors/lib/system/has-flag.js
var Wk = B((Vle, Hk) => {
  "use strict";
  Hk.exports = function(e, t) {
    t = t || process.argv;
    var r = t.indexOf("--"), i = /^-{1,2}/.test(e) ? "" : "--", n = t.indexOf(i + e);
    return n !== -1 && (r === -1 ? !0 : n < r);
  };
});

// ../node_modules/@colors/colors/lib/system/supports-colors.js
var Gk = B((Ule, Jk) => {
  "use strict";
  var KJ = H("os"), br = Wk(), Ct = process.env, xs = void 0;
  br("no-color") || br("no-colors") || br("color=false") ? xs = !1 : (br("color") || br("colors") || br("color=true") || br("color=always")) &&
  (xs = !0);
  "FORCE_COLOR" in Ct && (xs = Ct.FORCE_COLOR.length === 0 || parseInt(Ct.FORCE_COLOR, 10) !== 0);
  function QJ(e) {
    return e === 0 ? !1 : {
      level: e,
      hasBasic: !0,
      has256: e >= 2,
      has16m: e >= 3
    };
  }
  s(QJ, "translateLevel");
  function ZJ(e) {
    if (xs === !1)
      return 0;
    if (br("color=16m") || br("color=full") || br("color=truecolor"))
      return 3;
    if (br("color=256"))
      return 2;
    if (e && !e.isTTY && xs !== !0)
      return 0;
    var t = xs ? 1 : 0;
    if (process.platform === "win32") {
      var r = KJ.release().split(".");
      return Number(process.versions.node.split(".")[0]) >= 8 && Number(r[0]) >= 10 && Number(r[2]) >= 10586 ? Number(r[2]) >= 14931 ? 3 : 2 :
      1;
    }
    if ("CI" in Ct)
      return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some(function(n) {
        return n in Ct;
      }) || Ct.CI_NAME === "codeship" ? 1 : t;
    if ("TEAMCITY_VERSION" in Ct)
      return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ct.TEAMCITY_VERSION) ? 1 : 0;
    if ("TERM_PROGRAM" in Ct) {
      var i = parseInt((Ct.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
      switch (Ct.TERM_PROGRAM) {
        case "iTerm.app":
          return i >= 3 ? 3 : 2;
        case "Hyper":
          return 3;
        case "Apple_Terminal":
          return 2;
      }
    }
    return /-256(color)?$/i.test(Ct.TERM) ? 2 : /^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ct.TERM) || "COLORTERM" in Ct ? 1 :
    (Ct.TERM === "dumb", t);
  }
  s(ZJ, "supportsColor");
  function Sg(e) {
    var t = ZJ(e);
    return QJ(t);
  }
  s(Sg, "getSupportLevel");
  Jk.exports = {
    supportsColor: Sg,
    stdout: Sg(process.stdout),
    stderr: Sg(process.stderr)
  };
});

// ../node_modules/@colors/colors/lib/custom/trap.js
var Yk = B((Hle, Xk) => {
  Xk.exports = /* @__PURE__ */ s(function(t, r) {
    var i = "";
    t = t || "Run the trap, drop the bass", t = t.split("");
    var n = {
      a: ["@", "\u0104", "\u023A", "\u0245", "\u0394", "\u039B", "\u0414"],
      b: ["\xDF", "\u0181", "\u0243", "\u026E", "\u03B2", "\u0E3F"],
      c: ["\xA9", "\u023B", "\u03FE"],
      d: ["\xD0", "\u018A", "\u0500", "\u0501", "\u0502", "\u0503"],
      e: [
        "\xCB",
        "\u0115",
        "\u018E",
        "\u0258",
        "\u03A3",
        "\u03BE",
        "\u04BC",
        "\u0A6C"
      ],
      f: ["\u04FA"],
      g: ["\u0262"],
      h: ["\u0126", "\u0195", "\u04A2", "\u04BA", "\u04C7", "\u050A"],
      i: ["\u0F0F"],
      j: ["\u0134"],
      k: ["\u0138", "\u04A0", "\u04C3", "\u051E"],
      l: ["\u0139"],
      m: ["\u028D", "\u04CD", "\u04CE", "\u0520", "\u0521", "\u0D69"],
      n: ["\xD1", "\u014B", "\u019D", "\u0376", "\u03A0", "\u048A"],
      o: [
        "\xD8",
        "\xF5",
        "\xF8",
        "\u01FE",
        "\u0298",
        "\u047A",
        "\u05DD",
        "\u06DD",
        "\u0E4F"
      ],
      p: ["\u01F7", "\u048E"],
      q: ["\u09CD"],
      r: ["\xAE", "\u01A6", "\u0210", "\u024C", "\u0280", "\u042F"],
      s: ["\xA7", "\u03DE", "\u03DF", "\u03E8"],
      t: ["\u0141", "\u0166", "\u0373"],
      u: ["\u01B1", "\u054D"],
      v: ["\u05D8"],
      w: ["\u0428", "\u0460", "\u047C", "\u0D70"],
      x: ["\u04B2", "\u04FE", "\u04FC", "\u04FD"],
      y: ["\xA5", "\u04B0", "\u04CB"],
      z: ["\u01B5", "\u0240"]
    };
    return t.forEach(function(a) {
      a = a.toLowerCase();
      var u = n[a] || [" "], o = Math.floor(Math.random() * u.length);
      typeof n[a] < "u" ? i += n[a][o] : i += a;
    }), i;
  }, "runTheTrap");
});

// ../node_modules/@colors/colors/lib/custom/zalgo.js
var Qk = B((Jle, Kk) => {
  Kk.exports = /* @__PURE__ */ s(function(t, r) {
    t = t || "   he is here   ";
    var i = {
      up: [
        "\u030D",
        "\u030E",
        "\u0304",
        "\u0305",
        "\u033F",
        "\u0311",
        "\u0306",
        "\u0310",
        "\u0352",
        "\u0357",
        "\u0351",
        "\u0307",
        "\u0308",
        "\u030A",
        "\u0342",
        "\u0313",
        "\u0308",
        "\u034A",
        "\u034B",
        "\u034C",
        "\u0303",
        "\u0302",
        "\u030C",
        "\u0350",
        "\u0300",
        "\u0301",
        "\u030B",
        "\u030F",
        "\u0312",
        "\u0313",
        "\u0314",
        "\u033D",
        "\u0309",
        "\u0363",
        "\u0364",
        "\u0365",
        "\u0366",
        "\u0367",
        "\u0368",
        "\u0369",
        "\u036A",
        "\u036B",
        "\u036C",
        "\u036D",
        "\u036E",
        "\u036F",
        "\u033E",
        "\u035B",
        "\u0346",
        "\u031A"
      ],
      down: [
        "\u0316",
        "\u0317",
        "\u0318",
        "\u0319",
        "\u031C",
        "\u031D",
        "\u031E",
        "\u031F",
        "\u0320",
        "\u0324",
        "\u0325",
        "\u0326",
        "\u0329",
        "\u032A",
        "\u032B",
        "\u032C",
        "\u032D",
        "\u032E",
        "\u032F",
        "\u0330",
        "\u0331",
        "\u0332",
        "\u0333",
        "\u0339",
        "\u033A",
        "\u033B",
        "\u033C",
        "\u0345",
        "\u0347",
        "\u0348",
        "\u0349",
        "\u034D",
        "\u034E",
        "\u0353",
        "\u0354",
        "\u0355",
        "\u0356",
        "\u0359",
        "\u035A",
        "\u0323"
      ],
      mid: [
        "\u0315",
        "\u031B",
        "\u0300",
        "\u0301",
        "\u0358",
        "\u0321",
        "\u0322",
        "\u0327",
        "\u0328",
        "\u0334",
        "\u0335",
        "\u0336",
        "\u035C",
        "\u035D",
        "\u035E",
        "\u035F",
        "\u0360",
        "\u0362",
        "\u0338",
        "\u0337",
        "\u0361",
        " \u0489"
      ]
    }, n = [].concat(i.up, i.down, i.mid);
    function a(l) {
      var c = Math.floor(Math.random() * l);
      return c;
    }
    s(a, "randomNumber");
    function u(l) {
      var c = !1;
      return n.filter(function(h) {
        c = h === l;
      }), c;
    }
    s(u, "isChar");
    function o(l, c) {
      var h = "", p, d;
      c = c || {}, c.up = typeof c.up < "u" ? c.up : !0, c.mid = typeof c.mid < "u" ? c.mid : !0, c.down = typeof c.down < "u" ? c.down : !0,
      c.size = typeof c.size < "u" ? c.size : "maxi", l = l.split("");
      for (d in l)
        if (!u(d)) {
          switch (h = h + l[d], p = { up: 0, down: 0, mid: 0 }, c.size) {
            case "mini":
              p.up = a(8), p.mid = a(2), p.down = a(8);
              break;
            case "maxi":
              p.up = a(16) + 3, p.mid = a(4) + 1, p.down = a(64) + 3;
              break;
            default:
              p.up = a(8) + 1, p.mid = a(6) / 2, p.down = a(8) + 1;
              break;
          }
          var m = ["up", "mid", "down"];
          for (var g in m)
            for (var D = m[g], v = 0; v <= p[D]; v++)
              c[D] && (h = h + i[D][a(i[D].length)]);
        }
      return h;
    }
    return s(o, "heComes"), o(t, r);
  }, "zalgo");
});

// ../node_modules/@colors/colors/lib/maps/america.js
var eT = B((Xle, Zk) => {
  Zk.exports = function(e) {
    return function(t, r, i) {
      if (t === " ") return t;
      switch (r % 3) {
        case 0:
          return e.red(t);
        case 1:
          return e.white(t);
        case 2:
          return e.blue(t);
      }
    };
  };
});

// ../node_modules/@colors/colors/lib/maps/zebra.js
var rT = B((Yle, tT) => {
  tT.exports = function(e) {
    return function(t, r, i) {
      return r % 2 === 0 ? t : e.inverse(t);
    };
  };
});

// ../node_modules/@colors/colors/lib/maps/rainbow.js
var nT = B((Kle, iT) => {
  iT.exports = function(e) {
    var t = ["red", "yellow", "green", "blue", "magenta"];
    return function(r, i, n) {
      return r === " " ? r : e[t[i++ % t.length]](r);
    };
  };
});

// ../node_modules/@colors/colors/lib/maps/random.js
var aT = B((Qle, sT) => {
  sT.exports = function(e) {
    var t = [
      "underline",
      "inverse",
      "grey",
      "yellow",
      "red",
      "green",
      "blue",
      "white",
      "cyan",
      "magenta",
      "brightYellow",
      "brightRed",
      "brightGreen",
      "brightBlue",
      "brightWhite",
      "brightCyan",
      "brightMagenta"
    ];
    return function(r, i, n) {
      return r === " " ? r : e[t[Math.round(Math.random() * (t.length - 2))]](r);
    };
  };
});

// ../node_modules/@colors/colors/lib/colors.js
var pT = B((ece, hT) => {
  var ve = {};
  hT.exports = ve;
  ve.themes = {};
  var eG = H("util"), Dn = ve.styles = zk(), oT = Object.defineProperties, tG = new RegExp(/[\r\n]+/g);
  ve.supportsColor = Gk().supportsColor;
  typeof ve.enabled > "u" && (ve.enabled = ve.supportsColor() !== !1);
  ve.enable = function() {
    ve.enabled = !0;
  };
  ve.disable = function() {
    ve.enabled = !1;
  };
  ve.stripColors = ve.strip = function(e) {
    return ("" + e).replace(/\x1B\[\d+m/g, "");
  };
  var Zle = ve.stylize = /* @__PURE__ */ s(function(t, r) {
    if (!ve.enabled)
      return t + "";
    var i = Dn[r];
    return !i && r in ve ? ve[r](t) : i.open + t + i.close;
  }, "stylize"), rG = /[|\\{}()[\]^$+*?.]/g, iG = /* @__PURE__ */ s(function(e) {
    if (typeof e != "string")
      throw new TypeError("Expected a string");
    return e.replace(rG, "\\$&");
  }, "escapeStringRegexp");
  function lT(e) {
    var t = /* @__PURE__ */ s(function r() {
      return sG.apply(r, arguments);
    }, "builder");
    return t._styles = e, t.__proto__ = nG, t;
  }
  s(lT, "build");
  var cT = function() {
    var e = {};
    return Dn.grey = Dn.gray, Object.keys(Dn).forEach(function(t) {
      Dn[t].closeRe = new RegExp(iG(Dn[t].close), "g"), e[t] = {
        get: /* @__PURE__ */ s(function() {
          return lT(this._styles.concat(t));
        }, "get")
      };
    }), e;
  }(), nG = oT(/* @__PURE__ */ s(function() {
  }, "colors"), cT);
  function sG() {
    var e = Array.prototype.slice.call(arguments), t = e.map(function(u) {
      return u != null && u.constructor === String ? u : eG.inspect(u);
    }).join(" ");
    if (!ve.enabled || !t)
      return t;
    for (var r = t.indexOf(`
`) != -1, i = this._styles, n = i.length; n--; ) {
      var a = Dn[i[n]];
      t = a.open + t.replace(a.closeRe, a.open) + a.close, r && (t = t.replace(tG, function(u) {
        return a.close + u + a.open;
      }));
    }
    return t;
  }
  s(sG, "applyStyle");
  ve.setTheme = function(e) {
    if (typeof e == "string") {
      console.log("colors.setTheme now only accepts an object, not a string.  If you are trying to set a theme from a file, it is now your (\
the caller's) responsibility to require the file.  The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); \
The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");
      return;
    }
    for (var t in e)
      (function(r) {
        ve[r] = function(i) {
          if (typeof e[r] == "object") {
            var n = i;
            for (var a in e[r])
              n = ve[e[r][a]](n);
            return n;
          }
          return ve[e[r]](i);
        };
      })(t);
  };
  function aG() {
    var e = {};
    return Object.keys(cT).forEach(function(t) {
      e[t] = {
        get: /* @__PURE__ */ s(function() {
          return lT([t]);
        }, "get")
      };
    }), e;
  }
  s(aG, "init");
  var uG = /* @__PURE__ */ s(function(t, r) {
    var i = r.split("");
    return i = i.map(t), i.join("");
  }, "sequencer");
  ve.trap = Yk();
  ve.zalgo = Qk();
  ve.maps = {};
  ve.maps.america = eT()(ve);
  ve.maps.zebra = rT()(ve);
  ve.maps.rainbow = nT()(ve);
  ve.maps.random = aT()(ve);
  for (uT in ve.maps)
    (function(e) {
      ve[e] = function(t) {
        return uG(ve.maps[e], t);
      };
    })(uT);
  var uT;
  oT(ve, aG());
});

// ../node_modules/@colors/colors/safe.js
var dT = B((rce, fT) => {
  var oG = pT();
  fT.exports = oG;
});

// ../node_modules/cli-table3/src/cell.js
var yT = B((ice, yl) => {
  var { info: lG, debug: DT } = gl(), $t = Fg(), kg = class e {
    static {
      s(this, "Cell");
    }
    /**
     * A representation of a cell within the table.
     * Implementations must have `init` and `draw` methods,
     * as well as `colSpan`, `rowSpan`, `desiredHeight` and `desiredWidth` properties.
     * @param options
     * @constructor
     */
    constructor(t) {
      this.setOptions(t), this.x = null, this.y = null;
    }
    setOptions(t) {
      ["boolean", "number", "string"].indexOf(typeof t) !== -1 && (t = { content: "" + t }), t = t || {}, this.options = t;
      let r = t.content;
      if (["boolean", "number", "string"].indexOf(typeof r) !== -1)
        this.content = String(r);
      else if (!r)
        this.content = this.options.href || "";
      else
        throw new Error("Content needs to be a primitive, got: " + typeof r);
      this.colSpan = t.colSpan || 1, this.rowSpan = t.rowSpan || 1, this.options.href && Object.defineProperty(this, "href", {
        get() {
          return this.options.href;
        }
      });
    }
    mergeTableOptions(t, r) {
      this.cells = r;
      let i = this.options.chars || {}, n = t.chars, a = this.chars = {};
      hG.forEach(function(l) {
        _g(i, n, l, a);
      }), this.truncate = this.options.truncate || t.truncate;
      let u = this.options.style = this.options.style || {}, o = t.style;
      _g(u, o, "padding-left", this), _g(u, o, "padding-right", this), this.head = u.head || o.head, this.border = u.border || o.border, this.
      fixedWidth = t.colWidths[this.x], this.lines = this.computeLines(t), this.desiredWidth = $t.strlen(this.content) + this.paddingLeft + this.
      paddingRight, this.desiredHeight = this.lines.length;
    }
    computeLines(t) {
      let r = t.wordWrap || t.textWrap, { wordWrap: i = r } = this.options;
      if (this.fixedWidth && i) {
        if (this.fixedWidth -= this.paddingLeft + this.paddingRight, this.colSpan) {
          let u = 1;
          for (; u < this.colSpan; )
            this.fixedWidth += t.colWidths[this.x + u], u++;
        }
        let { wrapOnWordBoundary: n = !0 } = t, { wrapOnWordBoundary: a = n } = this.options;
        return this.wrapLines($t.wordWrap(this.fixedWidth, this.content, a));
      }
      return this.wrapLines(this.content.split(`
`));
    }
    wrapLines(t) {
      let r = $t.colorizeLines(t);
      return this.href ? r.map((i) => $t.hyperlink(this.href, i)) : r;
    }
    /**
     * Initializes the Cells data structure.
     *
     * @param tableOptions - A fully populated set of tableOptions.
     * In addition to the standard default values, tableOptions must have fully populated the
     * `colWidths` and `rowWidths` arrays. Those arrays must have lengths equal to the number
     * of columns or rows (respectively) in this table, and each array item must be a Number.
     *
     */
    init(t) {
      let r = this.x, i = this.y;
      this.widths = t.colWidths.slice(r, r + this.colSpan), this.heights = t.rowHeights.slice(i, i + this.rowSpan), this.width = this.widths.
      reduce(gT, -1), this.height = this.heights.reduce(gT, -1), this.hAlign = this.options.hAlign || t.colAligns[r], this.vAlign = this.options.
      vAlign || t.rowAligns[i], this.drawRight = r + this.colSpan == t.colWidths.length;
    }
    /**
     * Draws the given line of the cell.
     * This default implementation defers to methods `drawTop`, `drawBottom`, `drawLine` and `drawEmpty`.
     * @param lineNum - can be `top`, `bottom` or a numerical line number.
     * @param spanningCell - will be a number if being called from a RowSpanCell, and will represent how
     * many rows below it's being called from. Otherwise it's undefined.
     * @returns {String} The representation of this line.
     */
    draw(t, r) {
      if (t == "top") return this.drawTop(this.drawRight);
      if (t == "bottom") return this.drawBottom(this.drawRight);
      let i = $t.truncate(this.content, 10, this.truncate);
      t || lG(`${this.y}-${this.x}: ${this.rowSpan - t}x${this.colSpan} Cell ${i}`);
      let n = Math.max(this.height - this.lines.length, 0), a;
      switch (this.vAlign) {
        case "center":
          a = Math.ceil(n / 2);
          break;
        case "bottom":
          a = n;
          break;
        default:
          a = 0;
      }
      if (t < a || t >= a + this.lines.length)
        return this.drawEmpty(this.drawRight, r);
      let u = this.lines.length > this.height && t + 1 >= this.height;
      return this.drawLine(t - a, this.drawRight, u, r);
    }
    /**
     * Renders the top line of the cell.
     * @param drawRight - true if this method should render the right edge of the cell.
     * @returns {String}
     */
    drawTop(t) {
      let r = [];
      return this.cells ? this.widths.forEach(function(i, n) {
        r.push(this._topLeftChar(n)), r.push($t.repeat(this.chars[this.y == 0 ? "top" : "mid"], i));
      }, this) : (r.push(this._topLeftChar(0)), r.push($t.repeat(this.chars[this.y == 0 ? "top" : "mid"], this.width))), t && r.push(this.chars[this.
      y == 0 ? "topRight" : "rightMid"]), this.wrapWithStyleColors("border", r.join(""));
    }
    _topLeftChar(t) {
      let r = this.x + t, i;
      if (this.y == 0)
        i = r == 0 ? "topLeft" : t == 0 ? "topMid" : "top";
      else if (r == 0)
        i = "leftMid";
      else if (i = t == 0 ? "midMid" : "bottomMid", this.cells && (this.cells[this.y - 1][r] instanceof e.ColSpanCell && (i = t == 0 ? "topM\
id" : "mid"), t == 0)) {
        let a = 1;
        for (; this.cells[this.y][r - a] instanceof e.ColSpanCell; )
          a++;
        this.cells[this.y][r - a] instanceof e.RowSpanCell && (i = "leftMid");
      }
      return this.chars[i];
    }
    wrapWithStyleColors(t, r) {
      if (this[t] && this[t].length)
        try {
          let i = dT();
          for (let n = this[t].length - 1; n >= 0; n--)
            i = i[this[t][n]];
          return i(r);
        } catch {
          return r;
        }
      else
        return r;
    }
    /**
     * Renders a line of text.
     * @param lineNum - Which line of text to render. This is not necessarily the line within the cell.
     * There may be top-padding above the first line of text.
     * @param drawRight - true if this method should render the right edge of the cell.
     * @param forceTruncationSymbol - `true` if the rendered text should end with the truncation symbol even
     * if the text fits. This is used when the cell is vertically truncated. If `false` the text should
     * only include the truncation symbol if the text will not fit horizontally within the cell width.
     * @param spanningCell - a number of if being called from a RowSpanCell. (how many rows below). otherwise undefined.
     * @returns {String}
     */
    drawLine(t, r, i, n) {
      let a = this.chars[this.x == 0 ? "left" : "middle"];
      if (this.x && n && this.cells) {
        let d = this.cells[this.y + n][this.x - 1];
        for (; d instanceof Ia; )
          d = this.cells[d.y][d.x - 1];
        d instanceof Oa || (a = this.chars.rightMid);
      }
      let u = $t.repeat(" ", this.paddingLeft), o = r ? this.chars.right : "", l = $t.repeat(" ", this.paddingRight), c = this.lines[t], h = this.
      width - (this.paddingLeft + this.paddingRight);
      i && (c += this.truncate || "\u2026");
      let p = $t.truncate(c, h, this.truncate);
      return p = $t.pad(p, h, " ", this.hAlign), p = u + p + l, this.stylizeLine(a, p, o);
    }
    stylizeLine(t, r, i) {
      return t = this.wrapWithStyleColors("border", t), i = this.wrapWithStyleColors("border", i), this.y === 0 && (r = this.wrapWithStyleColors(
      "head", r)), t + r + i;
    }
    /**
     * Renders the bottom line of the cell.
     * @param drawRight - true if this method should render the right edge of the cell.
     * @returns {String}
     */
    drawBottom(t) {
      let r = this.chars[this.x == 0 ? "bottomLeft" : "bottomMid"], i = $t.repeat(this.chars.bottom, this.width), n = t ? this.chars.bottomRight :
      "";
      return this.wrapWithStyleColors("border", r + i + n);
    }
    /**
     * Renders a blank line of text within the cell. Used for top and/or bottom padding.
     * @param drawRight - true if this method should render the right edge of the cell.
     * @param spanningCell - a number of if being called from a RowSpanCell. (how many rows below). otherwise undefined.
     * @returns {String}
     */
    drawEmpty(t, r) {
      let i = this.chars[this.x == 0 ? "left" : "middle"];
      if (this.x && r && this.cells) {
        let u = this.cells[this.y + r][this.x - 1];
        for (; u instanceof Ia; )
          u = this.cells[u.y][u.x - 1];
        u instanceof Oa || (i = this.chars.rightMid);
      }
      let n = t ? this.chars.right : "", a = $t.repeat(" ", this.width);
      return this.stylizeLine(i, a, n);
    }
  }, Ia = class {
    static {
      s(this, "ColSpanCell");
    }
    /**
     * A Cell that doesn't do anything. It just draws empty lines.
     * Used as a placeholder in column spanning.
     * @constructor
     */
    constructor() {
    }
    draw(t) {
      return typeof t == "number" && DT(`${this.y}-${this.x}: 1x1 ColSpanCell`), "";
    }
    init() {
    }
    mergeTableOptions() {
    }
  }, Oa = class {
    static {
      s(this, "RowSpanCell");
    }
    /**
     * A placeholder Cell for a Cell that spans multiple rows.
     * It delegates rendering to the original cell, but adds the appropriate offset.
     * @param originalCell
     * @constructor
     */
    constructor(t) {
      this.originalCell = t;
    }
    init(t) {
      let r = this.y, i = this.originalCell.y;
      this.cellOffset = r - i, this.offset = cG(t.rowHeights, i, this.cellOffset);
    }
    draw(t) {
      return t == "top" ? this.originalCell.draw(this.offset, this.cellOffset) : t == "bottom" ? this.originalCell.draw("bottom") : (DT(`${this.
      y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`), this.originalCell.draw(this.offset + 1 + t));
    }
    mergeTableOptions() {
    }
  };
  function mT(...e) {
    return e.filter((t) => t != null).shift();
  }
  s(mT, "firstDefined");
  function _g(e, t, r, i) {
    let n = r.split("-");
    n.length > 1 ? (n[1] = n[1].charAt(0).toUpperCase() + n[1].substr(1), n = n.join(""), i[n] = mT(e[n], e[r], t[n], t[r])) : i[r] = mT(e[r],
    t[r]);
  }
  s(_g, "setOption");
  function cG(e, t, r) {
    let i = e[t];
    for (let n = 1; n < r; n++)
      i += 1 + e[t + n];
    return i;
  }
  s(cG, "findDimension");
  function gT(e, t) {
    return e + t + 1;
  }
  s(gT, "sumPlusOne");
  var hG = [
    "top",
    "top-mid",
    "top-left",
    "top-right",
    "bottom",
    "bottom-mid",
    "bottom-left",
    "bottom-right",
    "left",
    "left-mid",
    "mid",
    "mid-mid",
    "right",
    "right-mid",
    "middle"
  ];
  yl.exports = kg;
  yl.exports.ColSpanCell = Ia;
  yl.exports.RowSpanCell = Oa;
});

// ../node_modules/cli-table3/src/layout-manager.js
var bT = B((sce, ET) => {
  var { warn: pG, debug: fG } = gl(), Tg = yT(), { ColSpanCell: dG, RowSpanCell: mG } = Tg;
  (function() {
    function e(m, g) {
      return m[g] > 0 ? e(m, g + 1) : g;
    }
    s(e, "next");
    function t(m) {
      let g = {};
      m.forEach(function(D, v) {
        let y = 0;
        D.forEach(function(C) {
          C.y = v, C.x = v ? e(g, y) : y;
          let S = C.rowSpan || 1, T = C.colSpan || 1;
          if (S > 1)
            for (let j = 0; j < T; j++)
              g[C.x + j] = S;
          y = C.x + T;
        }), Object.keys(g).forEach((C) => {
          g[C]--, g[C] < 1 && delete g[C];
        });
      });
    }
    s(t, "layoutTable");
    function r(m) {
      let g = 0;
      return m.forEach(function(D) {
        D.forEach(function(v) {
          g = Math.max(g, v.x + (v.colSpan || 1));
        });
      }), g;
    }
    s(r, "maxWidth");
    function i(m) {
      return m.length;
    }
    s(i, "maxHeight");
    function n(m, g) {
      let D = m.y, v = m.y - 1 + (m.rowSpan || 1), y = g.y, C = g.y - 1 + (g.rowSpan || 1), S = !(D > C || y > v), T = m.x, j = m.x - 1 + (m.
      colSpan || 1), w = g.x, A = g.x - 1 + (g.colSpan || 1), P = !(T > A || w > j);
      return S && P;
    }
    s(n, "cellsConflict");
    function a(m, g, D) {
      let v = Math.min(m.length - 1, D), y = { x: g, y: D };
      for (let C = 0; C <= v; C++) {
        let S = m[C];
        for (let T = 0; T < S.length; T++)
          if (n(y, S[T]))
            return !0;
      }
      return !1;
    }
    s(a, "conflictExists");
    function u(m, g, D, v) {
      for (let y = D; y < v; y++)
        if (a(m, y, g))
          return !1;
      return !0;
    }
    s(u, "allBlank");
    function o(m) {
      m.forEach(function(g, D) {
        g.forEach(function(v) {
          for (let y = 1; y < v.rowSpan; y++) {
            let C = new mG(v);
            C.x = v.x, C.y = v.y + y, C.colSpan = v.colSpan, c(C, m[D + y]);
          }
        });
      });
    }
    s(o, "addRowSpanCells");
    function l(m) {
      for (let g = m.length - 1; g >= 0; g--) {
        let D = m[g];
        for (let v = 0; v < D.length; v++) {
          let y = D[v];
          for (let C = 1; C < y.colSpan; C++) {
            let S = new dG();
            S.x = y.x + C, S.y = y.y, D.splice(v + 1, 0, S);
          }
        }
      }
    }
    s(l, "addColSpanCells");
    function c(m, g) {
      let D = 0;
      for (; D < g.length && g[D].x < m.x; )
        D++;
      g.splice(D, 0, m);
    }
    s(c, "insertCell");
    function h(m) {
      let g = i(m), D = r(m);
      fG(`Max rows: ${g}; Max cols: ${D}`);
      for (let v = 0; v < g; v++)
        for (let y = 0; y < D; y++)
          if (!a(m, y, v)) {
            let C = { x: y, y: v, colSpan: 1, rowSpan: 1 };
            for (y++; y < D && !a(m, y, v); )
              C.colSpan++, y++;
            let S = v + 1;
            for (; S < g && u(m, S, C.x, C.x + C.colSpan); )
              C.rowSpan++, S++;
            let T = new Tg(C);
            T.x = C.x, T.y = C.y, pG(`Missing cell at ${T.y}-${T.x}.`), c(T, m[v]);
          }
    }
    s(h, "fillInTable");
    function p(m) {
      return m.map(function(g) {
        if (!Array.isArray(g)) {
          let D = Object.keys(g)[0];
          g = g[D], Array.isArray(g) ? (g = g.slice(), g.unshift(D)) : g = [D, g];
        }
        return g.map(function(D) {
          return new Tg(D);
        });
      });
    }
    s(p, "generateCells");
    function d(m) {
      let g = p(m);
      return t(g), h(g), o(g), l(g), g;
    }
    s(d, "makeTableLayout"), ET.exports = {
      makeTableLayout: d,
      layoutTable: t,
      addRowSpanCells: o,
      maxWidth: r,
      fillInTable: h,
      computeWidths: xT("colSpan", "desiredWidth", "x", 1),
      computeHeights: xT("rowSpan", "desiredHeight", "y", 1)
    };
  })();
  function xT(e, t, r, i) {
    return function(n, a) {
      let u = [], o = [], l = {};
      a.forEach(function(c) {
        c.forEach(function(h) {
          (h[e] || 1) > 1 ? o.push(h) : u[h[r]] = Math.max(u[h[r]] || 0, h[t] || 0, i);
        });
      }), n.forEach(function(c, h) {
        typeof c == "number" && (u[h] = c);
      });
      for (let c = o.length - 1; c >= 0; c--) {
        let h = o[c], p = h[e], d = h[r], m = u[d], g = typeof n[d] == "number" ? 0 : 1;
        if (typeof m == "number")
          for (let D = 1; D < p; D++)
            m += 1 + u[d + D], typeof n[d + D] != "number" && g++;
        else
          m = t === "desiredWidth" ? h.desiredWidth - 1 : 1, (!l[d] || l[d] < m) && (l[d] = m);
        if (h[t] > m) {
          let D = 0;
          for (; g > 0 && h[t] > m; ) {
            if (typeof n[d + D] != "number") {
              let v = Math.round((h[t] - m) / g);
              m += v, u[d + D] += v, g--;
            }
            D++;
          }
        }
      }
      Object.assign(n, u, l);
      for (let c = 0; c < n.length; c++)
        n[c] = Math.max(i, n[c] || 0);
    };
  }
  s(xT, "makeComputeWidths");
});

// ../node_modules/cli-table3/src/table.js
var CT = B((uce, vT) => {
  var ci = gl(), gG = Fg(), Bg = bT(), xl = class extends Array {
    static {
      s(this, "Table");
    }
    constructor(t) {
      super();
      let r = gG.mergeOptions(t);
      if (Object.defineProperty(this, "options", {
        value: r,
        enumerable: r.debug
      }), r.debug) {
        switch (typeof r.debug) {
          case "boolean":
            ci.setDebugLevel(ci.WARN);
            break;
          case "number":
            ci.setDebugLevel(r.debug);
            break;
          case "string":
            ci.setDebugLevel(parseInt(r.debug, 10));
            break;
          default:
            ci.setDebugLevel(ci.WARN), ci.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof r.debug}`);
        }
        Object.defineProperty(this, "messages", {
          get() {
            return ci.debugMessages();
          }
        });
      }
    }
    toString() {
      let t = this, r = this.options.head && this.options.head.length;
      r ? (t = [this.options.head], this.length && t.push.apply(t, this)) : this.options.style.head = [];
      let i = Bg.makeTableLayout(t);
      i.forEach(function(a) {
        a.forEach(function(u) {
          u.mergeTableOptions(this.options, i);
        }, this);
      }, this), Bg.computeWidths(this.options.colWidths, i), Bg.computeHeights(this.options.rowHeights, i), i.forEach(function(a) {
        a.forEach(function(u) {
          u.init(this.options);
        }, this);
      }, this);
      let n = [];
      for (let a = 0; a < i.length; a++) {
        let u = i[a], o = this.options.rowHeights[a];
        (a === 0 || !this.options.style.compact || a == 1 && r) && Pg(u, "top", n);
        for (let l = 0; l < o; l++)
          Pg(u, l, n);
        a + 1 == i.length && Pg(u, "bottom", n);
      }
      return n.join(`
`);
    }
    get width() {
      return this.toString().split(`
`)[0].length;
    }
  };
  xl.reset = () => ci.reset();
  function Pg(e, t, r) {
    let i = [];
    e.forEach(function(a) {
      i.push(a.draw(t));
    });
    let n = i.join("");
    n.length && r.push(n);
  }
  s(Pg, "doDraw");
  vT.exports = xl;
});

// ../node_modules/cli-table3/index.js
var AT = B((lce, wT) => {
  wT.exports = CT();
});

// src/core-server/index.ts
import { getPreviewHeadTemplate as mhe, getPreviewBodyTemplate as ghe } from "@storybook/core/common";

// src/core-server/build-static.ts
var h2 = pe(La(), 1), p2 = pe(Cr(), 1);
import { cp as Oq, mkdir as Rq } from "node:fs/promises";
import { rm as Nq } from "node:fs/promises";
import { dirname as Lq, join as vo, relative as Mq, resolve as l2 } from "node:path";
import {
  loadAllPresets as c2,
  loadMainConfig as jq,
  logConfig as qq,
  normalizeStories as $q,
  resolveAddonName as Vq
} from "@storybook/core/common";
import { getPrecedingUpgrade as Uq, telemetry as zq } from "@storybook/core/telemetry";
import { logger as Bi } from "@storybook/core/node-logger";

// src/core-server/utils/StoryIndexGenerator.ts
import { existsSync as pv } from "node:fs";
import { readFile as fv } from "node:fs/promises";
import { dirname as xv, extname as cM, join as eo, normalize as dv, relative as Zs, resolve as ea, sep as hM } from "node:path";
import { commonGlobOptions as pM, normalizeStoryPath as to } from "@storybook/core/common";
import { combineTags as af, storyNameFromExport as mv, toId as uf } from "@storybook/core/csf";
import { isExampleStoryId as fM } from "@storybook/core/telemetry";
import { getStorySortParameter as dM, loadConfig as mM } from "@storybook/core/csf-tools";
import { logger as of, once as gv } from "@storybook/core/node-logger";
import { sortStoriesV7 as gM, userOrAutoTitleFromSpecifier as Dv } from "@storybook/core/preview-api";

// node_modules/find-up/index.js
import As from "node:path";

// ../node_modules/locate-path/index.js
import h6 from "node:process";
import p6 from "node:path";
import gX, { promises as Ug } from "node:fs";
import { fileURLToPath as f6 } from "node:url";

// ../node_modules/yocto-queue/index.js
var wl = class {
  static {
    s(this, "Node");
  }
  value;
  next;
  constructor(t) {
    this.value = t;
  }
}, ws = class {
  static {
    s(this, "Queue");
  }
  #t;
  #r;
  #e;
  constructor() {
    this.clear();
  }
  enqueue(t) {
    let r = new wl(t);
    this.#t ? (this.#r.next = r, this.#r = r) : (this.#t = r, this.#r = r), this.#e++;
  }
  dequeue() {
    let t = this.#t;
    if (t)
      return this.#t = this.#t.next, this.#e--, t.value;
  }
  peek() {
    if (this.#t)
      return this.#t.value;
  }
  clear() {
    this.#t = void 0, this.#r = void 0, this.#e = 0;
  }
  get size() {
    return this.#e;
  }
  *[Symbol.iterator]() {
    let t = this.#t;
    for (; t; )
      yield t.value, t = t.next;
  }
};

// ../node_modules/locate-path/node_modules/p-limit/index.js
function ja(e) {
  if (!((Number.isInteger(e) || e === Number.POSITIVE_INFINITY) && e > 0))
    throw new TypeError("Expected `concurrency` to be a number from 1 and up");
  let t = new ws(), r = 0, i = /* @__PURE__ */ s(() => {
    r--, t.size > 0 && t.dequeue()();
  }, "next"), n = /* @__PURE__ */ s(async (o, l, c) => {
    r++;
    let h = (async () => o(...c))();
    l(h);
    try {
      await h;
    } catch {
    }
    i();
  }, "run"), a = /* @__PURE__ */ s((o, l, c) => {
    t.enqueue(n.bind(void 0, o, l, c)), (async () => (await Promise.resolve(), r < e && t.size > 0 && t.dequeue()()))();
  }, "enqueue"), u = /* @__PURE__ */ s((o, ...l) => new Promise((c) => {
    a(o, c, l);
  }), "generator");
  return Object.defineProperties(u, {
    activeCount: {
      get: /* @__PURE__ */ s(() => r, "get")
    },
    pendingCount: {
      get: /* @__PURE__ */ s(() => t.size, "get")
    },
    clearQueue: {
      value: /* @__PURE__ */ s(() => {
        t.clear();
      }, "value")
    }
  }), u;
}
s(ja, "pLimit");

// ../node_modules/locate-path/node_modules/p-locate/index.js
var qa = class extends Error {
  static {
    s(this, "EndError");
  }
  constructor(t) {
    super(), this.value = t;
  }
}, l6 = /* @__PURE__ */ s(async (e, t) => t(await e), "testElement"), c6 = /* @__PURE__ */ s(async (e) => {
  let t = await Promise.all(e);
  if (t[1] === !0)
    throw new qa(t[0]);
  return !1;
}, "finder");
async function Al(e, t, {
  concurrency: r = Number.POSITIVE_INFINITY,
  preserveOrder: i = !0
} = {}) {
  let n = ja(r), a = [...e].map((o) => [o, n(l6, o, t)]), u = ja(i ? 1 : Number.POSITIVE_INFINITY);
  try {
    await Promise.all(a.map((o) => u(c6, o)));
  } catch (o) {
    if (o instanceof qa)
      return o.value;
    throw o;
  }
}
s(Al, "pLocate");

// ../node_modules/locate-path/index.js
var zg = {
  directory: "isDirectory",
  file: "isFile"
};
function d6(e) {
  if (!Object.hasOwnProperty.call(zg, e))
    throw new Error(`Invalid type specified: ${e}`);
}
s(d6, "checkType");
var m6 = /* @__PURE__ */ s((e, t) => t[zg[e]](), "matchType"), g6 = /* @__PURE__ */ s((e) => e instanceof URL ? f6(e) : e, "toPath");
async function Fl(e, {
  cwd: t = h6.cwd(),
  type: r = "file",
  allowSymlinks: i = !0,
  concurrency: n,
  preserveOrder: a
} = {}) {
  d6(r), t = g6(t);
  let u = i ? Ug.stat : Ug.lstat;
  return Al(e, async (o) => {
    try {
      let l = await u(p6.resolve(t, o));
      return m6(r, l);
    } catch {
      return !1;
    }
  }, { concurrency: n, preserveOrder: a });
}
s(Fl, "locatePath");

// node_modules/unicorn-magic/node.js
import { fileURLToPath as D6 } from "node:url";
function Sl(e) {
  return e instanceof URL ? D6(e) : e;
}
s(Sl, "toPath");

// node_modules/path-exists/index.js
import FX, { promises as SX } from "node:fs";

// node_modules/find-up/index.js
var y6 = Symbol("findUpStop");
async function x6(e, t = {}) {
  let r = As.resolve(Sl(t.cwd) ?? ""), { root: i } = As.parse(r), n = As.resolve(r, Sl(t.stopAt ?? i)), a = t.limit ?? Number.POSITIVE_INFINITY,
  u = [e].flat(), o = /* @__PURE__ */ s(async (c) => {
    if (typeof e != "function")
      return Fl(u, c);
    let h = await e(c.cwd);
    return typeof h == "string" ? Fl([h], c) : h;
  }, "runMatcher"), l = [];
  for (; ; ) {
    let c = await o({ ...t, cwd: r });
    if (c === y6 || (c && l.push(As.resolve(r, c)), r === n || l.length >= a))
      break;
    r = As.dirname(r);
  }
  return l;
}
s(x6, "findUpMultiple");
async function Hg(e, t = {}) {
  return (await x6(e, { ...t, limit: 1 }))[0];
}
s(Hg, "findUp");

// src/core-server/utils/StoryIndexGenerator.ts
var lf = pe(Cr(), 1);
Fs();

// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
var E6 = process.env.NODE_ENV === "production", _l = "Invariant failed";
function Dt(e, t) {
  if (!e) {
    if (E6)
      throw new Error(_l);
    var r = typeof t == "function" ? t() : t, i = r ? "".concat(_l, ": ").concat(r) : _l;
    throw new Error(i);
  }
}
s(Dt, "invariant");

// src/core-server/utils/StoryIndexGenerator.ts
var cf = pe(wr(), 1), ro = pe(S0(), 1);

// src/core-server/utils/IndexingError.ts
Fs();
var Fr = class extends Error {
  static {
    s(this, "IndexingError");
  }
  constructor(t, r, i) {
    super(), this.message = t, this.importPaths = r, i && (this.stack = i);
  }
  pathsString() {
    return this.importPaths.length === 1 ? `${rt(this.importPaths[0])}` : `${this.importPaths.map(rt).join(",")}`;
  }
  toString() {
    return `${this.pathsString()}: ${this.message}`;
  }
}, Ps = class extends Error {
  constructor(r) {
    super();
    this.indexingErrors = r;
    if (this.indexingErrors.length === 0)
      throw new Error("Unexpected empty error list");
    if (this.indexingErrors.length === 1) {
      let [i] = this.indexingErrors;
      this.message = `Unable to index ${i.pathsString()}`;
    } else
      this.message = `Unable to index files:
${this.indexingErrors.map((i) => `- ${i}`).join(`
`)}`;
  }
  static {
    s(this, "MultipleIndexingError");
  }
  toString() {
    return this.indexingErrors.length === 1 ? `${this.message}:
  ${this.indexingErrors[0].stack}` : this.message;
  }
};

// src/core-server/utils/autoName.ts
import { basename as _0 } from "node:path";
function k0(e, t, r) {
  let i = _0(e), n = _0(t), [a] = i.split("."), [u] = n.split(".");
  return a === u ? r : a;
}
s(k0, "autoName");

// src/core-server/utils/summarizeStats.ts
var T0 = /* @__PURE__ */ s((e, t) => {
  Object.entries(e).forEach(([r, i]) => {
    let n = r;
    t[n] || (t[n] = 0), t[n] += i ? 1 : 0;
  });
}, "addStats");

// src/core-server/utils/StoryIndexGenerator.ts
var Zi = "autodocs", DM = "attached-mdx", yM = "unattached-mdx", Ev = "play-fn";
function en({ tags: e }) {
  return e?.includes(yM) || e?.includes(DM);
}
s(en, "isMdxEntry");
var yv = /* @__PURE__ */ s((e, t, r) => e.startsWith(".") ? rt(ea(r, to(eo(xv(t), e)))) : e, "makeAbsolute"), tn = class {
  constructor(t, r) {
    this.specifiers = t;
    this.options = r;
    this.specifierToCache = /* @__PURE__ */ new Map();
  }
  static {
    s(this, "StoryIndexGenerator");
  }
  async initialize() {
    (await Promise.all(
      this.specifiers.map(async (n) => {
        let a = {}, u = rt(eo(n.directory, n.files)), { globby: o } = await Promise.resolve().then(() => (Kh(), Yh)), l = await o(u, {
          absolute: !0,
          cwd: this.options.workingDir,
          ...pM(u)
        });
        return l.length === 0 && gv.warn(
          `No story files found for the specified pattern: ${lf.default.blue(
            eo(n.directory, n.files)
          )}`
        ), l.sort().forEach((c) => {
          let h = cM(c);
          if (h === ".storyshot") {
            let p = Zs(this.options.workingDir, c);
            of.info(`Skipping ${h} file ${p}`);
            return;
          }
          a[c] = !1;
        }), [n, a];
      })
    )).forEach(
      ([n, a]) => this.specifierToCache.set(n, a)
    );
    let r = await this.getPreviewCode(), i = this.getProjectTags(r);
    await this.ensureExtracted({ projectTags: i });
  }
  /** Run the updater function over all the empty cache entries */
  async updateExtracted(t, r = !1) {
    await Promise.all(
      this.specifiers.map(async (i) => {
        let n = this.specifierToCache.get(i);
        return Dt(
          n,
          `specifier does not have a matching cache entry in specifierToCache: ${JSON.stringify(
            i
          )}`
        ), Promise.all(
          Object.keys(n).map(async (a) => {
            if (!(n[a] && !r))
              try {
                n[a] = await t(i, a, n[a]);
              } catch (u) {
                let o = `.${hM}${Zs(this.options.workingDir, a)}`;
                n[a] = {
                  type: "error",
                  err: new Fr(
                    u instanceof Error ? u.message : String(u),
                    [o],
                    u instanceof Error ? u.stack : void 0
                  )
                };
              }
          })
        );
      })
    );
  }
  isDocsMdx(t) {
    return /(?<!\.stories)\.mdx$/i.test(t);
  }
  async ensureExtracted({
    projectTags: t
  }) {
    await this.updateExtracted(
      async (n, a) => this.isDocsMdx(a) ? !1 : this.extractStories(n, a, t)
    ), await this.updateExtracted(
      async (n, a) => this.extractDocs(n, a, t)
    );
    let r = {};
    return { entries: this.specifiers.flatMap((n) => {
      let a = this.specifierToCache.get(n);
      return Dt(
        a,
        `specifier does not have a matching cache entry in specifierToCache: ${JSON.stringify(
          n
        )}`
      ), Object.values(a).flatMap((u) => u ? u.type === "docs" ? [u] : u.type === "error" ? [u] : u.entries.map((o) => {
        if (o.type === "docs")
          return o;
        fM(o.id) || T0(o.extra.stats, r);
        let { extra: l, ...c } = o;
        return c;
      }) : []);
    }), stats: r };
  }
  findDependencies(t) {
    return [...this.specifierToCache.values()].flatMap(
      (r) => Object.entries(r).filter(([i, n]) => !n || n.type !== "stories" ? !1 : !!t.find(
        (a) => i.match(
          new RegExp(`^${a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}(\\.[^.]+)?$`)
        )
      )).map(([i, n]) => n)
    );
  }
  /**
   * Try to find the component path from a raw import string and return it in the same format as
   * `importPath`. Respect tsconfig paths if available.
   *
   * If no such file exists, assume that the import is from a package and return the raw
   */
  resolveComponentPath(t, r, i) {
    let n = t;
    i && (n = i(n) ?? n);
    let a = ea(xv(r), n), u = ["", ".js", ".ts", ".jsx", ".tsx", ".mjs", ".mts"].map((o) => `${a}${o}`).find((o) => pv(o));
    if (u) {
      let o = Zs(this.options.workingDir, u);
      return rt(to(o));
    }
    return t;
  }
  async extractStories(t, r, i = []) {
    let n = Zs(this.options.workingDir, r), a = rt(to(n)), u = /* @__PURE__ */ s((D) => {
      let v = Dv(a, t, D);
      return Dt(
        v,
        "makeTitle created an undefined title. This happens when the fileName doesn't match any specifier from main.js"
      ), v;
    }, "defaultMakeTitle"), o = this.options.indexers.find((D) => D.test.exec(r));
    Dt(o, `No matching indexer found for ${r}`);
    let l = await o.createIndex(r, { makeTitle: u }), c = await Hg("tsconfig.json", { cwd: this.options.workingDir }), h = ro.loadConfig(c),
    p;
    h.resultType === "success" && (p = ro.createMatchPath(h.absoluteBaseUrl, h.paths, [
      "browser",
      "module",
      "main"
    ]));
    let d = l.map((D) => {
      let v = D.name ?? mv(D.exportName), y = D.rawComponentPath && this.resolveComponentPath(D.rawComponentPath, r, p), C = D.title ?? u(),
      S = D.__id ?? uf(D.metaId ?? C, mv(D.exportName)), T = af(...i, ...D.tags ?? []);
      return {
        type: "story",
        id: S,
        extra: {
          metaId: D.metaId,
          stats: D.__stats ?? {}
        },
        name: v,
        title: C,
        importPath: a,
        componentPath: y,
        tags: T
      };
    });
    if (d.some((D) => D.tags.includes(Zi)) && !!this.options.docs.autodocs && this.options.build?.test?.disableAutoDocs !== !0) {
      let D = this.options.docs.defaultName ?? "Docs", { metaId: v } = l[0], { title: y } = d[0], C = uf(v ?? y, D), S = af(...i, ...l[0].tags ??
      []);
      d.unshift({
        id: C,
        title: y,
        name: D,
        importPath: a,
        type: "docs",
        tags: S,
        storiesImports: []
      });
    }
    return {
      entries: d,
      dependents: [],
      type: "stories"
    };
  }
  async extractDocs(t, r, i = []) {
    let n = Zs(this.options.workingDir, r);
    try {
      let a = to(n), u = rt(a), o = await fv(r, { encoding: "utf8" }), { analyze: l } = await Promise.resolve().then(() => (hv(), cv)), c = await l(
      o);
      if (c.isTemplate)
        return !1;
      let h = c.imports.map(
        (T) => yv(T, a, this.options.workingDir)
      ), p = this.findDependencies(h), d = p, m;
      if (c.of) {
        let T = yv(c.of, a, this.options.workingDir);
        p.forEach((j) => {
          if (j.entries.length > 0) {
            let w = j.entries.find((A) => A.type !== "docs");
            dv(ea(this.options.workingDir, w.importPath)).startsWith(
              dv(T)
            ) && (m = w);
          }
          d = [j, ...p.filter((w) => w !== j)];
        }), Dt(
          m,
          cf.dedent`
            Could not find or load CSF file at path "${c.of}" referenced by \`of={}\` in docs file "${n}".

            - Does that file exist?
            - If so, is it a CSF file (\`.stories.*\`)?
            - If so, is it matched by the \`stories\` glob in \`main.js\`?
            - If so, has the file successfully loaded in Storybook and are its stories visible?
          `
        );
      }
      p.forEach((T) => {
        T.dependents.push(r);
      });
      let g = m?.title || Dv(u, t, c.title);
      Dt(
        g,
        "makeTitle created an undefined title. This happens when a specifier's doesn't have any matches in its fileName"
      );
      let D = this.options.docs.defaultName ?? "Docs", v = c.name || (m ? k0(u, m.importPath, D) : D), y = uf(m?.extra.metaId || g, v), C = af(
        ...i,
        ...m?.tags ?? [],
        ...c.metaTags ?? [],
        m ? "attached-mdx" : "unattached-mdx"
      );
      return {
        id: y,
        title: g,
        name: v,
        importPath: u,
        storiesImports: d.map((T) => T.entries[0].importPath),
        type: "docs",
        tags: C
      };
    } catch (a) {
      throw a && a.source?.match(/mdast-util-mdx-jsx/g) && of.warn(
        `\u{1F4A1} This seems to be an MDX2 syntax error. Please refer to the MDX section in the following resource for assistance on how to fix th\
is: ${lf.default.yellow(
          "https://storybook.js.org/migration-guides/7.0"
        )}`
      ), a;
    }
  }
  chooseDuplicate(t, r, i) {
    if (t.importPath === r.importPath)
      return t;
    let n = !0;
    (r.type === "story" || en(r) && t.type === "docs" && !en(t)) && (n = !1);
    let a = n ? t : r, u = n ? r : t, o = 'Use `<Meta of={} name="Other Name">` to distinguish them.';
    if (u.type === "story")
      throw new Fr(`Duplicate stories with id: ${t.id}`, [
        t.importPath,
        r.importPath
      ]);
    if (a.type === "story") {
      let l = en(u) ? "component docs page" : "automatically generated docs page";
      throw a.name === this.options.docs.defaultName ? new Fr(
        `You have a story for ${a.title} with the same name as your default docs entry name (${a.name}), so the docs page is being dropped. \
Consider changing the story name.`,
        [t.importPath, r.importPath]
      ) : new Fr(
        `You have a story for ${a.title} with the same name as your ${l} (${u.name}), so the docs page is being dropped. ${o}`,
        [t.importPath, r.importPath]
      );
    } else if (en(a)) {
      if (en(u))
        throw new Fr(
          `You have two component docs pages with the same name ${a.title}:${a.name}. ${o}`,
          [t.importPath, r.importPath]
        );
      if (u.tags?.includes(Zi) && !(this.options.docs.autodocs === !0 || i?.includes(Zi)))
        throw new Fr(
          `You created a component docs page for '${u.title}', but also tagged the CSF file with '${Zi}'. This is probably a mistake.`,
          [a.importPath, u.importPath]
        );
    } else
      return {
        ...a,
        storiesImports: [
          ...a.storiesImports,
          u.importPath,
          ...u.storiesImports
        ]
      };
    return a;
  }
  async sortStories(t, r) {
    let i = Object.values(t), n = this.storyFileNames();
    return gM(i, r, n), i.reduce(
      (a, u) => (a[u.id] = u, a),
      {}
    );
  }
  async getIndex() {
    return (await this.getIndexAndStats()).storyIndex;
  }
  async getIndexAndStats() {
    if (this.lastIndex && this.lastStats)
      return { storyIndex: this.lastIndex, stats: this.lastStats };
    if (this.lastError)
      throw this.lastError;
    let t = await this.getPreviewCode(), r = this.getProjectTags(t), { entries: i, stats: n } = await this.ensureExtracted({ projectTags: r });
    try {
      let a = i.filter((c) => c.type === "error");
      if (a.length)
        throw new Ps(a.map((c) => c.err));
      let u = [], o = {};
      if (i.forEach((c) => {
        try {
          let h = o[c.id];
          h ? o[c.id] = this.chooseDuplicate(h, c, r) : o[c.id] = c;
        } catch (h) {
          h instanceof Fr && u.push(h);
        }
      }), u.length)
        throw new Ps(u);
      let l = await this.sortStories(
        o,
        t && dM(t)
      );
      return this.lastStats = n, this.lastIndex = {
        v: 5,
        entries: l
      }, { storyIndex: this.lastIndex, stats: this.lastStats };
    } catch (a) {
      throw this.lastError = a == null || a instanceof Error ? a : void 0, Dt(this.lastError), of.warn(`\u{1F6A8} ${this.lastError.toString()}`),
      this.lastError;
    }
  }
  invalidateAll() {
    this.specifierToCache.forEach((t) => {
      Object.keys(t).forEach((r) => {
        t[r] = !1;
      });
    }), this.lastIndex = null, this.lastError = null;
  }
  invalidate(t, r, i) {
    let n = rt(ea(this.options.workingDir, r)), a = this.specifierToCache.get(t);
    Dt(
      a,
      `specifier does not have a matching cache entry in specifierToCache: ${JSON.stringify(
        t
      )}`
    );
    let u = a[n];
    if (u && u.type === "stories") {
      let { dependents: o } = u, l = /* @__PURE__ */ new Set();
      this.specifierToCache.forEach((c) => {
        o.forEach((h) => {
          c[h] && (l.add(h), c[h] = !1);
        });
      });
    }
    if (i) {
      if (u && u.type === "docs") {
        let o = u.storiesImports.map(
          (c) => ea(this.options.workingDir, c)
        );
        this.findDependencies(o).forEach(
          (c) => c.dependents.splice(c.dependents.indexOf(n), 1)
        );
      }
      delete a[n];
    } else
      a[n] = !1;
    this.lastIndex = null, this.lastError = null;
  }
  async getPreviewCode() {
    let t = ["js", "jsx", "ts", "tsx", "mjs", "cjs", "mts"].map((r) => eo(this.options.configDir, `preview.${r}`)).find((r) => pv(r));
    return t && (await fv(t, { encoding: "utf8" })).toString();
  }
  getProjectTags(t) {
    let r = [], i = ["dev", "test"], n = this.options.docs.autodocs === !0 ? [Zi] : [];
    if (t)
      try {
        r = mM(t).parse().getFieldValue(["tags"]) ?? [];
      } catch {
        gv.warn(cf.dedent`
          Unable to parse tags from project configuration. If defined, tags should be specified inline, e.g.

          export default {
            tags: ['foo'],
          }

          ---

          Received:

          ${t}
        `);
      }
    return [...i, ...r, ...n];
  }
  // Get the story file names in "imported order"
  storyFileNames() {
    return Array.from(this.specifierToCache.values()).flatMap((t) => Object.keys(t));
  }
};

// src/core-server/utils/build-or-throw.ts
import { NoMatchingExportError as xM } from "@storybook/core/server-errors";
async function io(e) {
  try {
    return await e();
  } catch (t) {
    let r = t.errors;
    throw r && r.find(
      (n) => n.text?.includes("No matching export")
    ) ? new xM(t) : t;
  }
}
s(io, "buildOrThrow");

// src/core-server/utils/copy-all-static-files.ts
var Df = pe(Cr(), 1);
import { cp as VM } from "node:fs/promises";
import { join as Vv, relative as UM } from "node:path";
import { getDirectoryFromWorkingDir as zM } from "@storybook/core/common";
import { logger as HM } from "@storybook/core/node-logger";

// src/core-server/utils/server-statics.ts
var no = pe(Cr(), 1), Mv = pe(Pv(), 1), jv = pe(wr(), 1);
import { existsSync as Rv, statSync as LM } from "node:fs";
import { basename as Iv, isAbsolute as Nv, posix as MM, resolve as Lv, sep as jM, win32 as qM } from "node:path";
import { getDirectoryFromWorkingDir as $M } from "@storybook/core/common";
import { logger as Ov } from "@storybook/core/node-logger";
async function qv(e, t) {
  let r = await t.presets.apply("staticDirs") ?? [], i = await t.presets.apply("favicon");
  r.map((n) => {
    try {
      let { staticDir: a, staticPath: u, targetEndpoint: o } = $v(n, t.configDir);
      if (o.startsWith("/sb-") || Ov.info(
        `=> Serving static files from ${no.default.cyan(a)} at ${no.default.cyan(o)}`
      ), Rv(u) && LM(u).isFile()) {
        let l = Lv(u, ".."), c = Iv(u);
        e.use(o, (h, p, d) => {
          h.url = `/${c}`, mf(l, {
            dev: !0,
            etag: !0,
            extensions: []
          })(h, p, d);
        });
        return;
      }
      e.use(
        o,
        mf(u, {
          dev: !0,
          etag: !0,
          extensions: []
        })
      );
    } catch (a) {
      a instanceof Error && Ov.warn(a.message);
    }
  }), e.get(
    `/${Iv(i)}`,
    mf(i, {
      dev: !0,
      etag: !0,
      extensions: []
    })
  );
}
s(qv, "useStatics");
var mf = /* @__PURE__ */ s((...e) => (t, r, i) => {
  let n = t._parsedUrl, a = i ? () => {
    t._parsedUrl = n, i();
  } : void 0;
  (0, Mv.default)(...e)(t, r, a);
}, "sirvWorkaround"), gf = /* @__PURE__ */ s((e) => {
  let t = e.lastIndexOf(":"), i = qM.isAbsolute(e) && t === 1, n = t !== -1 && !i ? t : e.length, u = (e.substring(n + 1) || "/").split(jM).
  join(MM.sep), o = e.substring(0, n), l = Nv(o) ? o : `./${o}`, c = Lv(l), h = u.replace(/^\/?/, "./"), p = h.substring(1);
  if (!Rv(c))
    throw new Error(
      jv.dedent`
        Failed to load static files, no such directory: ${no.default.cyan(c)}
        Make sure this directory exists.
      `
    );
  return { staticDir: l, staticPath: c, targetDir: h, targetEndpoint: p };
}, "parseStaticDir"), $v = /* @__PURE__ */ s((e, t) => {
  let r = typeof e == "string" ? e : `${e.from}:${e.to}`, i = Nv(r) ? r : $M({ configDir: t, workingDir: process.cwd(), directory: r });
  return gf(i);
}, "mapStaticDir");

// src/core-server/utils/copy-all-static-files.ts
async function zv(e, t, r) {
  let i = process.cwd();
  return e?.reduce(async (n, a) => {
    await n;
    let u = typeof a == "string" ? a : `${a.from}:${a.to}`, { staticPath: o, targetEndpoint: l } = gf(
      zM({
        configDir: r,
        workingDir: i,
        directory: u
      })
    ), c = Vv(t, l), h = ["index.html", "iframe.html"].map((p) => Vv(c, p));
    o.includes("node_modules") || HM.info(
      `=> Copying static files: ${Df.default.cyan(Uv(o))} at ${Df.default.cyan(Uv(c))}`
    ), await VM(o, c, {
      dereference: !0,
      preserveTimestamps: !0,
      filter: /* @__PURE__ */ s((p, d) => !h.includes(d), "filter"),
      recursive: !0
    });
  }, Promise.resolve());
}
s(zv, "copyAllStaticFilesRelativeToMain");
function Uv(e) {
  return UM(process.cwd(), e);
}
s(Uv, "print");

// src/core-server/utils/get-builders.ts
import { pathToFileURL as WM } from "node:url";
import { MissingBuilderError as JM } from "@storybook/core/server-errors";
async function ta() {
  return import("@storybook/core/builder-manager");
}
s(ta, "getManagerBuilder");
async function ra(e, t) {
  let r = H.resolve(
    ["webpack5"].includes(e) ? `@storybook/builder-${e}` : e,
    { paths: [t] }
  );
  return await import(WM(r).href);
}
s(ra, "getPreviewBuilder");
async function Hv({ presets: e, configDir: t }) {
  let { builder: r } = await e.apply("core", {});
  if (!r)
    throw new JM();
  let i = typeof r == "string" ? r : r.name;
  return Promise.all([ra(i, t), ta()]);
}
s(Hv, "getBuilders");

// src/core-server/utils/metadata.ts
import { writeFile as GM } from "node:fs/promises";
import { getStorybookMetadata as Wv } from "@storybook/core/telemetry";
async function Jv(e, t) {
  let r = await Wv(t);
  await GM(e, JSON.stringify(r));
}
s(Jv, "extractStorybookMetadata");
function Gv(e, t) {
  e.use("/project.json", async (r, i) => {
    let n = await Wv(t);
    i.setHeader("Content-Type", "application/json"), i.write(JSON.stringify(n)), i.end();
  });
}
s(Gv, "useStorybookMetadata");

// src/core-server/utils/output-stats.ts
var vC = pe(xC(), 1), vf = pe(Cr(), 1);
import { createWriteStream as qj } from "node:fs";
import { join as $j } from "node:path";
import { logger as EC } from "@storybook/core/node-logger";
async function ao(e, t, r) {
  if (t) {
    let i = await bC(e, "preview", t);
    EC.info(`=> preview stats written to ${vf.default.cyan(i)}`);
  }
  if (r) {
    let i = await bC(e, "manager", r);
    EC.info(`=> manager stats written to ${vf.default.cyan(i)}`);
  }
}
s(ao, "outputStats");
var bC = /* @__PURE__ */ s(async (e, t, r) => {
  let i = $j(e, `${t}-stats.json`), { chunks: n, ...a } = r.toJson();
  return await new Promise((u, o) => {
    (0, vC.stringifyStream)(a, null, 2).on("error", o).pipe(qj(i)).on("error", o).on("finish", u);
  }), i;
}, "writeStats");

// src/core-server/utils/stories-json.ts
import { writeFile as Fq } from "node:fs/promises";
import { basename as Sq } from "node:path";
import { STORY_INDEX_INVALIDATED as _q } from "@storybook/core/core-events";

// ../node_modules/es-toolkit/dist/function/debounce.mjs
function CC(e, t, { signal: r, edges: i } = {}) {
  let n, a = null, u = i != null && i.includes("leading"), o = i == null || i.includes("trailing"), l = /* @__PURE__ */ s(() => {
    a !== null && (e.apply(n, a), n = void 0, a = null);
  }, "invoke"), c = /* @__PURE__ */ s(() => {
    o && l(), m();
  }, "onTimerEnd"), h = null, p = /* @__PURE__ */ s(() => {
    h != null && clearTimeout(h), h = setTimeout(() => {
      h = null, c();
    }, t);
  }, "schedule"), d = /* @__PURE__ */ s(() => {
    h !== null && (clearTimeout(h), h = null);
  }, "cancelTimer"), m = /* @__PURE__ */ s(() => {
    d(), n = void 0, a = null;
  }, "cancel"), g = /* @__PURE__ */ s(() => {
    d(), l();
  }, "flush"), D = /* @__PURE__ */ s(function(...v) {
    if (r?.aborted)
      return;
    n = this, a = v;
    let y = h == null;
    p(), u && y && l();
  }, "debounced");
  return D.schedule = p, D.cancel = m, D.flush = g, r?.addEventListener("abort", m, { once: !0 }), D;
}
s(CC, "debounce");

// ../node_modules/es-toolkit/dist/compat/function/debounce.mjs
function Cf(e, t = 0, r = {}) {
  typeof r != "object" && (r = {});
  let { signal: i, leading: n = !1, trailing: a = !0, maxWait: u } = r, o = Array(2);
  n && (o[0] = "leading"), a && (o[1] = "trailing");
  let l, c = null, h = CC(function(...m) {
    l = e.apply(this, m), c = null;
  }, t, { signal: i, edges: o }), p = /* @__PURE__ */ s(function(...m) {
    if (u != null) {
      if (c === null)
        c = Date.now();
      else if (Date.now() - c >= u)
        return l = e.apply(this, m), c = Date.now(), h.cancel(), h.schedule(), l;
    }
    return h.apply(this, m), l;
  }, "debounced"), d = /* @__PURE__ */ s(() => (h.flush(), l), "flush");
  return p.cancel = h.cancel, p.flush = d, p;
}
s(Cf, "debounce");

// src/core-server/utils/watch-story-specifiers.ts
Fs();
var r2 = pe(Vf(), 1);
import { lstatSync as xq, readdirSync as Eq } from "node:fs";
import { basename as bq, join as Uf, relative as vq, resolve as Cq } from "node:path";
import { commonGlobOptions as wq } from "@storybook/core/common";
var i2 = /* @__PURE__ */ s((e) => {
  try {
    return xq(e).isDirectory();
  } catch {
    return !1;
  }
}, "isDirectory");
function Aq(e) {
  let t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ s((n) => {
    t.has(n) || (Eq(n, { withFileTypes: !0 }).forEach((a) => {
      a.isDirectory() ? i(Uf(n, a.name)) : a.isFile() && r.add(Uf(n, a.name));
    }), t.add(n));
  }, "traverse");
  return e.filter(i2).forEach(i), { files: Array.from(r), directories: Array.from(t) };
}
s(Aq, "getNestedFilesAndDirectories");
function n2(e, t, r) {
  let { files: i, directories: n } = Aq(
    e.map((l) => Cq(t.workingDir, l.directory))
  ), a = new r2.default({
    // poll: true, // Slow!!! Enable only in special cases
    followSymlinks: !1,
    ignored: ["**/.git", "**/node_modules"]
  });
  a.watch({ files: i, directories: n });
  let u = /* @__PURE__ */ s((l) => {
    let c = vq(t.workingDir, l);
    return rt(c.startsWith(".") ? c : `./${c}`);
  }, "toImportPath");
  async function o(l, c) {
    let h = u(l), p = e.find((d) => d.importPathMatcher.exec(h));
    if (p) {
      r(p, h, c);
      return;
    }
    !c && i2(l) && await Promise.all(
      e.filter((d) => h.startsWith(d.directory)).map(async (d) => {
        let m = Uf(
          l,
          "**",
          // files can be e.g. '**/foo/*/*.js' so we just want the last bit,
          // because the directory could already be within the files part (e.g. './x/foo/bar')
          bq(d.files)
        ), { globby: g } = await Promise.resolve().then(() => (Kh(), Yh));
        (await g(rt(m), wq(m))).forEach((v) => {
          let y = u(v);
          d.importPathMatcher.exec(y) && r(d, y, c);
        });
      })
    );
  }
  return s(o, "onChangeOrRemove"), a.on("change", async (l, c, h) => {
    await o(l, !c);
  }), a.on("remove", async (l, c) => {
    await o(l, !0);
  }), () => a.close();
}
s(n2, "watchStorySpecifiers");

// src/core-server/utils/watchConfig.ts
var s2 = pe(Vf(), 1);
function a2(e, t) {
  let r = new s2.default({
    followSymlinks: !1,
    ignored: ["**/.git", "**/node_modules"]
  });
  return r.watch({
    directories: [e]
  }), r.on("change", async (i, n, a) => {
    await t(i, !n);
  }), r.on("remove", async (i, n) => {
    await t(i, !0);
  }), () => r.close();
}
s(a2, "watchConfig");

// src/core-server/utils/stories-json.ts
var kq = 100;
async function u2(e, t, r) {
  let n = await (await t).getIndex();
  await Fq(e, JSON.stringify(r ? r(n) : n));
}
s(u2, "extractStoriesJson");
function o2({
  app: e,
  initializedStoryIndexGenerator: t,
  workingDir: r = process.cwd(),
  configDir: i,
  serverChannel: n,
  normalizedStories: a
}) {
  let u = Cf(() => n.emit(_q), kq, {
    leading: !0
  });
  n2(a, { workingDir: r }, async (o, l, c) => {
    (await t).invalidate(o, l, c), u();
  }), i && a2(i, async (o) => {
    Sq(o).startsWith("preview") && ((await t).invalidateAll(), u());
  }), e.use("/index.json", async (o, l) => {
    try {
      let h = await (await t).getIndex();
      l.setHeader("Content-Type", "application/json"), l.setHeader("Access-Control-Allow-Origin", "*"), l.setHeader(
        "Access-Control-Allow-Headers",
        "Origin, X-Requested-With, Content-Type, Accept"
      ), l.end(JSON.stringify(h));
    } catch (c) {
      l.statusCode = 500, l.end(c instanceof Error ? c.toString() : String(c));
    }
  });
}
s(o2, "useStoriesJson");

// src/core-server/utils/summarizeIndex.ts
import { isExampleStoryId as Tq } from "@storybook/core/telemetry";
var Bq = /(page|screen)/i, Pq = /* @__PURE__ */ s((e) => Bq.test(e), "isPageStory"), Iq = /* @__PURE__ */ s((e) => [
  "example-introduction--docs",
  "configure-your-project--docs",
  "example-button--docs",
  "example-button--primary",
  "example-button--secondary",
  "example-button--large",
  "example-button--small",
  "example-header--docs",
  "example-header--logged-in",
  "example-header--logged-out",
  "example-page--logged-in",
  "example-page--logged-out"
].includes(e.id), "isCLIExampleEntry");
function bo(e) {
  let t = 0, r = /* @__PURE__ */ new Set(), i = 0, n = 0, a = 0, u = 0, o = 0, l = 0, c = 0, h = 0;
  Object.values(e.entries).forEach((d) => {
    Iq(d) ? (d.type === "story" && (i += 1), d.type === "docs" && (u += 1)) : Tq(d.id) ? (d.type === "story" && (n += 1), d.type === "docs" &&
    (a += 1)) : d.type === "story" ? (t += 1, r.add(d.title), Pq(d.title) && (o += 1), d.tags?.includes(Ev) && (l += 1)) : d.type === "docs" &&
    (en(d) ? h += 1 : d.tags?.includes(Zi) && (c += 1));
  });
  let p = r.size;
  return {
    storyCount: t,
    componentCount: p,
    pageStoryCount: o,
    playStoryCount: l,
    autodocsCount: c,
    mdxCount: h,
    exampleStoryCount: i,
    exampleDocsCount: u,
    onboardingStoryCount: n,
    onboardingDocsCount: a,
    version: e.v
  };
}
s(bo, "summarizeIndex");

// src/core-server/build-static.ts
async function f2(e) {
  if (e.configType = "PRODUCTION", e.outputDir === "")
    throw new Error("Won't remove current directory. Check your outputDir!");
  if (e.outputDir = l2(e.outputDir), e.configDir = l2(e.configDir), Bi.info(
    `=> Cleaning outputDir: ${p2.default.cyan(Mq(process.cwd(), e.outputDir))}`
  ), e.outputDir === "/")
    throw new Error("Won't remove directory '/'. Check your outputDir!");
  await Nq(e.outputDir, { recursive: !0, force: !0 }).catch(() => {
  }), await Rq(e.outputDir, { recursive: !0 });
  let t = await jq(e), { framework: r } = t, i = [], n = typeof r == "string" ? r : r?.name;
  n ? i.push(vo(n, "preset")) : e.ignorePreview || Bi.warn(`you have not specified a framework in your ${e.configDir}/main.js`), Bi.info("=>\
 Loading presets");
  let a = await c2({
    corePresets: [
      H.resolve("@storybook/core/core-server/presets/common-preset"),
      ...i
    ],
    overridePresets: [
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    isCritical: !0,
    ...e
  }), { renderer: u } = await a.apply("core", {}), o = await a.apply("build", {}), [l, c] = await Hv({ ...e, presets: a, build: o }), h = u ?
  Vq(e.configDir, u, e) : void 0;
  a = await c2({
    corePresets: [
      H.resolve("@storybook/core/core-server/presets/common-preset"),
      ...c.corePresets || [],
      ...l.corePresets || [],
      ...h ? [h] : [],
      ...i
    ],
    overridePresets: [
      ...l.overridePresets || [],
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    ...e,
    build: o
  });
  let [p, d, m, g, D, v] = await Promise.all([
    a.apply("features"),
    a.apply("core"),
    a.apply("staticDirs"),
    a.apply("experimental_indexers", []),
    a.apply("stories"),
    a.apply("docs", {})
  ]), y = {
    ...e,
    presets: a,
    features: p,
    build: o
  }, C = [];
  h2.global.FEATURES = p, await io(
    async () => c.build({ startTime: process.hrtime(), options: y })
  ), m && C.push(
    zv(m, e.outputDir, e.configDir)
  );
  let S = vo(
    Lq(H.resolve("@storybook/core/package.json")),
    "assets/browser"
  );
  C.push(Oq(S, e.outputDir, { recursive: !0 }));
  let T = Promise.resolve(void 0);
  if (!e.ignorePreview) {
    let w = process.cwd(), A = {
      configDir: e.configDir,
      workingDir: w
    }, P = $q(D, A), k = new tn(P, {
      ...A,
      indexers: g,
      docs: v,
      build: o
    });
    T = k.initialize().then(() => k), C.push(
      u2(
        vo(e.outputDir, "index.json"),
        T
      )
    );
  }
  d?.disableProjectJson || C.push(
    Jv(vo(e.outputDir, "project.json"), e.configDir)
  ), e.debugWebpack && qq("Preview webpack config", await l.getConfig(y)), e.ignorePreview ? Bi.info("=> Not building preview") : Bi.info("=\
> Building preview..");
  let j = process.hrtime();
  await Promise.all([
    ...e.ignorePreview ? [] : [
      l.build({
        startTime: j,
        options: y
      }).then(async (w) => {
        Bi.trace({ message: "=> Preview built", time: process.hrtime(j) });
        let A = e.webpackStatsJson || e.statsJson;
        if (A) {
          let P = A === !0 ? e.outputDir : A;
          await ao(P, w);
        }
      }).catch((w) => {
        throw Bi.error("=> Failed to build the preview"), process.exitCode = 1, w;
      })
    ],
    ...C
  ]), d?.disableTelemetry || C.push(
    T.then(async (w) => {
      let A = await w?.getIndex(), P = {
        precedingUpgrade: await Uq()
      };
      A && Object.assign(P, {
        storyIndex: bo(A)
      }), await zq("build", P, { configDir: e.configDir });
    })
  ), Bi.info(`=> Output directory: ${e.outputDir}`);
}
s(f2, "buildStaticStandalone");

// src/core-server/build-dev.ts
var VT = pe(La(), 1), UT = pe(tm(), 1);
import { readFile as AG } from "node:fs/promises";
import { join as FG, relative as SG, resolve as Rg } from "node:path";
import {
  getConfigInfo as _G,
  getProjectRoot as kG,
  loadAllPresets as qT,
  loadMainConfig as TG,
  resolveAddonName as BG,
  resolvePathInStorybookCache as PG,
  serverResolve as IG,
  validateFrameworkName as OG,
  versions as RG
} from "@storybook/core/common";
import { oneWayHash as NG, telemetry as LG } from "@storybook/core/telemetry";
import { deprecate as $T, logger as MG } from "@storybook/core/node-logger";
import { MissingBuilderError as jG, NoStatsForViteDevError as qG } from "@storybook/core/server-errors";
var Ng = pe(wr(), 1);

// src/core-server/dev-server.ts
import { logConfig as HW } from "@storybook/core/common";
import { logger as X_ } from "@storybook/core/node-logger";
import { MissingBuilderError as WW } from "@storybook/core/server-errors";

// ../node_modules/@polka/compression/build.mjs
import Ea from "node:zlib";
var XU = /* @__PURE__ */ s(() => {
}, "NOOP"), YU = /text|javascript|\/json|xml/i;
function UF(e, t) {
  return e ? Buffer.byteLength(e, t) : 0;
}
s(UF, "getChunkSize");
function rm({ threshold: e = 1024, level: t = -1, brotli: r = !1, gzip: i = !0, mimes: n = YU } = {}) {
  let a = typeof r == "object" && r || {}, u = typeof i == "object" && i || {};
  return Ea.createBrotliCompress || (r = !1), (o, l, c = XU) => {
    let h = o.headers["accept-encoding"] + "", p = (r && /\bbr\b/.exec(h) || i && /\bgzip\b/.exec(h) || [])[0];
    if (o.method === "HEAD" || !p) return c();
    let d, m = [], g = 0, D = !1, v = 0;
    function y() {
      D = !0, v = l.getHeader("Content-Length") | 0 || v;
      let w = n.test(
        String(l.getHeader("Content-Type") || "text/plain")
      ), A = !l.getHeader("Content-Encoding"), P = m || [];
      w && A && v >= e ? (l.setHeader("Content-Encoding", p), l.removeHeader("Content-Length"), p === "br" ? d = Ea.createBrotliCompress({
        params: Object.assign({
          [Ea.constants.BROTLI_PARAM_QUALITY]: t,
          [Ea.constants.BROTLI_PARAM_SIZE_HINT]: v
        }, a)
      }) : d = Ea.createGzip(
        Object.assign({ level: t }, u)
      ), d.on("data", (k) => S.call(l, k) || d.pause()), T.call(l, "drain", () => d.resume()), d.on("end", () => C.call(l)), P.forEach((k) => d.
      on.apply(d, k))) : (m = null, P.forEach((k) => T.apply(l, k))), j.call(l, g || l.statusCode);
    }
    s(y, "start");
    let { end: C, write: S, on: T, writeHead: j } = l;
    l.writeHead = function(w, A, P) {
      if (typeof A != "string" && ([P, A] = [A, P]), P) for (let k in P) l.setHeader(k, P[k]);
      return g = w, this;
    }, l.write = function(w, A) {
      return v += UF(w, A), D || y(), d ? d.write.apply(d, arguments) : S.apply(this, arguments);
    }, l.end = function(w, A) {
      return arguments.length > 0 && typeof w != "function" && (v += UF(w, A)), D || y(), d ? d.end.apply(d, arguments) : C.apply(this, arguments);
    }, l.on = function(w, A) {
      return m ? d ? d.on(w, A) : m.push([w, A]) : T.call(this, w, A), this;
    }, c();
  };
}
s(rm, "default");

// src/core-server/dev-server.ts
import JW from "assert";

// ../node_modules/polka/build.mjs
import zF from "node:http";
import { setImmediate as KU } from "node:timers";

// ../node_modules/regexparam/dist/index.mjs
function im(e, t) {
  if (e instanceof RegExp) return { keys: !1, pattern: e };
  var r, i, n, a, u = [], o = "", l = e.split("/");
  for (l[0] || l.shift(); n = l.shift(); )
    r = n[0], r === "*" ? (u.push(r), o += n[1] === "?" ? "(?:/(.*))?" : "/(.*)") : r === ":" ? (i = n.indexOf("?", 1), a = n.indexOf(".", 1),
    u.push(n.substring(1, ~i ? i : ~a ? a : n.length)), o += ~i && !~a ? "(?:/([^/]+?))?" : "/([^/]+?)", ~a && (o += (~i ? "?" : "") + "\\" +
    n.substring(a))) : o += "/" + n;
  return {
    keys: u,
    pattern: new RegExp("^" + o + (t ? "(?=$|/)" : "/?$"), "i")
  };
}
s(im, "parse");

// ../node_modules/trouter/index.mjs
var nm = {
  "": 0,
  GET: 1,
  HEAD: 2,
  PATCH: 3,
  OPTIONS: 4,
  CONNECT: 5,
  DELETE: 6,
  TRACE: 7,
  POST: 8,
  PUT: 9
}, jo = class {
  static {
    s(this, "Trouter");
  }
  constructor() {
    this.routes = [], this.all = this.add.bind(this, ""), this.get = this.add.bind(this, "GET"), this.head = this.add.bind(this, "HEAD"), this.
    patch = this.add.bind(this, "PATCH"), this.options = this.add.bind(this, "OPTIONS"), this.connect = this.add.bind(this, "CONNECT"), this.
    delete = this.add.bind(this, "DELETE"), this.trace = this.add.bind(this, "TRACE"), this.post = this.add.bind(this, "POST"), this.put = this.
    add.bind(this, "PUT");
  }
  use(t, ...r) {
    let i = [].concat.apply([], r), { keys: n, pattern: a } = im(t, !0);
    return this.routes.push({ keys: n, pattern: a, method: "", handlers: i, midx: nm[""] }), this;
  }
  add(t, r, ...i) {
    let { keys: n, pattern: a } = im(r), u = [].concat.apply([], i);
    return this.routes.push({ keys: n, pattern: a, method: t, handlers: u, midx: nm[t] }), this;
  }
  find(t, r) {
    let i = nm[t], n = i === 2, a = 0, u = 0, o, l, c = this.routes, h = [], p = {}, d = [];
    for (; a < c.length; a++)
      if (l = c[a], l.midx === i || l.midx === 0 || n && l.midx === 1)
        if (l.keys === !1) {
          if (h = l.pattern.exec(r), h === null) continue;
          if (h.groups !== void 0) for (o in h.groups) p[o] = h.groups[o];
          l.handlers.length > 1 ? d = d.concat(l.handlers) : d.push(l.handlers[0]);
        } else if (l.keys.length > 0) {
          if (h = l.pattern.exec(r), h === null) continue;
          for (u = 0; u < l.keys.length; ) p[l.keys[u]] = h[++u];
          l.handlers.length > 1 ? d = d.concat(l.handlers) : d.push(l.handlers[0]);
        } else l.pattern.test(r) && (l.handlers.length > 1 ? d = d.concat(l.handlers) : d.push(l.handlers[0]));
    return { params: p, handlers: d };
  }
};

// ../node_modules/polka/build.mjs
ff();
function QU(e, t, r) {
  let i = typeof e.status == "number" && e.status;
  i = r.statusCode = i && i >= 100 ? i : 500, typeof e == "string" || Buffer.isBuffer(e) ? r.end(e) : r.end(e.message || zF.STATUS_CODES[i]);
}
s(QU, "onError");
var sm = /* @__PURE__ */ s((e) => e instanceof qo ? e.attach : e, "mount"), qo = class e extends jo {
  static {
    s(this, "Polka");
  }
  constructor(t = {}) {
    super(), this.parse = pf, this.server = t.server, this.handler = this.handler.bind(this), this.onError = t.onError || QU, this.onNoMatch =
    t.onNoMatch || this.onError.bind(null, { status: 404 }), this.attach = (r, i) => KU(this.handler, r, i);
  }
  use(t, ...r) {
    return t === "/" ? super.use(t, r.map(sm)) : typeof t == "function" || t instanceof e ? super.use("/", [t, ...r].map(sm)) : super.use(
      t,
      (i, n, a) => {
        if (typeof t == "string") {
          let u = t.length;
          t.startsWith("/") || u++, i.url = i.url.substring(u) || "/", i.path = i.path.substring(u) || "/";
        } else
          i.url = i.url.replace(t, "") || "/", i.path = i.path.replace(t, "") || "/";
        i.url.charAt(0) !== "/" && (i.url = "/" + i.url), a();
      },
      r.map(sm),
      (i, n, a) => {
        i.path = i._parsedUrl.pathname, i.url = i.path + i._parsedUrl.search, a();
      }
    ), this;
  }
  listen() {
    return (this.server = this.server || zF.createServer()).on("request", this.attach), this.server.listen.apply(this.server, arguments), this;
  }
  handler(t, r, i) {
    let n = this.parse(t), a = n.pathname, u = this.find(t.method, t.path = a);
    if (t.url = a + n.search, t.originalUrl = t.originalUrl || t.url, t.query = n.query || {}, t.search = n.search, t.params = u.params, a.length >
    1 && a.indexOf("%", 1) !== -1)
      for (let p in t.params)
        try {
          t.params[p] = decodeURIComponent(t.params[p]);
        } catch {
        }
    let o = 0, l = u.handlers.concat(this.onNoMatch), c = l.length, h = /* @__PURE__ */ s(async () => r.finished || o < c && l[o++](t, r, i),
    "loop");
    (i = i || ((p) => p ? this.onError(p, t, r, i) : h().catch(i)))();
  }
};
function am(e) {
  return new qo(e);
}
s(am, "default");

// src/core-server/utils/doTelemetry.ts
import { getPrecedingUpgrade as sz, telemetry as az } from "@storybook/core/telemetry";

// src/core-server/withTelemetry.ts
var HF = pe(tm(), 1);
import { cache as um, loadAllPresets as ZU } from "@storybook/core/common";
import { getPrecedingUpgrade as ez, oneWayHash as tz, telemetry as om } from "@storybook/core/telemetry";
import { logger as rz } from "@storybook/core/node-logger";
var iz = /* @__PURE__ */ s(async () => {
  if (process.env.CI)
    return;
  let { enableCrashReports: e } = await (0, HF.default)({
    type: "confirm",
    name: "enableCrashReports",
    message: "Would you like to help improve Storybook by sending anonymous crash reports?",
    initial: !0
  });
  return await um.set("enableCrashReports", e), e;
}, "promptCrashReports");
async function nz({
  cliOptions: e,
  presetOptions: t,
  skipPrompt: r
}) {
  if (e.disableTelemetry)
    return "none";
  if (!t)
    return "full";
  let n = await (await ZU(t)).apply("core");
  if (n?.enableCrashReports !== void 0)
    return n.enableCrashReports ? "full" : "error";
  if (n?.disableTelemetry)
    return "none";
  let a = await um.get("enableCrashReports") ?? await um.get("enableCrashreports");
  if (a !== void 0)
    return a ? "full" : "error";
  if (r)
    return "error";
  let u = await iz();
  return u !== void 0 ? u ? "full" : "error" : "full";
}
s(nz, "getErrorLevel");
async function lm(e, t, r) {
  try {
    let i = "error";
    try {
      i = await nz(r);
    } catch {
    }
    if (i !== "none") {
      let n = await ez(), a = e, u;
      "message" in a ? u = a.message ? tz(a.message) : "EMPTY_MESSAGE" : u = "NO_MESSAGE";
      let { code: o, name: l, category: c } = a;
      await om(
        "error",
        {
          code: o,
          name: l,
          category: c,
          eventType: t,
          precedingUpgrade: n,
          error: i === "full" ? a : void 0,
          errorHash: u,
          // if we ever end up sending a non-error instance, we'd like to know
          isErrorInstance: a instanceof Error
        },
        {
          immediate: !0,
          configDir: r.cliOptions.configDir || r.presetOptions?.configDir,
          enableCrashReports: i === "full"
        }
      );
    }
  } catch {
  }
}
s(lm, "sendTelemetryError");
async function ase(e, t, r) {
  let i = !(t.cliOptions.disableTelemetry || t.cliOptions.test === !0), n = !1;
  async function a() {
    n = !0, i && await om("canceled", { eventType: e }, { stripMetadata: !0, immediate: !0 }), process.exit(0);
  }
  s(a, "cancelTelemetry"), e === "init" && process.on("SIGINT", a), i && om("boot", { eventType: e }, { stripMetadata: !0 });
  try {
    return await r();
  } catch (u) {
    if (n)
      return;
    let { printError: o = rz.error } = t;
    throw o(u), i && await lm(u, e, t), u;
  } finally {
    process.off("SIGINIT", a);
  }
}
s(ase, "withTelemetry");

// src/core-server/utils/versionStatus.ts
var WF = /* @__PURE__ */ s((e) => e.error ? "error" : e.cached ? "cached" : "success", "versionStatus");

// src/core-server/utils/doTelemetry.ts
async function JF(e, t, r, i) {
  t?.disableTelemetry || r.then(async (n) => {
    let a;
    try {
      a = await n?.getIndexAndStats();
    } catch (c) {
      if (!(c instanceof Error))
        throw new Error("encountered a non-recoverable error");
      lm(c, "dev", {
        cliOptions: i,
        presetOptions: { ...i, corePresets: [], overridePresets: [] }
      });
      return;
    }
    let { versionCheck: u, versionUpdates: o } = i;
    Dt(
      !o || o && u,
      "versionCheck should be defined when versionUpdates is true"
    );
    let l = {
      precedingUpgrade: await sz()
    };
    a && Object.assign(l, {
      versionStatus: o && u ? WF(u) : "disabled",
      storyIndex: bo(a.storyIndex),
      storyStats: a.stats
    }), az("dev", l, { configDir: i.configDir });
  }), t?.disableProjectJson || Gv(e, i.configDir);
}
s(JF, "doTelemetry");

// src/core-server/utils/get-caching-middleware.ts
function GF() {
  return (e, t, r) => {
    t.setHeader("Cache-Control", "no-store"), r();
  };
}
s(GF, "getCachingMiddleware");

// src/core-server/utils/get-server-channel.ts
var cs = pe(rS(), 1);
import { Channel as wH, HEARTBEAT_INTERVAL as AH } from "@storybook/core/channels";
import k3, { WebSocketServer as FH } from "ws";

// src/node-logger/index.ts
var Vr = pe(x3(), 1), C3 = pe(Nm(), 1);
Vr.default.stream = process.stdout;
function cn(e) {
  if (!/^#?[0-9A-Fa-f]{6}$/.test(e))
    throw new Error("Invalid hex color. It must be a 6-character hex code.");
  e.startsWith("#") && (e = e.slice(1));
  let t = parseInt(e.slice(0, 2), 16), r = parseInt(e.slice(2, 4), 16), i = parseInt(e.slice(4, 6), 16);
  return (n) => `\x1B[38;2;${t};${r};${i}m${n}\x1B[39m`;
}
s(cn, "hex");
var v3 = {
  pink: cn("#F1618C"),
  purple: cn("#B57EE5"),
  orange: cn("#F3AD38"),
  green: cn("#A2E05E"),
  blue: cn("#6DABF5"),
  red: cn("#F16161"),
  gray: cn("#B8C2CC")
}, Mm = {
  verbose: /* @__PURE__ */ s((e) => Vr.default.verbose("", e), "verbose"),
  info: /* @__PURE__ */ s((e) => Vr.default.info("", e), "info"),
  plain: /* @__PURE__ */ s((e) => console.log(e), "plain"),
  line: /* @__PURE__ */ s((e = 1) => console.log(`${Array(e - 1).fill(`
`)}`), "line"),
  warn: /* @__PURE__ */ s((e) => Vr.default.warn("", e), "warn"),
  trace: /* @__PURE__ */ s(({ message: e, time: t }) => Vr.default.info("", `${e} (${v3.purple((0, C3.default)(t))})`), "trace"),
  setLevel: /* @__PURE__ */ s((e = "info") => {
    Vr.default.level = e;
  }, "setLevel"),
  error: /* @__PURE__ */ s((e) => {
    if (Vr.default.levels[Vr.default.level] < Vr.default.levels.error) {
      let t;
      e instanceof Error && e.stack ? t = e.stack.toString() : t = e.toString(), console.log(
        t.replace(e.toString(), v3.red(e.toString())).replaceAll(process.cwd(), ".")
      );
    }
  }, "error")
};
var Lm = /* @__PURE__ */ new Set(), Ur = /* @__PURE__ */ s((e) => (t) => {
  if (!Lm.has(t))
    return Lm.add(t), Mm[e](t);
}, "once");
Ur.clear = () => Lm.clear();
Ur.verbose = Ur("verbose");
Ur.info = Ur("info");
Ur.warn = Ur("warn");
Ur.error = Ur("error");
var Bae = Ur("warn");

// src/shared/universal-store/index.ts
var hn = pe(wr(), 1);

// src/shared/universal-store/instances.ts
var jm = /* @__PURE__ */ new Map();

// src/shared/universal-store/index.ts
var xH = "UNIVERSAL_STORE:", nr = {
  PENDING: "PENDING",
  RESOLVED: "RESOLVED",
  REJECTED: "REJECTED"
}, xr = class e {
  constructor(t, r) {
    /** Enable debug logs for this store */
    this.debugging = !1;
    // TODO: narrow type of listeners based on event type
    this.listeners = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set()]]);
    /** Gets the current state */
    this.getState = /* @__PURE__ */ s(() => (this.debug("getState", { state: this.state }), this.state), "getState");
    /**
     * Subscribes to store events
     *
     * @returns A function to unsubscribe
     */
    this.subscribe = /* @__PURE__ */ s((t, r) => {
      let i = typeof t == "function", n = i ? "*" : t, a = i ? t : r;
      if (this.debug("subscribe", { eventType: n, listener: a }), !a)
        throw new TypeError(
          `Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`
        );
      return this.listeners.has(n) || this.listeners.set(n, /* @__PURE__ */ new Set()), this.listeners.get(n).add(a), () => {
        this.debug("unsubscribe", { eventType: n, listener: a }), this.listeners.has(n) && (this.listeners.get(n).delete(a), this.listeners.
        get(n)?.size === 0 && this.listeners.delete(n));
      };
    }, "subscribe");
    /** Sends a custom event to the other stores */
    this.send = /* @__PURE__ */ s((t) => {
      if (this.debug("send", { event: t }), this.status !== e.Status.READY)
        throw new TypeError(
          hn.dedent`Cannot send event before store is ready. You can get the current status with store.status,
        or await store.readyPromise to wait for the store to be ready before sending events.
        ${JSON.stringify(
            {
              event: t,
              id: this.id,
              actor: this.actor,
              environment: this.environment
            },
            null,
            2
          )}`
        );
      this.emitToListeners(t, { actor: this.actor }), this.emitToChannel(t, { actor: this.actor });
    }, "send");
    if (this.debugging = t.debug ?? !1, !e.isInternalConstructing)
      throw new TypeError(
        "UniversalStore is not constructable - use UniversalStore.create() instead"
      );
    if (e.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
    actorType = t.leader ? e.ActorType.LEADER : e.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${xH}${this.id}`,
    this.debug("constructor", {
      options: t,
      environmentOverrides: r,
      channelEventName: this.channelEventName
    }), this.actor.type === e.ActorType.LEADER)
      this.syncing = {
        state: nr.RESOLVED,
        promise: Promise.resolve()
      };
    else {
      let i, n, a = new Promise((u, o) => {
        i = /* @__PURE__ */ s(() => {
          this.syncing.state === nr.PENDING && (this.syncing.state = nr.RESOLVED, u());
        }, "syncingResolve"), n = /* @__PURE__ */ s((l) => {
          this.syncing.state === nr.PENDING && (this.syncing.state = nr.REJECTED, o(l));
        }, "syncingReject");
      });
      this.syncing = {
        state: nr.PENDING,
        promise: a,
        resolve: i,
        reject: n
      };
    }
    this.getState = this.getState.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), this.onStateChange =
    this.onStateChange.bind(this), this.send = this.send.bind(this), this.emitToChannel = this.emitToChannel.bind(this), this.prepareThis = this.
    prepareThis.bind(this), this.emitToListeners = this.emitToListeners.bind(this), this.handleChannelEvents = this.handleChannelEvents.bind(
    this), this.debug = this.debug.bind(this), this.channel = r?.channel ?? e.preparation.channel, this.environment = r?.environment ?? e.preparation.
    environment, this.channel && this.environment ? this.prepareThis({ channel: this.channel, environment: this.environment }) : e.preparation.
    promise.then(this.prepareThis);
  }
  static {
    s(this, "UniversalStore");
  }
  static {
    /**
     * Defines the possible actor types in the store system
     *
     * @readonly
     */
    this.ActorType = {
      LEADER: "LEADER",
      FOLLOWER: "FOLLOWER"
    };
  }
  static {
    /**
     * Defines the possible environments the store can run in
     *
     * @readonly
     */
    this.Environment = {
      SERVER: "SERVER",
      MANAGER: "MANAGER",
      PREVIEW: "PREVIEW",
      UNKNOWN: "UNKNOWN",
      MOCK: "MOCK"
    };
  }
  static {
    /**
     * Internal event types used for store synchronization
     *
     * @readonly
     */
    this.InternalEventType = {
      EXISTING_STATE_REQUEST: "__EXISTING_STATE_REQUEST",
      EXISTING_STATE_RESPONSE: "__EXISTING_STATE_RESPONSE",
      SET_STATE: "__SET_STATE",
      LEADER_CREATED: "__LEADER_CREATED",
      FOLLOWER_CREATED: "__FOLLOWER_CREATED"
    };
  }
  static {
    this.Status = {
      UNPREPARED: "UNPREPARED",
      SYNCING: "SYNCING",
      READY: "READY",
      ERROR: "ERROR"
    };
  }
  static {
    // This is used to check if constructor was called from the static factory create()
    this.isInternalConstructing = !1;
  }
  static {
    e.setupPreparationPromise();
  }
  static setupPreparationPromise() {
    let t, r, i = new Promise(
      (n, a) => {
        t = /* @__PURE__ */ s((u) => {
          n(u);
        }, "resolveRef"), r = /* @__PURE__ */ s((...u) => {
          a(u);
        }, "rejectRef");
      }
    );
    e.preparation = {
      resolve: t,
      reject: r,
      promise: i
    };
  }
  /** The actor object representing the store instance with a unique ID and a type */
  get actor() {
    return Object.freeze({
      id: this.actorId,
      type: this.actorType,
      environment: this.environment ?? e.Environment.UNKNOWN
    });
  }
  /**
   * The current state of the store, that signals both if the store is prepared by Storybook and
   * also - in the case of a follower - if the state has been synced with the leader's state.
   */
  get status() {
    if (!this.channel || !this.environment)
      return e.Status.UNPREPARED;
    switch (this.syncing?.state) {
      case nr.PENDING:
      case void 0:
        return e.Status.SYNCING;
      case nr.REJECTED:
        return e.Status.ERROR;
      case nr.RESOLVED:
      default:
        return e.Status.READY;
    }
  }
  /**
   * A promise that resolves when the store is fully ready. A leader will be ready when the store
   * has been prepared by Storybook, which is almost instantly.
   *
   * A follower will be ready when the state has been synced with the leader's state, within a few
   * hundred milliseconds.
   */
  untilReady() {
    return Promise.all([e.preparation.promise, this.syncing?.promise]);
  }
  /** Creates a new instance of UniversalStore */
  static create(t) {
    if (!t || typeof t?.id != "string")
      throw new TypeError("id is required and must be a string, when creating a UniversalStore");
    t.debug && console.debug(
      hn.dedent`[UniversalStore]
        create`,
      { options: t }
    );
    let r = jm.get(t.id);
    if (r)
      return console.warn(hn.dedent`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
        You should reuse the existing instance instead of trying to create a new one.`), r;
    e.isInternalConstructing = !0;
    let i = new e(t);
    return jm.set(t.id, i), i;
  }
  /**
   * Used by Storybook to set the channel for all instances of UniversalStore in the given
   * environment.
   *
   * @internal
   */
  static __prepare(t, r) {
    e.preparation.channel = t, e.preparation.environment = r, e.preparation.resolve({ channel: t, environment: r });
  }
  /**
   * Updates the store's state
   *
   * Either a new state or a state updater function can be passed to the method.
   */
  setState(t) {
    let r = this.state, i = typeof t == "function" ? t(r) : t;
    if (this.debug("setState", { newState: i, previousState: r, updater: t }), this.status !== e.Status.READY)
      throw new TypeError(
        hn.dedent`Cannot set state before store is ready. You can get the current status with store.status,
        or await store.readyPromise to wait for the store to be ready before sending events.
        ${JSON.stringify(
          {
            newState: i,
            id: this.id,
            actor: this.actor,
            environment: this.environment
          },
          null,
          2
        )}`
      );
    this.state = i;
    let n = {
      type: e.InternalEventType.SET_STATE,
      payload: {
        state: i,
        previousState: r
      }
    };
    this.emitToChannel(n, { actor: this.actor }), this.emitToListeners(n, { actor: this.actor });
  }
  /**
   * Subscribes to state changes
   *
   * @returns Unsubscribe function
   */
  onStateChange(t) {
    return this.debug("onStateChange", { listener: t }), this.subscribe(
      e.InternalEventType.SET_STATE,
      ({ payload: r }, i) => {
        t(r.state, r.previousState, i);
      }
    );
  }
  emitToChannel(t, r) {
    this.debug("emitToChannel", { event: t, eventInfo: r, channel: this.channel }), this.channel?.emit(this.channelEventName, {
      event: t,
      eventInfo: r
    });
  }
  prepareThis({
    channel: t,
    environment: r
  }) {
    this.channel = t, this.environment = r, this.debug("prepared", { channel: t, environment: r }), this.channel.on(this.channelEventName, this.
    handleChannelEvents), this.actor.type === e.ActorType.LEADER ? this.emitToChannel(
      { type: e.InternalEventType.LEADER_CREATED },
      { actor: this.actor }
    ) : (this.emitToChannel(
      { type: e.InternalEventType.FOLLOWER_CREATED },
      { actor: this.actor }
    ), this.emitToChannel(
      { type: e.InternalEventType.EXISTING_STATE_REQUEST },
      { actor: this.actor }
    ), setTimeout(() => {
      this.syncing.reject(
        new TypeError(
          `No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower\
.`
        )
      );
    }, 1e3));
  }
  emitToListeners(t, r) {
    let i = this.listeners.get(t.type), n = this.listeners.get("*");
    this.debug("emitToListeners", {
      event: t,
      eventInfo: r,
      eventTypeListeners: i,
      everythingListeners: n
    }), [...i ?? [], ...n ?? []].forEach(
      (a) => a(t, r)
    );
  }
  handleChannelEvents(t) {
    let { event: r, eventInfo: i } = t;
    if ([i.actor.id, i.forwardingActor?.id].includes(this.actor.id)) {
      this.debug("handleChannelEvents: Ignoring event from self", { channelEvent: t });
      return;
    } else if (this.syncing?.state === nr.PENDING && r.type !== e.InternalEventType.EXISTING_STATE_RESPONSE) {
      this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent: t });
      return;
    }
    if (this.debug("handleChannelEvents", { channelEvent: t }), this.actor.type === e.ActorType.LEADER) {
      let n = !0;
      switch (r.type) {
        case e.InternalEventType.EXISTING_STATE_REQUEST:
          n = !1;
          let a = {
            type: e.InternalEventType.EXISTING_STATE_RESPONSE,
            payload: this.state
          };
          this.debug("handleChannelEvents: responding to existing state request", {
            responseEvent: a
          }), this.emitToChannel(a, { actor: this.actor });
          break;
        case e.InternalEventType.LEADER_CREATED:
          n = !1, this.syncing.state = nr.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
            event: r
          }), console.error(
            hn.dedent`Detected multiple UniversalStore leaders created with the same id "${this.id}".
            Only one leader can exists at a time, your stores are now in an invalid state.
            Leaders detected:
            this: ${JSON.stringify(this.actor, null, 2)}
            other: ${JSON.stringify(i.actor, null, 2)}`
          );
          break;
      }
      n && (this.debug("handleChannelEvents: forwarding event", { channelEvent: t }), this.emitToChannel(r, { actor: i.actor, forwardingActor: this.
      actor }));
    }
    if (this.actor.type === e.ActorType.FOLLOWER)
      switch (r.type) {
        case e.InternalEventType.EXISTING_STATE_RESPONSE:
          if (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
            event: r
          }), this.syncing?.state !== nr.PENDING)
            break;
          this.syncing.resolve?.();
          let n = {
            type: e.InternalEventType.SET_STATE,
            payload: {
              state: r.payload,
              previousState: this.state
            }
          };
          this.state = r.payload, this.emitToListeners(n, i);
          break;
      }
    switch (r.type) {
      case e.InternalEventType.SET_STATE:
        this.debug("handleChannelEvents: Setting state", { event: r }), this.state = r.payload.state;
        break;
    }
    this.emitToListeners(r, { actor: i.actor });
  }
  debug(t, r) {
    this.debugging && console.debug(
      hn.dedent`[UniversalStore::${this.id}::${this.environment ?? e.Environment.UNKNOWN}]
        ${t}`,
      JSON.stringify(
        {
          data: r,
          actor: this.actor,
          state: this.state,
          status: this.status
        },
        null,
        2
      )
    );
  }
  /**
   * Used to reset the static fields of the UniversalStore class when cleaning up tests
   *
   * @internal
   */
  static __reset() {
    e.preparation.reject(new Error("reset")), e.setupPreparationPromise(), e.isInternalConstructing = !1;
  }
};

// ../node_modules/host-validation-middleware/dist/index.js
import w3 from "node:net";
function EH(e) {
  let t = e.trim();
  if (t[0] === "[") {
    let n = t.indexOf("]");
    return n < 0 ? { type: "invalid" } : w3.isIP(t.slice(1, n)) === 6 ? { type: "ipv6" } : { type: "invalid" };
  }
  let r = t.indexOf(":"), i = r === -1 ? t : t.slice(0, r);
  return w3.isIP(i) === 4 ? { type: "ipv4" } : {
    type: "hostname",
    value: i
  };
}
s(EH, "extractHostNameFromHostHeader");
var bH = /^(?:file|.+-extension):/i;
function vH(e, t) {
  if (bH.test(e)) return !0;
  let r = EH(e);
  if (r.type === "invalid") return !1;
  if (r.type === "ipv4" || r.type === "ipv6") return !0;
  let i = r.value;
  if (i === "localhost" || i.endsWith(".localhost")) return !0;
  for (let n of t)
    if (n === i || n[0] === "." && (n.slice(1) === i || i.endsWith(n))) return !0;
  return !1;
}
s(vH, "isHostAllowedInternal");
var qm = /* @__PURE__ */ new WeakMap();
function A3(e, t) {
  if (e === void 0) return !0;
  let r;
  if (Object.isFrozen(t) && (qm.has(t) || qm.set(t, /* @__PURE__ */ new Set()), r = qm.get(t), r.has(e)))
    return !0;
  let i = vH(e, t);
  return r && i && r.add(e), i;
}
s(A3, "isHostAllowed");

// src/core-server/utils/getHostValidationMiddleware.ts
var F3 = [], $m = /* @__PURE__ */ s((e, t) => {
  let r = t.allowedHosts ?? F3;
  if (r === !0)
    return !0;
  if (!e)
    return !1;
  try {
    return t.host === "0.0.0.0" && r.length === 0 ? !0 : A3(e, [
      ...r,
      ...t.localAddress ? [new URL(t.localAddress).host] : [],
      ...t.networkAddress ? [new URL(t.networkAddress).host] : []
    ]);
  } catch {
    return !1;
  }
}, "isValidHost");
function S3(e) {
  return (t, r, i) => {
    let n = t.headers.host;
    if ((e.allowedHosts ?? F3) !== !0 && !$m(n, e)) {
      r.writeHead(403, { "Content-Type": "text/plain" }), r.end("Invalid host");
      return;
    }
    i();
  };
}
s(S3, "getHostValidationMiddleware");

// src/core-server/utils/validate-token.ts
import { timingSafeEqual as CH } from "node:crypto";
function _3(e, t) {
  if (!e || !t)
    return !1;
  let r = new Uint8Array(Buffer.from(e, "utf8")), i = new Uint8Array(Buffer.from(t, "utf8"));
  try {
    return r.length === i.length && CH(r, i);
  } catch {
    return !1;
  }
}
s(_3, "isValidToken");

// src/core-server/utils/get-server-channel.ts
var Vm = class {
  static {
    s(this, "ServerChannelTransport");
  }
  constructor(t, r) {
    this.socket = new FH({ noServer: !0 }), t.on("upgrade", (n, a, u) => {
      try {
        let o = n.url && new URL(n.url, r.localAddress);
        if (!o || o.pathname !== "/storybook-server-channel")
          return;
        let l = n.headers.origin && new URL(n.headers.origin).host;
        if (!$m(l, r))
          throw new Error("Invalid websocket origin");
        let c = o.searchParams.get("token");
        if (!_3(c, r.token))
          throw new Error("Invalid websocket token");
        this.socket.handleUpgrade(n, a, u, (h) => {
          this.socket.emit("connection", h, n);
        });
      } catch (o) {
        Mm.warn(`Rejecting WebSocket connection: ${o}`), a.write(`HTTP/1.1 403 Forbidden\r
Connection: close\r
\r
`), a.destroy();
      }
    }), this.socket.on("connection", (n) => {
      n.on("message", (a) => {
        let u = a.toString(), o = typeof u == "string" && (0, cs.isJSON)(u) ? (0, cs.parse)(u, { allowFunction: !1, allowClass: !1 }) : u;
        this.handler?.(o);
      });
    });
    let i = setInterval(() => {
      this.send({ type: "ping" });
    }, AH);
    this.socket.on("close", /* @__PURE__ */ s(function() {
      clearInterval(i);
    }, "close")), process.on("SIGTERM", () => {
      this.socket.clients.forEach((n) => {
        n.readyState === k3.OPEN && n.close(1001, "Server is shutting down");
      }), this.socket.close(() => process.exit(0));
    });
  }
  setHandler(t) {
    this.handler = t;
  }
  send(t) {
    let r = (0, cs.stringify)(t, { maxDepth: 15, allowFunction: !1, allowClass: !1 });
    Array.from(this.socket.clients).filter((i) => i.readyState === k3.OPEN).forEach((i) => i.send(r));
  }
};
function T3(e, t) {
  let r = [new Vm(e, t)], i = new wH({ transports: r, async: !0 });
  return xr.__prepare(i, xr.Environment.SERVER), i;
}
s(T3, "getServerChannel");

// src/core-server/utils/getAccessControlMiddleware.ts
function B3(e) {
  return (t, r, i) => {
    e && (r.setHeader("Cross-Origin-Opener-Policy", "same-origin"), r.setHeader("Cross-Origin-Embedder-Policy", "require-corp")), i();
  };
}
s(B3, "getAccessControlMiddleware");

// src/core-server/utils/getStoryIndexGenerator.ts
import { normalizeStories as SH } from "@storybook/core/common";
async function P3(e, t, r) {
  let i = process.cwd(), n = t.configDir, a = {
    configDir: n,
    workingDir: i
  }, u = t.presets.apply("stories"), o = t.presets.apply("experimental_indexers", []), l = t.presets.apply("docs", {}), c = SH(await u, a), h = new tn(
  c, {
    ...a,
    indexers: await o,
    docs: await l,
    workingDir: i
  }), p = h.initialize().then(() => h);
  return o2({
    app: e,
    initializedStoryIndexGenerator: p,
    normalizedStories: c,
    serverChannel: r,
    workingDir: i,
    configDir: n
  }), p;
}
s(P3, "getStoryIndexGenerator");

// src/core-server/utils/middleware.ts
import { existsSync as _H } from "node:fs";
import { resolve as kH } from "node:path";
var TH = /* @__PURE__ */ s((e) => [".js", ".cjs"].reduce((t, r) => {
  let i = `${e}${r}`;
  return !t && _H(i) ? i : t;
}, ""), "fileExists");
function I3(e) {
  let t = TH(kH(e, "middleware"));
  if (t) {
    let r = H(t);
    return r.__esModule && (r = r.default), r;
  }
  return () => {
  };
}
s(I3, "getMiddleware");

// src/core-server/utils/open-in-browser.ts
var D_ = pe(r_(), 1), y_ = pe(g_(), 1), x_ = pe(wr(), 1);
import { logger as iW } from "@storybook/core/node-logger";
import nW from "better-opn";
function E_(e) {
  let t = process.env.BROWSER, r = t === "chrome" || t === "chromium" || t === "brave" || t === "com.brave.browser", i = t ? { app: { name: t } } :
  {};
  (0, D_.default)(async (n, a) => {
    try {
      a && (a.isChrome || a.isChromium || a.identity === "com.brave.browser" || r) ? await nW(e) : await (0, y_.default)(e, i);
    } catch {
      iW.error(x_.dedent`
        Could not open ${e} inside a browser. If you're running this command inside a
        docker container or on a CI, you need to pass the '--ci' flag to prevent opening a
        browser by default.
      `);
    }
  });
}
s(E_, "openInBrowser");

// src/core-server/utils/server-address.ts
var U_ = pe(V_(), 1);
import qW from "node:os";
import { logger as $W } from "@storybook/core/node-logger";
function z_(e, t, r, i) {
  let n = new URL(`${r}://localhost:${e}/`), a = new URL(`${r}://${t || VW()}:${e}/`);
  if (i) {
    let u = `?path=${decodeURIComponent(
      i.startsWith("/") ? i : `/${i}`
    )}`;
    n.search = u, a.search = u;
  }
  return {
    address: n.href,
    networkAddress: a.href
  };
}
s(z_, "getServerAddresses");
var H_ = /* @__PURE__ */ s((e, { exactPort: t } = {}) => (0, U_.default)(e).then((r) => (r !== e && t && process.exit(-1), r)).catch((r) => {
  $W.error(r), process.exit(-1);
}), "getServerPort"), W_ = /* @__PURE__ */ s((e, { https: t }) => `${t ? "wss" : "ws"}://localhost:${e}/storybook-server-channel`, "getServe\
rChannelUrl"), VW = /* @__PURE__ */ s(() => {
  let t = Object.values(qW.networkInterfaces()).flat().filter((r) => r && r.family === "IPv4" && !r.internal);
  return t.length ? t[0]?.address : "0.0.0.0";
}, "getLocalIp");

// src/core-server/utils/server-init.ts
import { readFile as ag } from "node:fs/promises";
import { logger as J_ } from "@storybook/core/node-logger";
import UW from "http";
import zW from "https";
async function G_(e) {
  if (!e.https)
    return UW.createServer();
  e.sslCert || (J_.error("Error: --ssl-cert is required with --https"), process.exit(-1)), e.sslKey || (J_.error("Error: --ssl-key is requir\
ed with --https"), process.exit(-1));
  let t = {
    ca: await Promise.all((e.sslCa || []).map((r) => ag(r, { encoding: "utf8" }))),
    cert: await ag(e.sslCert, { encoding: "utf8" }),
    key: await ag(e.sslKey, { encoding: "utf8" })
  };
  return zW.createServer(t);
}
s(G_, "getServer");

// src/core-server/dev-server.ts
async function Y_(e) {
  let [t, r] = await Promise.all([G_(e), e.presets.apply("core")]), i = am({ server: t });
  JW(r?.channelOptions?.wsToken, "wsToken is required for securing the server channel");
  let { port: n, host: a, initialPath: u } = e;
  Dt(n, "expected options to have a port");
  let o = e.https ? "https" : "http", { address: l, networkAddress: c } = z_(n, a, o, u), h = await e.presets.apply(
    "experimental_serverChannel",
    T3(t, {
      token: r.channelOptions.wsToken,
      host: a,
      allowedHosts: r.allowedHosts,
      localAddress: l,
      networkAddress: c
    })
  ), p, d = P3(i, e, h).catch((S) => {
    p = S;
  });
  if (i.use(rm({ level: 1 })), typeof e.extendServer == "function" && e.extendServer(t), i.use(
    S3({
      host: a,
      allowedHosts: r?.allowedHosts,
      localAddress: l,
      networkAddress: c
    })
  ), i.use(B3(r?.crossOriginIsolated ?? !1)), i.use(GF()), I3(e.configDir)(i), !r?.builder)
    throw new WW();
  let m = typeof r?.builder == "string" ? r.builder : r?.builder?.name, [g, D] = await Promise.all([
    ra(m, e.configDir),
    ta(),
    qv(i, e)
  ]);
  e.debugWebpack && HW("Preview webpack config", await g.getConfig(e));
  let v = await D.start({
    startTime: process.hrtime(),
    options: e,
    router: i,
    server: t,
    channel: h
  }), y = await Promise.resolve();
  e.ignorePreview || (e.quiet || X_.info("=> Starting preview.."), y = await g.start({
    startTime: process.hrtime(),
    options: e,
    router: i,
    server: t,
    channel: h
  }).catch(async (S) => {
    throw X_.error("=> Failed to build the preview"), process.exitCode = 1, await D?.bail().catch(), await g?.bail().catch(), S;
  }));
  let C = new Promise((S, T) => {
    t.once("error", T), i.listen({ port: n, host: a }, S);
  });
  if (await Promise.all([d, C]).then(async ([S]) => {
    S && !e.ci && !e.smokeTest && e.open && E_(a ? c : l);
  }), p)
    throw await D?.bail().catch(), await g?.bail().catch(), p;
  return JF(i, r, d, e), { previewResult: y, managerResult: v, address: l, networkAddress: c };
}
s(Y_, "storybookDevServer");

// src/core-server/utils/output-startup-information.ts
import { colors as xG } from "@storybook/core/node-logger";

// ../node_modules/boxen/index.js
import ml from "node:process";

// ../node_modules/ansi-regex/index.js
function ug({ onlyFirst: e = !1 } = {}) {
  let t = [
    "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
    "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
  ].join("|");
  return new RegExp(t, e ? void 0 : "g");
}
s(ug, "ansiRegex");

// ../node_modules/strip-ansi/index.js
var GW = ug();
function fn(e) {
  if (typeof e != "string")
    throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
  return e.replace(GW, "");
}
s(fn, "stripAnsi");

// ../node_modules/boxen/node_modules/string-width/index.js
var Z_ = pe(lg(), 1), ek = pe(cg(), 1);
function ar(e, t = {}) {
  if (typeof e != "string" || e.length === 0 || (t = {
    ambiguousIsNarrow: !0,
    ...t
  }, e = fn(e), e.length === 0))
    return 0;
  e = e.replace((0, ek.default)(), "  ");
  let r = t.ambiguousIsNarrow ? 1 : 2, i = 0;
  for (let n of e) {
    let a = n.codePointAt(0);
    if (a <= 31 || a >= 127 && a <= 159 || a >= 768 && a <= 879)
      continue;
    switch (Z_.default.eastAsianWidth(n)) {
      case "F":
      case "W":
        i += 2;
        break;
      case "A":
        i += r;
        break;
      default:
        i += 1;
    }
  }
  return i;
}
s(ar, "stringWidth");

// ../node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.js
var tk = /* @__PURE__ */ s((e = 0) => (t) => `\x1B[${t + e}m`, "wrapAnsi16"), rk = /* @__PURE__ */ s((e = 0) => (t) => `\x1B[${38 + e};5;${t}\
m`, "wrapAnsi256"), ik = /* @__PURE__ */ s((e = 0) => (t, r, i) => `\x1B[${38 + e};2;${t};${r};${i}m`, "wrapAnsi16m"), Ve = {
  modifier: {
    reset: [0, 0],
    // 21 isn't widely supported and 22 does the same thing
    bold: [1, 22],
    dim: [2, 22],
    italic: [3, 23],
    underline: [4, 24],
    overline: [53, 55],
    inverse: [7, 27],
    hidden: [8, 28],
    strikethrough: [9, 29]
  },
  color: {
    black: [30, 39],
    red: [31, 39],
    green: [32, 39],
    yellow: [33, 39],
    blue: [34, 39],
    magenta: [35, 39],
    cyan: [36, 39],
    white: [37, 39],
    // Bright color
    blackBright: [90, 39],
    gray: [90, 39],
    // Alias of `blackBright`
    grey: [90, 39],
    // Alias of `blackBright`
    redBright: [91, 39],
    greenBright: [92, 39],
    yellowBright: [93, 39],
    blueBright: [94, 39],
    magentaBright: [95, 39],
    cyanBright: [96, 39],
    whiteBright: [97, 39]
  },
  bgColor: {
    bgBlack: [40, 49],
    bgRed: [41, 49],
    bgGreen: [42, 49],
    bgYellow: [43, 49],
    bgBlue: [44, 49],
    bgMagenta: [45, 49],
    bgCyan: [46, 49],
    bgWhite: [47, 49],
    // Bright color
    bgBlackBright: [100, 49],
    bgGray: [100, 49],
    // Alias of `bgBlackBright`
    bgGrey: [100, 49],
    // Alias of `bgBlackBright`
    bgRedBright: [101, 49],
    bgGreenBright: [102, 49],
    bgYellowBright: [103, 49],
    bgBlueBright: [104, 49],
    bgMagentaBright: [105, 49],
    bgCyanBright: [106, 49],
    bgWhiteBright: [107, 49]
  }
}, Hoe = Object.keys(Ve.modifier), XW = Object.keys(Ve.color), YW = Object.keys(Ve.bgColor), Woe = [...XW, ...YW];
function KW() {
  let e = /* @__PURE__ */ new Map();
  for (let [t, r] of Object.entries(Ve)) {
    for (let [i, n] of Object.entries(r))
      Ve[i] = {
        open: `\x1B[${n[0]}m`,
        close: `\x1B[${n[1]}m`
      }, r[i] = Ve[i], e.set(n[0], n[1]);
    Object.defineProperty(Ve, t, {
      value: r,
      enumerable: !1
    });
  }
  return Object.defineProperty(Ve, "codes", {
    value: e,
    enumerable: !1
  }), Ve.color.close = "\x1B[39m", Ve.bgColor.close = "\x1B[49m", Ve.color.ansi = tk(), Ve.color.ansi256 = rk(), Ve.color.ansi16m = ik(), Ve.
  bgColor.ansi = tk(10), Ve.bgColor.ansi256 = rk(10), Ve.bgColor.ansi16m = ik(10), Object.defineProperties(Ve, {
    rgbToAnsi256: {
      value(t, r, i) {
        return t === r && r === i ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 *
        Math.round(r / 255 * 5) + Math.round(i / 255 * 5);
      },
      enumerable: !1
    },
    hexToRgb: {
      value(t) {
        let r = /[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));
        if (!r)
          return [0, 0, 0];
        let [i] = r;
        i.length === 3 && (i = [...i].map((a) => a + a).join(""));
        let n = Number.parseInt(i, 16);
        return [
          /* eslint-disable no-bitwise */
          n >> 16 & 255,
          n >> 8 & 255,
          n & 255
          /* eslint-enable no-bitwise */
        ];
      },
      enumerable: !1
    },
    hexToAnsi256: {
      value: /* @__PURE__ */ s((t) => Ve.rgbToAnsi256(...Ve.hexToRgb(t)), "value"),
      enumerable: !1
    },
    ansi256ToAnsi: {
      value(t) {
        if (t < 8)
          return 30 + t;
        if (t < 16)
          return 90 + (t - 8);
        let r, i, n;
        if (t >= 232)
          r = ((t - 232) * 10 + 8) / 255, i = r, n = r;
        else {
          t -= 16;
          let o = t % 36;
          r = Math.floor(t / 36) / 5, i = Math.floor(o / 6) / 5, n = o % 6 / 5;
        }
        let a = Math.max(r, i, n) * 2;
        if (a === 0)
          return 30;
        let u = 30 + (Math.round(n) << 2 | Math.round(i) << 1 | Math.round(r));
        return a === 2 && (u += 60), u;
      },
      enumerable: !1
    },
    rgbToAnsi: {
      value: /* @__PURE__ */ s((t, r, i) => Ve.ansi256ToAnsi(Ve.rgbToAnsi256(t, r, i)), "value"),
      enumerable: !1
    },
    hexToAnsi: {
      value: /* @__PURE__ */ s((t) => Ve.ansi256ToAnsi(Ve.hexToAnsi256(t)), "value"),
      enumerable: !1
    }
  }), Ve;
}
s(KW, "assembleStyles");
var QW = KW(), Er = QW;

// ../node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.js
import hg from "node:process";
import ZW from "node:os";
import nk from "node:tty";
function ur(e, t = globalThis.Deno ? globalThis.Deno.args : hg.argv) {
  let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", i = t.indexOf(r + e), n = t.indexOf("--");
  return i !== -1 && (n === -1 || i < n);
}
s(ur, "hasFlag");
var { env: Ye } = hg, cl;
ur("no-color") || ur("no-colors") || ur("color=false") || ur("color=never") ? cl = 0 : (ur("color") || ur("colors") || ur("color=true") || ur(
"color=always")) && (cl = 1);
function eJ() {
  if ("FORCE_COLOR" in Ye)
    return Ye.FORCE_COLOR === "true" ? 1 : Ye.FORCE_COLOR === "false" ? 0 : Ye.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(Ye.FORCE_COLOR,
    10), 3);
}
s(eJ, "envForceColor");
function tJ(e) {
  return e === 0 ? !1 : {
    level: e,
    hasBasic: !0,
    has256: e >= 2,
    has16m: e >= 3
  };
}
s(tJ, "translateLevel");
function rJ(e, { streamIsTTY: t, sniffFlags: r = !0 } = {}) {
  let i = eJ();
  i !== void 0 && (cl = i);
  let n = r ? cl : i;
  if (n === 0)
    return 0;
  if (r) {
    if (ur("color=16m") || ur("color=full") || ur("color=truecolor"))
      return 3;
    if (ur("color=256"))
      return 2;
  }
  if ("TF_BUILD" in Ye && "AGENT_NAME" in Ye)
    return 1;
  if (e && !t && n === void 0)
    return 0;
  let a = n || 0;
  if (Ye.TERM === "dumb")
    return a;
  if (hg.platform === "win32") {
    let u = ZW.release().split(".");
    return Number(u[0]) >= 10 && Number(u[2]) >= 10586 ? Number(u[2]) >= 14931 ? 3 : 2 : 1;
  }
  if ("CI" in Ye)
    return ["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((u) => u in Ye) ? 3 : ["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRON\
E"].some((u) => u in Ye) || Ye.CI_NAME === "codeship" ? 1 : a;
  if ("TEAMCITY_VERSION" in Ye)
    return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ye.TEAMCITY_VERSION) ? 1 : 0;
  if (Ye.COLORTERM === "truecolor" || Ye.TERM === "xterm-kitty")
    return 3;
  if ("TERM_PROGRAM" in Ye) {
    let u = Number.parseInt((Ye.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
    switch (Ye.TERM_PROGRAM) {
      case "iTerm.app":
        return u >= 3 ? 3 : 2;
      case "Apple_Terminal":
        return 2;
    }
  }
  return /-256(color)?$/i.test(Ye.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ye.TERM) || "COLORTERM" in Ye ?
  1 : a;
}
s(rJ, "_supportsColor");
function sk(e, t = {}) {
  let r = rJ(e, {
    streamIsTTY: e && e.isTTY,
    ...t
  });
  return tJ(r);
}
s(sk, "createSupportsColor");
var iJ = {
  stdout: sk({ isTTY: nk.isatty(1) }),
  stderr: sk({ isTTY: nk.isatty(2) })
}, ak = iJ;

// ../node_modules/boxen/node_modules/chalk/source/utilities.js
function uk(e, t, r) {
  let i = e.indexOf(t);
  if (i === -1)
    return e;
  let n = t.length, a = 0, u = "";
  do
    u += e.slice(a, i) + t + r, a = i + n, i = e.indexOf(t, a);
  while (i !== -1);
  return u += e.slice(a), u;
}
s(uk, "stringReplaceAll");
function ok(e, t, r, i) {
  let n = 0, a = "";
  do {
    let u = e[i - 1] === "\r";
    a += e.slice(n, u ? i - 1 : i) + t + (u ? `\r
` : `
`) + r, n = i + 1, i = e.indexOf(`
`, n);
  } while (i !== -1);
  return a += e.slice(n), a;
}
s(ok, "stringEncaseCRLFWithFirstIndex");

// ../node_modules/boxen/node_modules/chalk/source/index.js
var { stdout: lk, stderr: ck } = ak, pg = Symbol("GENERATOR"), gs = Symbol("STYLER"), Sa = Symbol("IS_EMPTY"), hk = [
  "ansi",
  "ansi",
  "ansi256",
  "ansi16m"
], Ds = /* @__PURE__ */ Object.create(null), nJ = /* @__PURE__ */ s((e, t = {}) => {
  if (t.level && !(Number.isInteger(t.level) && t.level >= 0 && t.level <= 3))
    throw new Error("The `level` option should be an integer from 0 to 3");
  let r = lk ? lk.level : 0;
  e.level = t.level === void 0 ? r : t.level;
}, "applyOptions");
var sJ = /* @__PURE__ */ s((e) => {
  let t = /* @__PURE__ */ s((...r) => r.join(" "), "chalk");
  return nJ(t, e), Object.setPrototypeOf(t, _a.prototype), t;
}, "chalkFactory");
function _a(e) {
  return sJ(e);
}
s(_a, "createChalk");
Object.setPrototypeOf(_a.prototype, Function.prototype);
for (let [e, t] of Object.entries(Er))
  Ds[e] = {
    get() {
      let r = hl(this, dg(t.open, t.close, this[gs]), this[Sa]);
      return Object.defineProperty(this, e, { value: r }), r;
    }
  };
Ds.visible = {
  get() {
    let e = hl(this, this[gs], !0);
    return Object.defineProperty(this, "visible", { value: e }), e;
  }
};
var fg = /* @__PURE__ */ s((e, t, r, ...i) => e === "rgb" ? t === "ansi16m" ? Er[r].ansi16m(...i) : t === "ansi256" ? Er[r].ansi256(Er.rgbToAnsi256(
...i)) : Er[r].ansi(Er.rgbToAnsi(...i)) : e === "hex" ? fg("rgb", t, r, ...Er.hexToRgb(...i)) : Er[r][e](...i), "getModelAnsi"), aJ = ["rgb",
"hex", "ansi256"];
for (let e of aJ) {
  Ds[e] = {
    get() {
      let { level: r } = this;
      return function(...i) {
        let n = dg(fg(e, hk[r], "color", ...i), Er.color.close, this[gs]);
        return hl(this, n, this[Sa]);
      };
    }
  };
  let t = "bg" + e[0].toUpperCase() + e.slice(1);
  Ds[t] = {
    get() {
      let { level: r } = this;
      return function(...i) {
        let n = dg(fg(e, hk[r], "bgColor", ...i), Er.bgColor.close, this[gs]);
        return hl(this, n, this[Sa]);
      };
    }
  };
}
var uJ = Object.defineProperties(() => {
}, {
  ...Ds,
  level: {
    enumerable: !0,
    get() {
      return this[pg].level;
    },
    set(e) {
      this[pg].level = e;
    }
  }
}), dg = /* @__PURE__ */ s((e, t, r) => {
  let i, n;
  return r === void 0 ? (i = e, n = t) : (i = r.openAll + e, n = t + r.closeAll), {
    open: e,
    close: t,
    openAll: i,
    closeAll: n,
    parent: r
  };
}, "createStyler"), hl = /* @__PURE__ */ s((e, t, r) => {
  let i = /* @__PURE__ */ s((...n) => oJ(i, n.length === 1 ? "" + n[0] : n.join(" ")), "builder");
  return Object.setPrototypeOf(i, uJ), i[pg] = e, i[gs] = t, i[Sa] = r, i;
}, "createBuilder"), oJ = /* @__PURE__ */ s((e, t) => {
  if (e.level <= 0 || !t)
    return e[Sa] ? "" : t;
  let r = e[gs];
  if (r === void 0)
    return t;
  let { openAll: i, closeAll: n } = r;
  if (t.includes("\x1B"))
    for (; r !== void 0; )
      t = uk(t, r.close, r.open), r = r.parent;
  let a = t.indexOf(`
`);
  return a !== -1 && (t = ok(t, n, i, a)), i + t + n;
}, "applyStyle");
Object.defineProperties(_a.prototype, Ds);
var lJ = _a(), sle = _a({ level: ck ? ck.level : 0 });
var dn = lJ;

// ../node_modules/boxen/node_modules/widest-line/index.js
function pl(e) {
  let t = 0;
  for (let r of e.split(`
`))
    t = Math.max(t, ar(r));
  return t;
}
s(pl, "widestLine");

// ../node_modules/boxen/index.js
var Ik = pe(gg(), 1);

// ../node_modules/boxen/node_modules/camelcase/index.js
var hJ = /[\p{Lu}]/u, pJ = /[\p{Ll}]/u, dk = /^[\p{Lu}](?![\p{Lu}])/gu, Dk = /([\p{Alpha}\p{N}_]|$)/u, Dg = /[_.\- ]+/, fJ = new RegExp("^" +
Dg.source), mk = new RegExp(Dg.source + Dk.source, "gu"), gk = new RegExp("\\d+" + Dk.source, "gu"), dJ = /* @__PURE__ */ s((e, t, r, i) => {
  let n = !1, a = !1, u = !1, o = !1;
  for (let l = 0; l < e.length; l++) {
    let c = e[l];
    o = l > 2 ? e[l - 3] === "-" : !0, n && hJ.test(c) ? (e = e.slice(0, l) + "-" + e.slice(l), n = !1, u = a, a = !0, l++) : a && u && pJ.test(
    c) && (!o || i) ? (e = e.slice(0, l - 1) + "-" + e.slice(l - 1), u = a, a = !1, n = !0) : (n = t(c) === c && r(c) !== c, u = a, a = r(c) ===
    c && t(c) !== c);
  }
  return e;
}, "preserveCamelCase"), mJ = /* @__PURE__ */ s((e, t) => (dk.lastIndex = 0, e.replace(dk, (r) => t(r))), "preserveConsecutiveUppercase"), gJ = /* @__PURE__ */ s(
(e, t) => (mk.lastIndex = 0, gk.lastIndex = 0, e.replace(mk, (r, i) => t(i)).replace(gk, (r) => t(r))), "postProcess");
function yg(e, t) {
  if (!(typeof e == "string" || Array.isArray(e)))
    throw new TypeError("Expected the input to be `string | string[]`");
  if (t = {
    pascalCase: !1,
    preserveConsecutiveUppercase: !1,
    ...t
  }, Array.isArray(e) ? e = e.map((a) => a.trim()).filter((a) => a.length).join("-") : e = e.trim(), e.length === 0)
    return "";
  let r = t.locale === !1 ? (a) => a.toLowerCase() : (a) => a.toLocaleLowerCase(t.locale), i = t.locale === !1 ? (a) => a.toUpperCase() : (a) => a.
  toLocaleUpperCase(t.locale);
  return e.length === 1 ? Dg.test(e) ? "" : t.pascalCase ? i(e) : r(e) : (e !== r(e) && (e = dJ(e, r, i, t.preserveConsecutiveUppercase)), e =
  e.replace(fJ, ""), e = t.preserveConsecutiveUppercase ? mJ(e, r) : r(e), t.pascalCase && (e = i(e.charAt(0)) + e.slice(1)), gJ(e, i));
}
s(yg, "camelCase");

// ../node_modules/boxen/index.js
var vg = pe(xk(), 1);

// ../node_modules/wrap-ansi/node_modules/string-width/index.js
var Ek = pe(lg(), 1), bk = pe(cg(), 1);
function gn(e, t = {}) {
  if (typeof e != "string" || e.length === 0 || (t = {
    ambiguousIsNarrow: !0,
    ...t
  }, e = fn(e), e.length === 0))
    return 0;
  e = e.replace((0, bk.default)(), "  ");
  let r = t.ambiguousIsNarrow ? 1 : 2, i = 0;
  for (let n of e) {
    let a = n.codePointAt(0);
    if (a <= 31 || a >= 127 && a <= 159 || a >= 768 && a <= 879)
      continue;
    switch (Ek.default.eastAsianWidth(n)) {
      case "F":
      case "W":
        i += 2;
        break;
      case "A":
        i += r;
        break;
      default:
        i += 1;
    }
  }
  return i;
}
s(gn, "stringWidth");

// ../node_modules/wrap-ansi/node_modules/ansi-styles/index.js
var vk = /* @__PURE__ */ s((e = 0) => (t) => `\x1B[${t + e}m`, "wrapAnsi16"), Ck = /* @__PURE__ */ s((e = 0) => (t) => `\x1B[${38 + e};5;${t}\
m`, "wrapAnsi256"), wk = /* @__PURE__ */ s((e = 0) => (t, r, i) => `\x1B[${38 + e};2;${t};${r};${i}m`, "wrapAnsi16m"), Ue = {
  modifier: {
    reset: [0, 0],
    // 21 isn't widely supported and 22 does the same thing
    bold: [1, 22],
    dim: [2, 22],
    italic: [3, 23],
    underline: [4, 24],
    overline: [53, 55],
    inverse: [7, 27],
    hidden: [8, 28],
    strikethrough: [9, 29]
  },
  color: {
    black: [30, 39],
    red: [31, 39],
    green: [32, 39],
    yellow: [33, 39],
    blue: [34, 39],
    magenta: [35, 39],
    cyan: [36, 39],
    white: [37, 39],
    // Bright color
    blackBright: [90, 39],
    gray: [90, 39],
    // Alias of `blackBright`
    grey: [90, 39],
    // Alias of `blackBright`
    redBright: [91, 39],
    greenBright: [92, 39],
    yellowBright: [93, 39],
    blueBright: [94, 39],
    magentaBright: [95, 39],
    cyanBright: [96, 39],
    whiteBright: [97, 39]
  },
  bgColor: {
    bgBlack: [40, 49],
    bgRed: [41, 49],
    bgGreen: [42, 49],
    bgYellow: [43, 49],
    bgBlue: [44, 49],
    bgMagenta: [45, 49],
    bgCyan: [46, 49],
    bgWhite: [47, 49],
    // Bright color
    bgBlackBright: [100, 49],
    bgGray: [100, 49],
    // Alias of `bgBlackBright`
    bgGrey: [100, 49],
    // Alias of `bgBlackBright`
    bgRedBright: [101, 49],
    bgGreenBright: [102, 49],
    bgYellowBright: [103, 49],
    bgBlueBright: [104, 49],
    bgMagentaBright: [105, 49],
    bgCyanBright: [106, 49],
    bgWhiteBright: [107, 49]
  }
}, Ele = Object.keys(Ue.modifier), EJ = Object.keys(Ue.color), bJ = Object.keys(Ue.bgColor), ble = [...EJ, ...bJ];
function vJ() {
  let e = /* @__PURE__ */ new Map();
  for (let [t, r] of Object.entries(Ue)) {
    for (let [i, n] of Object.entries(r))
      Ue[i] = {
        open: `\x1B[${n[0]}m`,
        close: `\x1B[${n[1]}m`
      }, r[i] = Ue[i], e.set(n[0], n[1]);
    Object.defineProperty(Ue, t, {
      value: r,
      enumerable: !1
    });
  }
  return Object.defineProperty(Ue, "codes", {
    value: e,
    enumerable: !1
  }), Ue.color.close = "\x1B[39m", Ue.bgColor.close = "\x1B[49m", Ue.color.ansi = vk(), Ue.color.ansi256 = Ck(), Ue.color.ansi16m = wk(), Ue.
  bgColor.ansi = vk(10), Ue.bgColor.ansi256 = Ck(10), Ue.bgColor.ansi16m = wk(10), Object.defineProperties(Ue, {
    rgbToAnsi256: {
      value: /* @__PURE__ */ s((t, r, i) => t === r && r === i ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 *
      Math.round(t / 255 * 5) + 6 * Math.round(r / 255 * 5) + Math.round(i / 255 * 5), "value"),
      enumerable: !1
    },
    hexToRgb: {
      value: /* @__PURE__ */ s((t) => {
        let r = /[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));
        if (!r)
          return [0, 0, 0];
        let [i] = r;
        i.length === 3 && (i = [...i].map((a) => a + a).join(""));
        let n = Number.parseInt(i, 16);
        return [
          /* eslint-disable no-bitwise */
          n >> 16 & 255,
          n >> 8 & 255,
          n & 255
          /* eslint-enable no-bitwise */
        ];
      }, "value"),
      enumerable: !1
    },
    hexToAnsi256: {
      value: /* @__PURE__ */ s((t) => Ue.rgbToAnsi256(...Ue.hexToRgb(t)), "value"),
      enumerable: !1
    },
    ansi256ToAnsi: {
      value: /* @__PURE__ */ s((t) => {
        if (t < 8)
          return 30 + t;
        if (t < 16)
          return 90 + (t - 8);
        let r, i, n;
        if (t >= 232)
          r = ((t - 232) * 10 + 8) / 255, i = r, n = r;
        else {
          t -= 16;
          let o = t % 36;
          r = Math.floor(t / 36) / 5, i = Math.floor(o / 6) / 5, n = o % 6 / 5;
        }
        let a = Math.max(r, i, n) * 2;
        if (a === 0)
          return 30;
        let u = 30 + (Math.round(n) << 2 | Math.round(i) << 1 | Math.round(r));
        return a === 2 && (u += 60), u;
      }, "value"),
      enumerable: !1
    },
    rgbToAnsi: {
      value: /* @__PURE__ */ s((t, r, i) => Ue.ansi256ToAnsi(Ue.rgbToAnsi256(t, r, i)), "value"),
      enumerable: !1
    },
    hexToAnsi: {
      value: /* @__PURE__ */ s((t) => Ue.ansi256ToAnsi(Ue.hexToAnsi256(t)), "value"),
      enumerable: !1
    }
  }), Ue;
}
s(vJ, "assembleStyles");
var CJ = vJ(), Ak = CJ;

// ../node_modules/wrap-ansi/index.js
var fl = /* @__PURE__ */ new Set([
  "\x1B",
  "\x9B"
]), wJ = 39, Eg = "\x07", _k = "[", AJ = "]", kk = "m", bg = `${AJ}8;;`, Fk = /* @__PURE__ */ s((e) => `${fl.values().next().value}${_k}${e}${kk}`,
"wrapAnsiCode"), Sk = /* @__PURE__ */ s((e) => `${fl.values().next().value}${bg}${e}${Eg}`, "wrapAnsiHyperlink"), FJ = /* @__PURE__ */ s((e) => e.
split(" ").map((t) => gn(t)), "wordLengths"), xg = /* @__PURE__ */ s((e, t, r) => {
  let i = [...t], n = !1, a = !1, u = gn(fn(e[e.length - 1]));
  for (let [o, l] of i.entries()) {
    let c = gn(l);
    if (u + c <= r ? e[e.length - 1] += l : (e.push(l), u = 0), fl.has(l) && (n = !0, a = i.slice(o + 1).join("").startsWith(bg)), n) {
      a ? l === Eg && (n = !1, a = !1) : l === kk && (n = !1);
      continue;
    }
    u += c, u === r && o < i.length - 1 && (e.push(""), u = 0);
  }
  !u && e[e.length - 1].length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
}, "wrapWord"), SJ = /* @__PURE__ */ s((e) => {
  let t = e.split(" "), r = t.length;
  for (; r > 0 && !(gn(t[r - 1]) > 0); )
    r--;
  return r === t.length ? e : t.slice(0, r).join(" ") + t.slice(r).join("");
}, "stringVisibleTrimSpacesRight"), _J = /* @__PURE__ */ s((e, t, r = {}) => {
  if (r.trim !== !1 && e.trim() === "")
    return "";
  let i = "", n, a, u = FJ(e), o = [""];
  for (let [c, h] of e.split(" ").entries()) {
    r.trim !== !1 && (o[o.length - 1] = o[o.length - 1].trimStart());
    let p = gn(o[o.length - 1]);
    if (c !== 0 && (p >= t && (r.wordWrap === !1 || r.trim === !1) && (o.push(""), p = 0), (p > 0 || r.trim === !1) && (o[o.length - 1] += "\
 ", p++)), r.hard && u[c] > t) {
      let d = t - p, m = 1 + Math.floor((u[c] - d - 1) / t);
      Math.floor((u[c] - 1) / t) < m && o.push(""), xg(o, h, t);
      continue;
    }
    if (p + u[c] > t && p > 0 && u[c] > 0) {
      if (r.wordWrap === !1 && p < t) {
        xg(o, h, t);
        continue;
      }
      o.push("");
    }
    if (p + u[c] > t && r.wordWrap === !1) {
      xg(o, h, t);
      continue;
    }
    o[o.length - 1] += h;
  }
  r.trim !== !1 && (o = o.map((c) => SJ(c)));
  let l = [...o.join(`
`)];
  for (let [c, h] of l.entries()) {
    if (i += h, fl.has(h)) {
      let { groups: d } = new RegExp(`(?:\\${_k}(?<code>\\d+)m|\\${bg}(?<uri>.*)${Eg})`).exec(l.slice(c).join("")) || { groups: {} };
      if (d.code !== void 0) {
        let m = Number.parseFloat(d.code);
        n = m === wJ ? void 0 : m;
      } else d.uri !== void 0 && (a = d.uri.length === 0 ? void 0 : d.uri);
    }
    let p = Ak.codes.get(Number(n));
    l[c + 1] === `
` ? (a && (i += Sk("")), n && p && (i += Fk(p))) : h === `
` && (n && p && (i += Fk(n)), a && (i += Sk(a)));
  }
  return i;
}, "exec");
function dl(e, t, r) {
  return String(e).normalize().replace(/\r\n/g, `
`).split(`
`).map((i) => _J(i, t, r)).join(`
`);
}
s(dl, "wrapAnsi");

// ../node_modules/boxen/index.js
var LJ = pe(gg(), 1);
var Ui = `
`, vt = " ", ka = "none", Ok = /* @__PURE__ */ s(() => {
  let { env: e, stdout: t, stderr: r } = ml;
  return t?.columns ? t.columns : r?.columns ? r.columns : e.COLUMNS ? Number.parseInt(e.COLUMNS, 10) : 80;
}, "terminalColumns"), Tk = /* @__PURE__ */ s((e) => typeof e == "number" ? {
  top: e,
  right: e * 3,
  bottom: e,
  left: e * 3
} : {
  top: 0,
  right: 0,
  bottom: 0,
  left: 0,
  ...e
}, "getObject"), Ta = /* @__PURE__ */ s((e) => e === ka ? 0 : 2, "getBorderWidth"), kJ = /* @__PURE__ */ s((e) => {
  let t = [
    "topLeft",
    "topRight",
    "bottomRight",
    "bottomLeft",
    "left",
    "right",
    "top",
    "bottom"
  ], r;
  if (e === ka) {
    e = {};
    for (let i of t)
      e[i] = "";
  }
  if (typeof e == "string") {
    if (r = Ik.default[e], !r)
      throw new TypeError(`Invalid border style: ${e}`);
  } else {
    typeof e?.vertical == "string" && (e.left = e.vertical, e.right = e.vertical), typeof e?.horizontal == "string" && (e.top = e.horizontal,
    e.bottom = e.horizontal);
    for (let i of t)
      if (e[i] === null || typeof e[i] != "string")
        throw new TypeError(`Invalid border style: ${i}`);
    r = e;
  }
  return r;
}, "getBorderChars"), TJ = /* @__PURE__ */ s((e, t, r) => {
  let i = "", n = ar(e);
  switch (r) {
    case "left": {
      i = e + t.slice(n);
      break;
    }
    case "right": {
      i = t.slice(n) + e;
      break;
    }
    default: {
      t = t.slice(n), t.length % 2 === 1 ? (t = t.slice(Math.floor(t.length / 2)), i = t.slice(1) + e + t) : (t = t.slice(t.length / 2), i =
      t + e + t);
      break;
    }
  }
  return i;
}, "makeTitle"), BJ = /* @__PURE__ */ s((e, { padding: t, width: r, textAlignment: i, height: n }) => {
  e = (0, vg.default)(e, { align: i });
  let a = e.split(Ui), u = pl(e), o = r - t.left - t.right;
  if (u > o) {
    let h = [];
    for (let p of a) {
      let d = dl(p, o, { hard: !0 }), g = (0, vg.default)(d, { align: i }).split(`
`), D = Math.max(...g.map((v) => ar(v)));
      for (let v of g) {
        let y;
        switch (i) {
          case "center": {
            y = vt.repeat((o - D) / 2) + v;
            break;
          }
          case "right": {
            y = vt.repeat(o - D) + v;
            break;
          }
          default: {
            y = v;
            break;
          }
        }
        h.push(y);
      }
    }
    a = h;
  }
  i === "center" && u < o ? a = a.map((h) => vt.repeat((o - u) / 2) + h) : i === "right" && u < o && (a = a.map((h) => vt.repeat(o - u) + h));
  let l = vt.repeat(t.left), c = vt.repeat(t.right);
  return a = a.map((h) => l + h + c), a = a.map((h) => {
    if (r - ar(h) > 0)
      switch (i) {
        case "center":
          return h + vt.repeat(r - ar(h));
        case "right":
          return h + vt.repeat(r - ar(h));
        default:
          return h + vt.repeat(r - ar(h));
      }
    return h;
  }), t.top > 0 && (a = [...Array.from({ length: t.top }).fill(vt.repeat(r)), ...a]), t.bottom > 0 && (a = [...a, ...Array.from({ length: t.
  bottom }).fill(vt.repeat(r))]), n && a.length > n ? a = a.slice(0, n) : n && a.length < n && (a = [...a, ...Array.from({ length: n - a.length }).
  fill(vt.repeat(r))]), a.join(Ui);
}, "makeContentText"), PJ = /* @__PURE__ */ s((e, t, r) => {
  let i = /* @__PURE__ */ s((h) => {
    let p = r.borderColor ? RJ(r.borderColor)(h) : h;
    return r.dimBorder ? dn.dim(p) : p;
  }, "colorizeBorder"), n = /* @__PURE__ */ s((h) => r.backgroundColor ? NJ(r.backgroundColor)(h) : h, "colorizeContent"), a = kJ(r.borderStyle),
  u = Ok(), o = vt.repeat(r.margin.left);
  if (r.float === "center") {
    let h = Math.max((u - t - Ta(r.borderStyle)) / 2, 0);
    o = vt.repeat(h);
  } else if (r.float === "right") {
    let h = Math.max(u - t - r.margin.right - Ta(r.borderStyle), 0);
    o = vt.repeat(h);
  }
  let l = "";
  r.margin.top && (l += Ui.repeat(r.margin.top)), (r.borderStyle !== ka || r.title) && (l += i(o + a.topLeft + (r.title ? TJ(r.title, a.top.
  repeat(t), r.titleAlignment) : a.top.repeat(t)) + a.topRight) + Ui);
  let c = e.split(Ui);
  return l += c.map((h) => o + i(a.left) + n(h) + i(a.right)).join(Ui), r.borderStyle !== ka && (l += Ui + i(o + a.bottomLeft + a.bottom.repeat(
  t) + a.bottomRight)), r.margin.bottom && (l += Ui.repeat(r.margin.bottom)), l;
}, "boxContent"), IJ = /* @__PURE__ */ s((e) => {
  if (e.fullscreen && ml?.stdout) {
    let t = [ml.stdout.columns, ml.stdout.rows];
    typeof e.fullscreen == "function" && (t = e.fullscreen(...t)), e.width || (e.width = t[0]), e.height || (e.height = t[1]);
  }
  return e.width && (e.width = Math.max(1, e.width - Ta(e.borderStyle))), e.height && (e.height = Math.max(1, e.height - Ta(e.borderStyle))),
  e;
}, "sanitizeOptions"), Bk = /* @__PURE__ */ s((e, t) => t === ka ? e : ` ${e} `, "formatTitle"), OJ = /* @__PURE__ */ s((e, t) => {
  t = IJ(t);
  let r = t.width !== void 0, i = Ok(), n = Ta(t.borderStyle), a = i - t.margin.left - t.margin.right - n, u = pl(dl(e, i - n, { hard: !0, trim: !1 })) +
  t.padding.left + t.padding.right;
  if (t.title && r ? (t.title = t.title.slice(0, Math.max(0, t.width - 2)), t.title && (t.title = Bk(t.title, t.borderStyle))) : t.title && (t.
  title = t.title.slice(0, Math.max(0, a - 2)), t.title && (t.title = Bk(t.title, t.borderStyle), ar(t.title) > u && (t.width = ar(t.title)))),
  t.width = t.width ? t.width : u, !r) {
    if (t.margin.left && t.margin.right && t.width > a) {
      let l = (i - t.width - n) / (t.margin.left + t.margin.right);
      t.margin.left = Math.max(0, Math.floor(t.margin.left * l)), t.margin.right = Math.max(0, Math.floor(t.margin.right * l));
    }
    t.width = Math.min(t.width, i - n - t.margin.left - t.margin.right);
  }
  return t.width - (t.padding.left + t.padding.right) <= 0 && (t.padding.left = 0, t.padding.right = 0), t.height && t.height - (t.padding.top +
  t.padding.bottom) <= 0 && (t.padding.top = 0, t.padding.bottom = 0), t;
}, "determineDimensions"), Cg = /* @__PURE__ */ s((e) => e.match(/^#(?:[0-f]{3}){1,2}$/i), "isHex"), Pk = /* @__PURE__ */ s((e) => typeof e ==
"string" && (dn[e] ?? Cg(e)), "isColorValid"), RJ = /* @__PURE__ */ s((e) => Cg(e) ? dn.hex(e) : dn[e], "getColorFn"), NJ = /* @__PURE__ */ s(
(e) => Cg(e) ? dn.bgHex(e) : dn[yg(["bg", e])], "getBGColorFn");
function wg(e, t) {
  if (t = {
    padding: 0,
    borderStyle: "single",
    dimBorder: !1,
    textAlignment: "left",
    float: "left",
    titleAlignment: "left",
    ...t
  }, t.align && (t.textAlignment = t.align), t.borderColor && !Pk(t.borderColor))
    throw new Error(`${t.borderColor} is not a valid borderColor`);
  if (t.backgroundColor && !Pk(t.backgroundColor))
    throw new Error(`${t.backgroundColor} is not a valid backgroundColor`);
  return t.padding = Tk(t.padding), t.margin = Tk(t.margin), t = OJ(e, t), e = BJ(e, t), PJ(e, t.width, t);
}
s(wg, "boxen");

// src/core-server/utils/output-startup-information.ts
var PT = pe(AT(), 1), hi = pe(Cr(), 1), Ig = pe(Nm(), 1), IT = pe(wr(), 1);

// src/core-server/utils/update-check.ts
var Es = pe(Cr(), 1), kT = pe(wr(), 1);
import { cache as FT } from "@storybook/core/common";
import { colors as ST } from "@storybook/core/node-logger";
import _T from "semver";
var { STORYBOOK_VERSION_BASE: DG = "https://storybook.js.org", CI: yG } = process.env, TT = /* @__PURE__ */ s(async (e) => {
  let t, r = Date.now();
  try {
    let i = await FT.get("lastUpdateCheck", { success: !1, time: 0 });
    r - 864e5 > i.time && !yG ? (t = { success: !0, cached: !1, data: await (await Promise.race([
      fetch(`${DG}/versions.json?current=${e}`),
      // if fetch is too slow, we won't wait for it
      new Promise((u, o) => global.setTimeout(o, 1500))
    ])).json(), time: r }, await FT.set("lastUpdateCheck", t)) : t = { ...i, cached: !0 };
  } catch (i) {
    t = { success: !1, cached: !1, error: i, time: r };
  }
  return t;
}, "updateCheck");
function BT(e, t) {
  let r;
  try {
    let n = `npx storybook@${_T.prerelease(e.data.latest.version) ? "next" : "latest"} upgrade`;
    r = e.success && _T.lt(t, e.data.latest.version) ? kT.dedent`
          ${ST.orange(
      `A new version (${Es.default.bold(e.data.latest.version)}) is available!`
    )}

          ${Es.default.gray("Upgrade now:")} ${ST.green(n)}

          ${Es.default.gray("Read full changelog:")} ${Es.default.gray(
      Es.default.underline("https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md")
    )}
        ` : "";
  } catch {
    r = "";
  }
  return r;
}
s(BT, "createUpdateMessage");

// src/core-server/utils/output-startup-information.ts
function OT(e) {
  let {
    updateInfo: t,
    version: r,
    name: i,
    address: n,
    networkAddress: a,
    allowedHosts: u,
    managerTotalTime: o,
    previewTotalTime: l
  } = e, c = BT(t, r), h = new PT.default({
    chars: {
      top: "",
      "top-mid": "",
      "top-left": "",
      "top-right": "",
      bottom: "",
      "bottom-mid": "",
      "bottom-left": "",
      "bottom-right": "",
      left: "",
      "left-mid": "",
      mid: "",
      "mid-mid": "",
      right: "",
      "right-mid": "",
      middle: ""
    },
    // @ts-expect-error (Converted from ts-ignore)
    paddingLeft: 0,
    paddingRight: 0,
    paddingTop: 0,
    paddingBottom: 0
  });
  h.push(
    ["Local:", hi.default.cyan(n)],
    ["On your network:", hi.default.cyan(a)]
  );
  let p = u === !0 ? "all (insecure)" : u?.length ? u.join(", ") : void 0;
  p && h.push(["Other allowed hosts:", hi.default.cyan(p)]);
  let d = [
    o && `${hi.default.underline((0, Ig.default)(o))} for manager`,
    l && `${hi.default.underline((0, Ig.default)(l))} for preview`
  ].filter(Boolean).join(" and ");
  console.log(
    wg(
      IT.dedent`
          ${xG.green(
        `Storybook ${hi.default.bold(r)} for ${hi.default.bold(i)} started`
      )}
          ${hi.default.gray(d)}

          ${h.toString()}${c ? `

${c}` : ""}
        `,
      { borderStyle: "round", padding: 1, borderColor: "#F1618C" }
    )
  );
}
s(OT, "outputStartupInformation");

// src/core-server/utils/warnOnIncompatibleAddons.ts
import { logger as bG } from "@storybook/core/node-logger";

// ../lib/cli/core/common/index.js
var pi = {};
Mg(pi, Ece);
import * as Ece from "@storybook/core/common";

// ../lib/cli-storybook/src/doctor/getIncompatibleStorybookPackages.ts
var bs = pe(Cr(), 1);
import Og from "semver";
var EG = /* @__PURE__ */ s(async (e, t) => {
  let { currentStorybookVersion: r, skipErrors: i, packageManager: n } = t;
  try {
    let a = await n.getPackageJSON(e);
    if (a === null)
      return { packageName: e };
    let {
      version: u,
      name: o = e,
      dependencies: l,
      peerDependencies: c,
      homepage: h
    } = a, p = !!Object.entries({
      ...l,
      ...c
    }).filter(([g]) => pi.versions[g]).find(([g, D]) => D && Og.validRange(D) && !Og.satisfies(r, D)), d = pi.versions[o], m;
    return d && Og.gt(r, u) && (m = r), {
      packageName: o,
      packageVersion: u,
      homepage: h,
      hasIncompatibleDependencies: p,
      availableUpdate: m
    };
  } catch (a) {
    return i || console.log(`Error checking compatibility for ${e}, please report an issue:
`, a), { packageName: e };
  }
}, "checkPackageCompatibility"), RT = /* @__PURE__ */ s(async (e) => {
  let t = e.packageManager ?? pi.JsPackageManagerFactory.getPackageManager(), r = await t.getAllDependencies(), i = Object.keys(r).filter((n) => n.
  includes("storybook"));
  if (i.length === 0 && !e.skipErrors)
    throw new Error("No Storybook dependencies found in the package.json");
  return Promise.all(
    i.map((n) => EG(n, { ...e, packageManager: t }))
  );
}, "getIncompatibleStorybookPackages"), NT = /* @__PURE__ */ s((e, t) => {
  let r = [], i = e.filter(
    (n) => n.hasIncompatibleDependencies
  );
  return i.length > 0 && (r.push(
    `The following packages are incompatible with Storybook ${bs.default.bold(
      t
    )} as they depend on different major versions of Storybook packages:`
  ), i.forEach(
    ({ packageName: n, packageVersion: a, homepage: u, availableUpdate: o }) => {
      let l = `${bs.default.cyan(n)}@${bs.default.cyan(a)}`, c = o ? ` (${o} available!)` : "", h = u ? `
 Repo: ${bs.default.yellow(u)}` : "";
      r.push(`- ${l}${c}${h}`);
    }
  ), r.push(
    `
`,
    "Please consider updating your packages or contacting the maintainers for compatibility details.",
    "For more on Storybook 8 compatibility, see the linked GitHub issue:",
    bs.default.yellow("https://github.com/storybookjs/storybook/issues/26031")
  )), r.join(`
`);
}, "getIncompatiblePackagesSummary");

// src/core-server/utils/warnOnIncompatibleAddons.ts
var LT = /* @__PURE__ */ s(async (e) => {
  let t = await RT({
    skipUpgradeCheck: !0,
    skipErrors: !0,
    currentStorybookVersion: e
  }), r = await NT(
    t,
    e
  );
  r && bG.warn(r);
}, "warnOnIncompatibleAddons");

// src/core-server/utils/warnWhenUsingArgTypesRegex.ts
var vs = pe(Cr(), 1), MT = pe(wr(), 1);
import { readFile as vG } from "node:fs/promises";
import { core as CG } from "@storybook/core/babel";
import { babelParse as wG } from "@storybook/core/csf-tools";
async function jT(e, t) {
  let r = e ? await vG(e, { encoding: "utf8" }) : "";
  (t?.addons?.some(
    (n) => typeof n == "string" ? n === "@chromatic-com/storybook" : n.name === "@chromatic-com/storybook"
  ) ?? !1) && e && r.includes("argTypesRegex") && new CG.File(
    { filename: e },
    { code: r, ast: wG(r) }
  ).path.traverse({
    Identifier: /* @__PURE__ */ s((a) => {
      if (a.node.name === "argTypesRegex") {
        let u = MT.dedent`
            ${vs.default.bold("Attention")}: We've detected that you're using ${vs.default.cyan(
          "actions.argTypesRegex"
        )} together with the visual test addon:
            
            ${a.buildCodeFrameError(e).message}
            
            We recommend removing the ${vs.default.cyan(
          "argTypesRegex"
        )} and assigning explicit action with the ${vs.default.cyan(
          "fn"
        )} function from ${vs.default.cyan("@storybook/test")} instead:
            https://storybook.js.org/docs/essentials/actions#via-storybooktest-fn-spy-function
            
            The build used by the addon for snapshot testing doesn't take the regex into account, which can cause hard to debug problems when a snapshot depends on the presence of action props.
          `;
        console.warn(u);
      }
    }, "Identifier")
  });
}
s(jT, "warnWhenUsingArgTypesRegex");

// src/core-server/build-dev.ts
async function zT(e) {
  let { packageJson: t, versionUpdates: r } = e, { storybookVersion: i, previewConfigPath: n } = e, a = Rg(e.configDir);
  t ? (Dt(
    t.version !== void 0,
    `Expected package.json#version to be defined in the "${t.name}" package}`
  ), i = t.version, n = _G(t, a).previewConfig ?? void 0) : i || (i = RG.storybook);
  let [u, o] = await Promise.all([
    H_(e.port, { exactPort: e.exactPort }),
    r ? TT(i) : Promise.resolve({ success: !1, cached: !1, data: {}, time: Date.now() })
  ]);
  if (!e.ci && !e.smokeTest && e.port != null && u !== e.port) {
    let { shouldChangePort: I } = await (0, UT.default)({
      type: "confirm",
      initial: !0,
      name: "shouldChangePort",
      message: `Port ${e.port} is not available. Would you like to run Storybook on port ${u} instead?`
    });
    I || process.exit(1);
  }
  let l = kG(), c = NG(SG(l, a)), h = PG("public", c), p = Rg(e.outputDir || h);
  e.smokeTest && (p = h), e.port = u, e.versionCheck = o, e.configType = "DEVELOPMENT", e.configDir = a, e.cacheKey = c, e.outputDir = p, e.
  serverChannelUrl = W_(u, e);
  let d = await TG(e), { framework: m } = d, g = [], D = typeof m == "string" ? m : m?.name;
  e.ignorePreview || OG(D), D && g.push(FG(D, "preset")), D = D || "custom";
  try {
    await LT(i);
  } catch (I) {
    console.warn("Storybook failed to check addon compatibility", I);
  }
  try {
    await jT(n, d);
  } catch {
  }
  let v = await qT({
    corePresets: g,
    overridePresets: [
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    ...e,
    isCritical: !0
  }), { allowedHosts: y, renderer: C, builder: S, disableTelemetry: T } = await v.apply("core", {});
  if (e.host === "0.0.0.0" && (!y || y !== !0 && y.length === 0) && MG.warn(Ng.dedent`
      --host is set to 0.0.0.0 but no allowedHosts are defined. Allowing all hosts.
      To restrict allowed hosts, set core.allowedHosts in your main Storybook config.
      See: https://storybook.js.org/docs/api/main-config/main-config-core
    `), !S)
    throw new jG();
  !e.disableTelemetry && !T && o.success && !o.cached && LG("version-update");
  let j = typeof S == "string" ? S : S.name, [w, A] = await Promise.all([
    ra(j, e.configDir),
    ta()
  ]);
  if (j.includes("builder-vite")) {
    let I = (0, Ng.dedent)(`Using CommonJS in your main configuration file is deprecated with Vite.
              - Refer to the migration guide at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#commonjs-with-vite-is-deprec\
ated`), he = IG(Rg(e.configDir || ".storybook", "main"));
    /\.c[jt]s$/.test(he) && $T(I);
    let xe = await AG(he, { encoding: "utf8" });
    /\bmodule\.exports\b|\bexports[.[]|\brequire\s*\(|\bObject\.(?:defineProperty|defineProperties|assign)\s*\(\s*exports\b/.test(xe) && $T(
    I);
  }
  let P = C && BG(e.configDir, C, e);
  v = await qT({
    corePresets: [
      H.resolve("@storybook/core/core-server/presets/common-preset"),
      ...A.corePresets || [],
      ...w.corePresets || [],
      ...P ? [P] : [],
      ...g
    ],
    overridePresets: [
      ...w.overridePresets || [],
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    ...e
  });
  let k = await v.apply("features");
  VT.global.FEATURES = k;
  let $ = {
    ...e,
    presets: v,
    features: k
  }, { address: M, networkAddress: V, managerResult: U, previewResult: G } = await io(
    async () => Y_($)
  ), R = G?.totalTime, N = U?.totalTime, z = G?.stats, Q = U?.stats, te = e.webpackStatsJson || e.statsJson;
  if (te) {
    let I = te === !0 ? e.outputDir : te;
    await ao(I, z);
  }
  if (e.smokeTest) {
    let I = [];
    I.push(...Q?.toJson()?.warnings || []);
    try {
      I.push(...z?.toJson()?.warnings || []);
    } catch (xe) {
      if (!(xe instanceof qG))
        throw xe;
    }
    let he = I.filter((xe) => !xe.message.includes("export 'useInsertionEffect'")).filter((xe) => !xe.message.includes("compilation but it's\
 unused")).filter(
      (xe) => !xe.message.includes("Conflicting values for 'process.env.NODE_ENV'")
    );
    console.log(he.map((xe) => xe.stack)), process.exit(he.length > 0 ? 1 : 0);
  } else {
    let I = D.split("@storybook/").length > 1 ? D.split("@storybook/")[1] : D;
    e.quiet || OT({
      updateInfo: o,
      version: i,
      name: I,
      address: M,
      networkAddress: V,
      allowedHosts: y,
      managerTotalTime: N,
      previewTotalTime: R
    });
  }
  return { port: u, address: M, networkAddress: V };
}
s(zT, "buildDevStandalone");

// src/core-server/standalone.ts
import { dirname as $G } from "node:path";
async function VG(e = {}, t = {}) {
  let { mode: r = "dev" } = e, i = $G(H.resolve("@storybook/core/package.json")), n = JSON.parse(H("fs").readFileSync(`${i}/package.json`)),
  a = {
    ...e,
    ...t,
    frameworkPresets: [
      ...e.frameworkPresets || [],
      ...t.frameworkPresets || []
    ],
    packageJson: n
  };
  if (r === "dev")
    return zT(a);
  if (r === "static")
    return f2(a);
  throw new Error("'mode' parameter should be either 'dev' or 'static'");
}
s(VG, "build");
var UG = VG;

// src/core-server/load.ts
var WT = pe(La(), 1);
import { join as zG, relative as HG, resolve as WG } from "node:path";
import {
  getProjectRoot as JG,
  loadAllPresets as HT,
  loadMainConfig as GG,
  resolveAddonName as XG,
  validateFrameworkName as YG
} from "@storybook/core/common";
import { oneWayHash as KG } from "@storybook/core/telemetry";
async function QG(e) {
  let t = WG(e.configDir), r = JG(), i = KG(HG(r, t));
  e.configType = "DEVELOPMENT", e.configDir = t, e.cacheKey = i;
  let n = await GG(e), { framework: a } = n, u = [], o = typeof a == "string" ? a : a?.name;
  e.ignorePreview || YG(o), o && u.push(zG(o, "preset")), o = o || "custom";
  let l = await HT({
    corePresets: u,
    overridePresets: [
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    ...e,
    isCritical: !0
  }), { renderer: c } = await l.apply("core", {}), h = c && XG(e.configDir, c, e);
  l = await HT({
    corePresets: [
      H.resolve("@storybook/core/core-server/presets/common-preset"),
      ...h ? [h] : [],
      ...u
    ],
    overridePresets: [
      H.resolve("@storybook/core/core-server/presets/common-override-preset")
    ],
    ...e
  });
  let p = await l.apply("features");
  return WT.global.FEATURES = p, {
    ...e,
    presets: l,
    features: p
  };
}
s(QG, "loadStorybook");

// src/shared/universal-store/mock.ts
var JT = pe(wr(), 1);
import { Channel as ZG } from "@storybook/core/channels";
var Lg = class e extends xr {
  static {
    s(this, "MockUniversalStore");
  }
  constructor(t, r) {
    xr.isInternalConstructing = !0, super(
      { ...t, leader: !0 },
      { channel: new ZG({}), environment: xr.Environment.MOCK }
    ), xr.isInternalConstructing = !1, typeof r?.fn == "function" && (this.testUtils = r, this.getState = r.fn(this.getState), this.setState =
    r.fn(this.setState), this.subscribe = r.fn(this.subscribe), this.onStateChange = r.fn(this.onStateChange), this.send = r.fn(this.send));
  }
  /** Create a mock universal store. This is just an alias for the constructor */
  static create(t, r) {
    return new e(t, r);
  }
  unsubscribeAll() {
    if (!this.testUtils)
      throw new Error(
        JT.default`Cannot call unsubscribeAll on a store that does not have testUtils.
        Please provide testUtils as the second argument when creating the store.`
      );
    let t = /* @__PURE__ */ s((r) => {
      try {
        r.value();
      } catch {
      }
    }, "callReturnedUnsubscribeFn");
    this.subscribe.mock?.results.forEach(t), this.onStateChange.mock?.results.forEach(t);
  }
};
export {
  tn as StoryIndexGenerator,
  UG as build,
  zT as buildDevStandalone,
  f2 as buildStaticStandalone,
  Lg as experimental_MockUniversalStore,
  xr as experimental_UniversalStore,
  QG as experimental_loadStorybook,
  nz as getErrorLevel,
  ghe as getPreviewBodyTemplate,
  mhe as getPreviewHeadTemplate,
  $v as mapStaticDir,
  lm as sendTelemetryError,
  ase as withTelemetry
};
